|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es2024": true, |
| 5 | + "jest": true, |
| 6 | + "node": true |
| 7 | + }, |
| 8 | + "extends": [ |
| 9 | + "eslint:recommended", |
| 10 | + "next", |
| 11 | + "next/core-web-vitals", |
| 12 | + "plugin:@typescript-eslint/eslint-recommended", |
| 13 | + "plugin:@typescript-eslint/recommended", |
| 14 | + "plugin:prettier/recommended" |
| 15 | + ], |
| 16 | + "parser": "@typescript-eslint/parser", |
| 17 | + "parserOptions": { |
| 18 | + "ecmaFeatures": { |
| 19 | + "jsx": true |
| 20 | + }, |
| 21 | + "ecmaVersion": 2024, |
| 22 | + "project": ["src/ui/tsconfig.json", "tsconfig.test.json", "tsconfig.cypress.json"], |
| 23 | + "sourceType": "module" |
| 24 | + }, |
| 25 | + "plugins": ["@typescript-eslint", "import", "jest", "no-secrets", "react"], |
| 26 | + "root": true, |
| 27 | + "rules": { |
| 28 | + "complexity": ["warn", { "max": 8 }], |
| 29 | + "curly": ["error", "all"], |
| 30 | + "import/order": [ |
| 31 | + "error", |
| 32 | + { |
| 33 | + "groups": [ |
| 34 | + ["builtin", "external"], |
| 35 | + ["internal", "parent", "sibling", "index"] |
| 36 | + ], |
| 37 | + "newlines-between": "always-and-inside-groups", |
| 38 | + "pathGroups": [ |
| 39 | + { |
| 40 | + "pattern": "@{app,assets,classes,components,hooks,lib,pages,store,tests,types,utils}/**", |
| 41 | + "group": "internal", |
| 42 | + "position": "before" |
| 43 | + }, |
| 44 | + { |
| 45 | + "pattern": "{.,..}/**", |
| 46 | + "group": "internal", |
| 47 | + "position": "after" |
| 48 | + } |
| 49 | + ], |
| 50 | + "pathGroupsExcludedImportTypes": ["builtin"], |
| 51 | + "alphabetize": { "order": "asc", "caseInsensitive": true } |
| 52 | + } |
| 53 | + ], |
| 54 | + "import/no-extraneous-dependencies": ["error"], |
| 55 | + "no-secrets/no-secrets": ["error", { "additionalRegexes": {}, "ignoreContent": [] }] |
| 56 | + }, |
| 57 | + "settings": { |
| 58 | + "next": { "rootDir": ["src/ui/", "tests/ui/"] }, |
| 59 | + "import/resolver": { |
| 60 | + "typescript": { |
| 61 | + "project": [ |
| 62 | + "src/ui/tsconfig.json", |
| 63 | + "tsconfig.test.json", |
| 64 | + "tsconfig.cypress.json" |
| 65 | + ] |
| 66 | + } |
| 67 | + } |
| 68 | + } |
| 69 | +} |
0 commit comments