daedalOS/.eslintrc.json

198 lines
6.1 KiB
JSON
Raw Normal View History

2021-01-03 08:30:32 +01:00
{
2021-01-03 08:51:10 +01:00
"extends": [
"airbnb",
"eslint:recommended",
2023-08-03 23:52:46 +02:00
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
2023-10-11 07:41:19 +02:00
"plugin:deprecation/recommended",
2021-05-30 06:13:50 +02:00
"plugin:import/recommended",
2021-01-17 06:39:15 +01:00
"plugin:import/typescript",
2021-01-10 07:12:29 +01:00
"plugin:jest/recommended",
2022-03-31 23:00:34 +02:00
"plugin:jsx-a11y/recommended",
2023-07-13 23:34:57 +02:00
"plugin:playwright/recommended",
2023-11-19 06:02:03 +01:00
"plugin:promise/recommended",
2021-01-03 08:51:10 +01:00
"plugin:react/recommended",
2022-03-31 23:00:34 +02:00
"plugin:react/jsx-runtime",
2023-11-19 06:02:03 +01:00
"plugin:regexp/recommended",
2021-06-27 08:29:16 +02:00
"plugin:sonarjs/recommended",
2022-03-31 23:00:34 +02:00
"plugin:typescript-sort-keys/recommended",
2021-07-11 06:32:14 +02:00
"plugin:unicorn/recommended",
2021-06-20 06:55:05 +02:00
"prettier",
"next",
"next/core-web-vitals",
"plugin:@next/next/recommended"
2021-01-03 08:51:10 +01:00
],
2021-01-17 06:39:15 +01:00
"plugins": [
2021-06-20 06:55:05 +02:00
"@next/next",
2021-01-17 06:39:15 +01:00
"@typescript-eslint",
2021-02-28 06:22:26 +01:00
"import",
2021-01-17 06:39:15 +01:00
"jest",
2023-11-24 21:10:52 +01:00
"no-relative-import-paths",
2023-11-19 06:02:03 +01:00
"promise",
2022-03-31 23:00:34 +02:00
"react",
2023-10-14 09:10:06 +02:00
"react-hooks-addons",
2023-11-19 06:02:03 +01:00
"regexp",
2021-06-27 08:29:16 +02:00
"sonarjs",
2021-10-10 06:51:01 +02:00
"sort-keys-fix",
2022-03-31 23:00:34 +02:00
"typescript-sort-keys",
"unicorn",
"unused-imports"
2021-01-17 06:39:15 +01:00
],
2021-01-03 08:51:10 +01:00
"rules": {
2021-06-20 06:55:05 +02:00
"@next/next/no-img-element": "off",
2023-08-03 23:52:46 +02:00
"@typescript-eslint/consistent-type-definitions": "off",
2021-10-17 06:14:23 +02:00
"@typescript-eslint/consistent-type-imports": [
"error",
2023-11-19 06:02:03 +01:00
{ "fixStyle": "inline-type-imports", "prefer": "type-imports" }
2021-10-17 06:14:23 +02:00
],
"@typescript-eslint/explicit-function-return-type": [
"error",
{ "allowExpressions": true }
],
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/method-signature-style": "error",
2023-08-03 23:52:46 +02:00
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-dynamic-delete": "off",
2022-03-31 23:00:34 +02:00
"@typescript-eslint/no-floating-promises": "off",
2023-08-03 23:52:46 +02:00
"@typescript-eslint/no-invalid-void-type": "off",
2022-03-31 23:00:34 +02:00
"@typescript-eslint/no-misused-promises": "off",
2021-10-17 06:14:23 +02:00
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/no-shadow": [
"error",
{
"ignoreFunctionTypeParameterNameValueShadow": false,
"ignoreTypeValueShadow": false
}
],
2023-08-03 23:52:46 +02:00
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/non-nullable-type-assertion-style": "off",
2021-10-17 06:14:23 +02:00
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
2021-10-17 06:14:23 +02:00
],
2023-08-03 23:52:46 +02:00
"@typescript-eslint/prefer-nullish-coalescing": "off",
2023-09-04 18:55:41 +02:00
"camelcase": "off",
2023-04-22 05:50:13 +02:00
"class-methods-use-this": "off",
2022-03-31 23:00:34 +02:00
"curly": "error",
2023-11-19 06:02:03 +01:00
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
2021-06-06 06:30:22 +02:00
"import/extensions": [
"error",
"ignorePackages",
2021-08-15 07:09:07 +02:00
{ "ts": "never", "tsx": "never" }
2021-06-06 06:30:22 +02:00
],
2023-04-05 17:36:35 +02:00
"import/first": "error",
"import/newline-after-import": "error",
"import/no-cycle": "off",
2023-11-19 06:02:03 +01:00
"import/no-duplicates": ["error", { "prefer-inline": true }],
2023-07-13 23:34:57 +02:00
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["*.config.ts", "e2e/**", "__tests__/**"] }
2023-07-13 23:34:57 +02:00
],
2023-11-19 06:02:03 +01:00
"import/order": ["error", { "newlines-between": "never" }],
2021-05-02 08:17:13 +02:00
"import/prefer-default-export": "off",
2022-11-22 06:04:27 +01:00
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["id", "nesting"]
}
}
],
2023-09-08 07:08:28 +02:00
"jsx-a11y/no-autofocus": "off",
2022-02-12 04:55:16 +01:00
"no-console": ["error", { "allow": ["info", "error"] }],
2022-06-11 22:06:45 +02:00
"no-constant-binary-expression": "error",
2021-08-22 07:25:16 +02:00
"no-implicit-coercion": "error",
2022-03-31 23:00:34 +02:00
"no-new-wrappers": "error",
2023-10-30 04:57:01 +01:00
"no-plusplus": "off",
2023-11-24 21:10:52 +01:00
"no-relative-import-paths/no-relative-import-paths": "error",
2021-10-24 06:38:27 +02:00
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
2021-10-10 06:51:01 +02:00
"no-shadow": ["error", { "hoist": "all" }],
2022-03-31 23:00:34 +02:00
"no-undef-init": "error",
2021-12-05 06:27:29 +01:00
"no-underscore-dangle": "off",
2021-08-22 07:36:35 +02:00
"no-unsafe-optional-chaining": "error",
"playwright/expect-expect": "off",
2023-07-20 09:19:48 +02:00
"playwright/no-conditional-in-test": "off",
2023-08-29 07:45:20 +02:00
"playwright/no-skipped-test": "off",
2023-11-19 06:02:03 +01:00
"promise/always-return": "off",
"promise/catch-or-return": "off",
"promise/no-nesting": "off",
"promise/no-callback-in-promise": "off",
"promise/no-promise-in-callback": "off",
2021-11-21 06:37:26 +01:00
"react/function-component-definition": [
"error",
{ "namedComponents": "arrow-function" }
],
2022-03-23 03:23:33 +01:00
"react/hook-use-state": "error",
"react-hooks/exhaustive-deps": "error",
2022-11-24 05:50:28 +01:00
"react/display-name": "off",
2021-07-11 06:14:21 +02:00
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
2021-03-14 06:09:46 +01:00
"react/jsx-props-no-spreading": "off",
2021-10-10 06:51:01 +02:00
"react/jsx-sort-props": [
"error",
{
"reservedFirst": true,
"shorthandLast": true
}
],
2022-03-31 23:00:34 +02:00
"react/no-unused-prop-types": "error",
"react/no-unused-state": "error",
2021-03-14 06:33:36 +01:00
"react/require-default-props": "off",
2022-03-23 03:23:33 +01:00
"react/require-optimization": "error",
2023-10-14 09:10:06 +02:00
"react-hooks-addons/no-unused-deps": "warn",
2023-11-19 06:02:03 +01:00
"regexp/no-unused-capturing-group": "error",
"regexp/no-useless-assertions": "error",
"regexp/no-useless-flag": "error",
"regexp/strict": "error",
2021-07-11 06:32:14 +02:00
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-nested-template-literals": "off",
2021-10-10 06:51:01 +02:00
"sort-keys-fix/sort-keys-fix": "error",
2021-07-11 06:32:14 +02:00
"unicorn/filename-case": "off",
2022-11-22 06:34:44 +01:00
"unicorn/import-style": [
"error",
{
"styles": {
"path": {
"named": true
}
}
}
],
2022-12-25 07:35:32 +01:00
"unicorn/no-abusive-eslint-disable": "off",
2021-07-11 06:32:14 +02:00
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
2021-11-28 06:30:34 +01:00
"unicorn/no-await-expression-member": "off",
2023-11-19 06:02:03 +01:00
"unicorn/no-unused-properties": "error",
2021-07-11 06:32:14 +02:00
"unicorn/numeric-separators-style": "off",
2023-05-10 04:31:05 +02:00
"unicorn/prefer-at": "off",
2021-07-11 06:32:14 +02:00
"unicorn/prefer-node-protocol": "off",
2023-05-10 04:31:05 +02:00
"unicorn/prefer-string-replace-all": "off",
2023-08-06 07:31:18 +02:00
"unicorn/prefer-switch": "off",
2022-03-31 23:00:34 +02:00
"unicorn/prevent-abbreviations": "off",
2022-11-22 07:15:23 +01:00
"unicorn/switch-case-braces": ["error", "avoid"],
2022-03-31 23:00:34 +02:00
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
2021-08-22 07:31:01 +02:00
},
2023-10-27 08:19:22 +02:00
"reportUnusedDisableDirectives": true,
2023-08-03 23:52:46 +02:00
"parser": "@typescript-eslint/parser",
2021-10-17 06:14:23 +02:00
"parserOptions": {
2023-08-03 23:52:46 +02:00
"project": true
2021-10-17 06:14:23 +02:00
}
2021-01-03 08:30:32 +01:00
}