Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 103 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
{
"root": true,
"extends": [
"airbnb",
"airbnb-typescript"
"airbnb"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true
},
"settings": {
"react": {
"version": "18"
}
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"]
},
"import/resolver": {
"node": {
"extensions": [".mjs", ".js", ".jsx", ".json", ".ts", ".tsx", ".d.ts"]
}
},
"import/extensions": [".js", ".mjs", ".jsx", ".ts", ".tsx", ".d.ts"],
"import/external-module-folders": ["node_modules", "node_modules/@types"]
},
"rules": {
"indent": ["error", 2],
Expand All @@ -24,6 +37,7 @@
"no-alert": "off",
"no-console": "off",
"implicit-arrow-linebreak": ["off"],
"react/jsx-filename-extension": ["error", { "extensions": [".jsx", ".tsx"] }],
"react/react-in-jsx-scope": ["off"],
"react/require-default-props": ["off"],
"react/function-component-definition": [
Expand All @@ -36,6 +50,90 @@
"jsx-a11y/no-autofocus": ["off"],
"jsx-a11y/click-events-have-key-events": ["off"],
"jsx-a11y/no-static-element-interactions": ["off"],
"@typescript-eslint/quotes": ["error", "double", { "avoidEscape": true }]
}

"camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
{ "selector": "variable", "format": ["camelCase", "PascalCase", "UPPER_CASE"] },
{ "selector": "function", "format": ["camelCase", "PascalCase"] },
{ "selector": "typeLike", "format": ["PascalCase"] }
],
"default-param-last": "off",
"@typescript-eslint/default-param-last": "error",
"dot-notation": "off",
"@typescript-eslint/dot-notation": ["error", { "allowKeywords": true }],
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "error",
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": "error",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions", "functions", "methods"] }],
"no-implied-eval": "off",
"no-new-func": "off",
"@typescript-eslint/no-implied-eval": "error",
"no-loop-func": "off",
"@typescript-eslint/no-loop-func": "error",
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-throw-literal": "off",
"@typescript-eslint/only-throw-error": "error",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{ "allowShortCircuit": false, "allowTernary": false, "allowTaggedTemplates": false }
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": true }],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error", { "functions": true, "classes": true, "variables": true }],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"no-return-await": "off",
"@typescript-eslint/return-await": ["error", "in-try-catch"],
"import/extensions": [
"error",
"ignorePackages",
{ "js": "never", "mjs": "never", "jsx": "never", "ts": "never", "tsx": "never" }
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/__tests__/**",
"**/__mocks__/**",
"**/*.test.{ts,tsx}",
"**/jest.config.ts",
"**/jest.setup.ts"
],
"optionalDependencies": false
}
]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"constructor-super": "off",
"getter-return": "off",
"no-const-assign": "off",
"no-dupe-args": "off",
"no-dupe-keys": "off",
"no-func-assign": "off",
"no-import-assign": "off",
"no-new-symbol": "off",
"no-obj-calls": "off",
"no-setter-return": "off",
"no-this-before-super": "off",
"no-undef": "off",
"no-unreachable": "off",
"no-unsafe-negation": "off",
"valid-typeof": "off",
"import/named": "off",
"import/no-named-as-default-member": "off",
"import/no-unresolved": "off"
}
}
]
}
Loading
Loading