2021-01-02 23:30:32 -08:00
|
|
|
{
|
2021-01-02 23:51:10 -08:00
|
|
|
"extends": [
|
|
|
|
|
"airbnb",
|
|
|
|
|
"eslint:recommended",
|
2023-08-03 14:52:46 -07:00
|
|
|
"plugin:@typescript-eslint/strict-type-checked",
|
|
|
|
|
"plugin:@typescript-eslint/stylistic-type-checked",
|
2023-10-10 22:41:19 -07:00
|
|
|
"plugin:deprecation/recommended",
|
2021-05-29 21:13:50 -07:00
|
|
|
"plugin:import/recommended",
|
2021-01-16 21:39:15 -08:00
|
|
|
"plugin:import/typescript",
|
2021-01-09 22:12:29 -08:00
|
|
|
"plugin:jest/recommended",
|
2022-03-31 14:00:34 -07:00
|
|
|
"plugin:jsx-a11y/recommended",
|
2023-07-13 14:34:57 -07:00
|
|
|
"plugin:playwright/recommended",
|
2023-11-18 21:02:03 -08:00
|
|
|
"plugin:promise/recommended",
|
2021-01-02 23:51:10 -08:00
|
|
|
"plugin:react/recommended",
|
2022-03-31 14:00:34 -07:00
|
|
|
"plugin:react/jsx-runtime",
|
2023-11-18 21:02:03 -08:00
|
|
|
"plugin:regexp/recommended",
|
2024-06-04 21:59:48 -07:00
|
|
|
"plugin:sonarjs/recommended-legacy",
|
2022-03-31 14:00:34 -07:00
|
|
|
"plugin:typescript-sort-keys/recommended",
|
2021-07-10 21:32:14 -07:00
|
|
|
"plugin:unicorn/recommended",
|
2021-06-19 21:55:05 -07:00
|
|
|
"prettier",
|
|
|
|
|
"next",
|
2024-10-22 23:10:23 -07:00
|
|
|
"next/core-web-vitals"
|
2021-01-02 23:51:10 -08:00
|
|
|
],
|
2021-01-16 21:39:15 -08:00
|
|
|
"plugins": [
|
|
|
|
|
"@typescript-eslint",
|
2021-02-27 21:22:26 -08:00
|
|
|
"import",
|
2021-01-16 21:39:15 -08:00
|
|
|
"jest",
|
2024-06-04 21:59:48 -07:00
|
|
|
"jsx-a11y",
|
2023-11-24 12:10:52 -08:00
|
|
|
"no-relative-import-paths",
|
2023-11-18 21:02:03 -08:00
|
|
|
"promise",
|
2022-03-31 14:00:34 -07:00
|
|
|
"react",
|
2023-10-14 00:10:06 -07:00
|
|
|
"react-hooks-addons",
|
2023-11-18 21:02:03 -08:00
|
|
|
"regexp",
|
2021-06-26 23:29:16 -07:00
|
|
|
"sonarjs",
|
2021-10-09 21:51:01 -07:00
|
|
|
"sort-keys-fix",
|
2022-03-31 14:00:34 -07:00
|
|
|
"typescript-sort-keys",
|
|
|
|
|
"unicorn",
|
|
|
|
|
"unused-imports"
|
2021-01-16 21:39:15 -08:00
|
|
|
],
|
2021-01-02 23:51:10 -08:00
|
|
|
"rules": {
|
2021-06-19 21:55:05 -07:00
|
|
|
"@next/next/no-img-element": "off",
|
2023-08-03 14:52:46 -07:00
|
|
|
"@typescript-eslint/consistent-type-definitions": "off",
|
2021-10-16 21:14:23 -07:00
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
|
|
|
"error",
|
2023-11-18 21:02:03 -08:00
|
|
|
{ "fixStyle": "inline-type-imports", "prefer": "type-imports" }
|
2021-10-16 21:14:23 -07: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 14:52:46 -07:00
|
|
|
"@typescript-eslint/no-confusing-void-expression": "off",
|
2024-08-31 22:38:08 -07:00
|
|
|
"@typescript-eslint/no-deprecated": "off",
|
2023-08-03 14:52:46 -07:00
|
|
|
"@typescript-eslint/no-dynamic-delete": "off",
|
2022-03-31 14:00:34 -07:00
|
|
|
"@typescript-eslint/no-floating-promises": "off",
|
2023-08-03 14:52:46 -07:00
|
|
|
"@typescript-eslint/no-invalid-void-type": "off",
|
2022-03-31 14:00:34 -07:00
|
|
|
"@typescript-eslint/no-misused-promises": "off",
|
2025-01-14 10:10:31 -08:00
|
|
|
"@typescript-eslint/no-misused-spread": "off",
|
2021-10-16 21:14:23 -07:00
|
|
|
"@typescript-eslint/no-redeclare": "error",
|
|
|
|
|
"@typescript-eslint/no-shadow": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"ignoreFunctionTypeParameterNameValueShadow": false,
|
|
|
|
|
"ignoreTypeValueShadow": false
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-03 14:52:46 -07:00
|
|
|
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
|
|
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
2021-10-16 21:14:23 -07:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
|
"error",
|
2021-12-04 21:57:31 -08:00
|
|
|
{
|
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
|
"ignoreRestSiblings": true
|
|
|
|
|
}
|
2021-10-16 21:14:23 -07:00
|
|
|
],
|
2023-08-03 14:52:46 -07:00
|
|
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
2024-03-20 19:01:41 -07:00
|
|
|
"@typescript-eslint/restrict-template-expressions": [
|
|
|
|
|
"error",
|
|
|
|
|
{ "allowNumber": true }
|
|
|
|
|
],
|
|
|
|
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
2023-09-04 09:55:41 -07:00
|
|
|
"camelcase": "off",
|
2023-04-21 20:50:13 -07:00
|
|
|
"class-methods-use-this": "off",
|
2022-03-31 14:00:34 -07:00
|
|
|
"curly": "error",
|
2023-11-18 21:02:03 -08:00
|
|
|
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
|
2021-06-05 21:30:22 -07:00
|
|
|
"import/extensions": [
|
|
|
|
|
"error",
|
|
|
|
|
"ignorePackages",
|
2021-08-14 22:09:07 -07:00
|
|
|
{ "ts": "never", "tsx": "never" }
|
2021-06-05 21:30:22 -07:00
|
|
|
],
|
2023-04-05 08:36:35 -07:00
|
|
|
"import/first": "error",
|
|
|
|
|
"import/newline-after-import": "error",
|
2021-05-15 21:21:12 -07:00
|
|
|
"import/no-cycle": "off",
|
2023-11-18 21:02:03 -08:00
|
|
|
"import/no-duplicates": ["error", { "prefer-inline": true }],
|
2023-07-13 14:34:57 -07:00
|
|
|
"import/no-extraneous-dependencies": [
|
|
|
|
|
"error",
|
2023-07-19 00:09:29 -07:00
|
|
|
{ "devDependencies": ["*.config.ts", "e2e/**", "__tests__/**"] }
|
2023-07-13 14:34:57 -07:00
|
|
|
],
|
2023-11-18 21:02:03 -08:00
|
|
|
"import/order": ["error", { "newlines-between": "never" }],
|
2021-05-01 23:17:13 -07:00
|
|
|
"import/prefer-default-export": "off",
|
2022-11-21 21:04:27 -08:00
|
|
|
"jsx-a11y/label-has-associated-control": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"required": {
|
|
|
|
|
"some": ["id", "nesting"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-09-07 22:08:28 -07:00
|
|
|
"jsx-a11y/no-autofocus": "off",
|
2025-04-27 15:01:30 -07:00
|
|
|
"no-console": ["error", { "allow": ["info", "error", "time", "timeEnd"] }],
|
2022-06-11 13:06:45 -07:00
|
|
|
"no-constant-binary-expression": "error",
|
2021-08-21 22:25:16 -07:00
|
|
|
"no-implicit-coercion": "error",
|
2022-03-31 14:00:34 -07:00
|
|
|
"no-new-wrappers": "error",
|
2023-10-29 20:57:01 -07:00
|
|
|
"no-plusplus": "off",
|
2023-11-24 12:10:52 -08:00
|
|
|
"no-relative-import-paths/no-relative-import-paths": "error",
|
2021-10-23 21:38:27 -07:00
|
|
|
"no-restricted-syntax": [
|
|
|
|
|
"error",
|
|
|
|
|
"ForInStatement",
|
|
|
|
|
"LabeledStatement",
|
|
|
|
|
"WithStatement"
|
|
|
|
|
],
|
2021-10-09 21:51:01 -07:00
|
|
|
"no-shadow": ["error", { "hoist": "all" }],
|
2022-03-31 14:00:34 -07:00
|
|
|
"no-undef-init": "error",
|
2021-12-04 21:27:29 -08:00
|
|
|
"no-underscore-dangle": "off",
|
2021-08-21 22:36:35 -07:00
|
|
|
"no-unsafe-optional-chaining": "error",
|
2023-07-19 00:09:29 -07:00
|
|
|
"playwright/expect-expect": "off",
|
2023-07-20 00:19:48 -07:00
|
|
|
"playwright/no-conditional-in-test": "off",
|
2023-08-28 22:45:20 -07:00
|
|
|
"playwright/no-skipped-test": "off",
|
2023-11-18 21:02:03 -08: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-20 21:37:26 -08:00
|
|
|
"react/function-component-definition": [
|
|
|
|
|
"error",
|
|
|
|
|
{ "namedComponents": "arrow-function" }
|
|
|
|
|
],
|
2022-03-22 19:23:33 -07:00
|
|
|
"react/hook-use-state": "error",
|
2022-04-27 22:48:11 -07:00
|
|
|
"react-hooks/exhaustive-deps": "error",
|
2022-11-23 20:50:28 -08:00
|
|
|
"react/display-name": "off",
|
2025-01-12 11:24:14 -08:00
|
|
|
"react/jsx-filename-extension": [
|
|
|
|
|
"error",
|
|
|
|
|
{ "allow": "as-needed", "extensions": [".tsx"] }
|
|
|
|
|
],
|
2021-03-13 21:09:46 -08:00
|
|
|
"react/jsx-props-no-spreading": "off",
|
2021-10-09 21:51:01 -07:00
|
|
|
"react/jsx-sort-props": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"reservedFirst": true,
|
|
|
|
|
"shorthandLast": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2022-03-31 14:00:34 -07:00
|
|
|
"react/no-unused-prop-types": "error",
|
|
|
|
|
"react/no-unused-state": "error",
|
2021-03-13 21:33:36 -08:00
|
|
|
"react/require-default-props": "off",
|
2022-03-22 19:23:33 -07:00
|
|
|
"react/require-optimization": "error",
|
2023-10-14 00:10:06 -07:00
|
|
|
"react-hooks-addons/no-unused-deps": "warn",
|
2023-11-18 21:02:03 -08:00
|
|
|
"regexp/no-unused-capturing-group": "error",
|
|
|
|
|
"regexp/no-useless-assertions": "error",
|
|
|
|
|
"regexp/no-useless-flag": "error",
|
|
|
|
|
"regexp/strict": "error",
|
2024-08-22 21:40:56 -07:00
|
|
|
"sonarjs/anchor-is-valid": "off",
|
2024-07-16 22:08:31 -07:00
|
|
|
"sonarjs/anchor-precedence": "off",
|
2021-07-10 21:32:14 -07:00
|
|
|
"sonarjs/cognitive-complexity": "off",
|
2024-07-16 22:08:31 -07:00
|
|
|
"sonarjs/deprecation": "off",
|
|
|
|
|
"sonarjs/file-permissions": "off",
|
|
|
|
|
"sonarjs/function-return-type": "off",
|
|
|
|
|
"sonarjs/media-has-caption": "off",
|
|
|
|
|
"sonarjs/mouse-events-a11y": "off",
|
|
|
|
|
"sonarjs/new-cap": "off",
|
2024-07-25 20:35:12 -07:00
|
|
|
"sonarjs/no-duplicate-string": "off",
|
2024-07-16 22:08:31 -07:00
|
|
|
"sonarjs/no-hardcoded-credentials": "off",
|
|
|
|
|
"sonarjs/no-hardcoded-ip": "off",
|
2024-12-04 08:19:00 -08:00
|
|
|
"sonarjs/no-hardcoded-passwords": "off",
|
2024-07-16 22:08:31 -07:00
|
|
|
"sonarjs/no-misused-promises": "off",
|
|
|
|
|
"sonarjs/no-nested-conditional": "off",
|
|
|
|
|
"sonarjs/no-nested-functions": "off",
|
2021-07-10 23:20:07 -07:00
|
|
|
"sonarjs/no-nested-template-literals": "off",
|
2024-10-02 18:41:26 -07:00
|
|
|
"sonarjs/no-selector-parameter": "off",
|
|
|
|
|
"sonarjs/no-skipped-test": "off",
|
2024-12-04 08:19:00 -08:00
|
|
|
"sonarjs/no-skipped-tests": "off",
|
2024-07-16 22:08:31 -07:00
|
|
|
"sonarjs/no-try-promise": "off",
|
2024-12-04 08:19:00 -08:00
|
|
|
"sonarjs/no-unused-vars": "off",
|
2024-07-16 22:08:31 -07:00
|
|
|
"sonarjs/no-var": "off",
|
|
|
|
|
"sonarjs/prefer-nullish-coalescing": "off",
|
|
|
|
|
"sonarjs/pseudo-random": "off",
|
|
|
|
|
"sonarjs/slow-regex": "off",
|
|
|
|
|
"sonarjs/sonar-max-params": "off",
|
|
|
|
|
"sonarjs/sonar-no-unused-vars": "off",
|
2024-09-26 18:38:45 -07:00
|
|
|
"sonarjs/todo-tag": "off",
|
2021-10-09 21:51:01 -07:00
|
|
|
"sort-keys-fix/sort-keys-fix": "error",
|
2021-07-10 21:32:14 -07:00
|
|
|
"unicorn/filename-case": "off",
|
2022-11-21 21:34:44 -08:00
|
|
|
"unicorn/import-style": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"styles": {
|
|
|
|
|
"path": {
|
|
|
|
|
"named": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2022-12-24 22:35:32 -08:00
|
|
|
"unicorn/no-abusive-eslint-disable": "off",
|
2021-07-10 21:32:14 -07:00
|
|
|
"unicorn/no-array-for-each": "off",
|
|
|
|
|
"unicorn/no-array-reduce": "off",
|
2021-11-27 21:30:34 -08:00
|
|
|
"unicorn/no-await-expression-member": "off",
|
2023-11-18 21:02:03 -08:00
|
|
|
"unicorn/no-unused-properties": "error",
|
2021-07-10 21:32:14 -07:00
|
|
|
"unicorn/numeric-separators-style": "off",
|
2023-05-09 19:31:05 -07:00
|
|
|
"unicorn/prefer-at": "off",
|
2024-10-03 21:53:13 -07:00
|
|
|
"unicorn/prefer-global-this": "off",
|
2021-07-10 21:32:14 -07:00
|
|
|
"unicorn/prefer-node-protocol": "off",
|
2023-05-09 19:31:05 -07:00
|
|
|
"unicorn/prefer-string-replace-all": "off",
|
2023-08-05 22:31:18 -07:00
|
|
|
"unicorn/prefer-switch": "off",
|
2022-03-31 14:00:34 -07:00
|
|
|
"unicorn/prevent-abbreviations": "off",
|
2022-11-21 22:15:23 -08:00
|
|
|
"unicorn/switch-case-braces": ["error", "avoid"],
|
2022-03-31 14:00:34 -07:00
|
|
|
"unused-imports/no-unused-imports": "error",
|
|
|
|
|
"unused-imports/no-unused-vars": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"vars": "all",
|
|
|
|
|
"varsIgnorePattern": "^_",
|
|
|
|
|
"args": "after-used",
|
|
|
|
|
"argsIgnorePattern": "^_"
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-08-21 22:31:01 -07:00
|
|
|
},
|
2024-02-29 18:57:02 -08:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
2025-01-12 11:24:14 -08:00
|
|
|
"files": ["__tests__/**/*.spec.ts"],
|
2024-02-29 18:57:02 -08:00
|
|
|
"rules": {
|
|
|
|
|
"playwright/no-standalone-expect": "off"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-10-26 23:19:22 -07:00
|
|
|
"reportUnusedDisableDirectives": true,
|
2023-08-03 14:52:46 -07:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2021-10-16 21:14:23 -07:00
|
|
|
"parserOptions": {
|
2023-08-03 14:52:46 -07:00
|
|
|
"project": true
|
2021-10-16 21:14:23 -07:00
|
|
|
}
|
2021-01-02 23:30:32 -08:00
|
|
|
}
|