Skip to content

Commit

Permalink
feat: add lint
Browse files Browse the repository at this point in the history
feat: update deps
  • Loading branch information
thirdmadman committed Dec 7, 2022
1 parent 679e6b4 commit d227923
Show file tree
Hide file tree
Showing 17 changed files with 2,306 additions and 11,024 deletions.
158 changes: 82 additions & 76 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,82 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 11,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["@typescript-eslint", "react", "prettier", "react-hooks", "import"],
"extends": [
"airbnb-typescript",
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"comma-dangle": ["error", "only-multiline"],
"react/prop-types": "off",
"react/display-name": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-var-reqiures": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"no-console": "off",
"max-len": ["warn", { "code": 120 }],
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"@typescript-eslint/indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts"] }]
},
"ignorePatterns": ["*config.js"],
"globals": {
"window": true,
"document": true
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"root": true
}
{
"env": {
"browser": true,
"es6": true,
"es2021": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["@typescript-eslint", "react", "prettier", "react-hooks", "import"],
"extends": [
"airbnb",
"airbnb-typescript",
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"comma-dangle": ["error", "only-multiline"],
"react/prop-types": "off",
"react/display-name": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"@typescript-eslint/interface-name-prefix": "off",
"import/prefer-default-export": "off",
"react/prefer-stateless-function": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-var-reqiures": "off",
"react/jsx-one-expression-per-line": "off",
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"no-console": "off",
"max-len": ["warn", { "code": 120 }],
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"@typescript-eslint/indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts"] }]
},
"ignorePatterns": ["*config.js"],
"globals": {
"window": true,
"document": true
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"root": true
}
Loading

0 comments on commit d227923

Please sign in to comment.