Skip to content

Commit

Permalink
Merge pull request #4 from learningmachine/fix/formState-not-declare
Browse files Browse the repository at this point in the history
  • Loading branch information
raiseandfall authored Mar 22, 2024
2 parents 99ddfac + c90d131 commit acc9f81
Show file tree
Hide file tree
Showing 17 changed files with 12,860 additions and 11,155 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib
node_modules
40 changes: 40 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"project": ["./tsconfig.json", "./tsconfig.eslint.json"],
"tsconfigRootDir": "."
},
"rules": {
"semi": "off",
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
"@typescript-eslint/member-delimiter-style": ["error", { "multiline": { "delimiter": "semi", "requireLast": true }}],
"@typescript-eslint/interface-name-prefix": [0],
"@typescript-eslint/strict-boolean-expressions": [0],
"@typescript-eslint/no-explicit-any": [0], // remove one day, maybe. This is early days so we have some anys.
"@typescript-eslint/restrict-plus-operands": [0], // when this rule functions correctly, we can remove it. It
"@typescript-eslint/explicit-module-boundary-types": [ 1, { "allowArgumentsExplicitlyTypedAsAny": true } ],
// does not pick up the correct type when returning from a JS function
"@typescript-eslint/no-inferrable-types": "off",
"no-useless-escape": [1],
"@typescript-eslint/restrict-template-expressions": [0],
"@typescript-eslint/prefer-nullish-coalescing": [0]
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
}
}
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run test
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.yml
*.config.js
.babelrc
.nvmrc
.github/
.eslintrc.js
Expand Down
Loading

0 comments on commit acc9f81

Please sign in to comment.