|
1 | 1 | {
|
2 | 2 | "root": true,
|
3 |
| - "ignorePatterns": [ |
4 |
| - "**/*" |
5 |
| - ], |
6 |
| - "plugins": [ |
7 |
| - "@nrwl/nx", |
8 |
| - "simple-import-sort" |
9 |
| - ], |
| 3 | + "ignorePatterns": ["**/*"], |
| 4 | + "plugins": ["@nx", "simple-import-sort"], |
10 | 5 | "extends": [
|
11 | 6 | "airbnb-typescript/base",
|
12 | 7 | "eslint:recommended",
|
|
24 | 19 | },
|
25 | 20 | "overrides": [
|
26 | 21 | {
|
27 |
| - "files": [ |
28 |
| - "*.ts", |
29 |
| - "*.tsx", |
30 |
| - "*.js", |
31 |
| - "*.jsx" |
32 |
| - ], |
| 22 | + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], |
33 | 23 | "rules": {
|
34 |
| - "@nrwl/nx/enforce-module-boundaries": [ |
| 24 | + "@nx/enforce-module-boundaries": [ |
35 | 25 | "error",
|
36 | 26 | {
|
37 | 27 | "enforceBuildableLibDependency": true,
|
38 | 28 | "allow": [],
|
39 | 29 | "depConstraints": [
|
40 | 30 | {
|
41 | 31 | "sourceTag": "*",
|
42 |
| - "onlyDependOnLibsWithTags": [ |
43 |
| - "*" |
44 |
| - ] |
| 32 | + "onlyDependOnLibsWithTags": ["*"] |
45 | 33 | }
|
46 | 34 | ]
|
47 | 35 | }
|
48 | 36 | ],
|
49 |
| - "semi": [ |
50 |
| - "warn", |
51 |
| - "never" |
52 |
| - ] |
| 37 | + "semi": ["warn", "never"] |
53 | 38 | }
|
54 | 39 | },
|
55 | 40 | {
|
56 |
| - "files": [ |
57 |
| - "*.ts", |
58 |
| - "*.tsx" |
59 |
| - ], |
60 |
| - "extends": [ |
61 |
| - "plugin:@nrwl/nx/typescript" |
62 |
| - ], |
| 41 | + "files": ["*.ts", "*.tsx"], |
| 42 | + "extends": ["plugin:@nx/typescript"], |
63 | 43 | "rules": {
|
64 | 44 | // airbnb default is 1
|
65 |
| - "max-classes-per-file": [ |
66 |
| - "error", |
67 |
| - 5 |
68 |
| - ], |
| 45 | + "max-classes-per-file": ["error", 5], |
69 | 46 | // never allow default export
|
70 | 47 | "import/prefer-default-export": "off",
|
71 | 48 | // never allow default export
|
|
89 | 66 | {
|
90 | 67 | "groups": [
|
91 | 68 | // Packages. `react` related packages come first.
|
92 |
| - [ |
93 |
| - "^react", |
94 |
| - "^@?\\w" |
95 |
| - ], |
| 69 | + ["^react", "^@?\\w"], |
96 | 70 | // "type" imports.
|
97 |
| - [ |
98 |
| - "^.*\\u0000$" |
99 |
| - ], |
| 71 | + ["^.*\\u0000$"], |
100 | 72 | // Absolute imports and other imports such as Vue-style `@/foo`.
|
101 | 73 | // Anything not matched in another group.
|
102 |
| - [ |
103 |
| - "^" |
104 |
| - ], |
| 74 | + ["^"], |
105 | 75 | // Relative imports.
|
106 | 76 | // Anything that starts with a dot.
|
107 |
| - [ |
108 |
| - "^\\." |
109 |
| - ] |
| 77 | + ["^\\."] |
110 | 78 | ]
|
111 | 79 | }
|
112 | 80 | ],
|
113 | 81 | "simple-import-sort/exports": "warn"
|
114 | 82 | }
|
115 | 83 | },
|
116 | 84 | {
|
117 |
| - "files": [ |
118 |
| - "*.js", |
119 |
| - "*.jsx" |
120 |
| - ], |
121 |
| - "extends": [ |
122 |
| - "plugin:@nrwl/nx/javascript" |
123 |
| - ], |
| 85 | + "files": ["*.js", "*.jsx"], |
| 86 | + "extends": ["plugin:@nx/javascript"], |
124 | 87 | "rules": {}
|
125 | 88 | },
|
126 | 89 | {
|
127 |
| - "files": [ |
128 |
| - "*.spec.ts", |
129 |
| - "*/__fixtures__/*.ts" |
130 |
| - ], |
131 |
| - "extends": [ |
132 |
| - "plugin:@nrwl/nx/typescript" |
133 |
| - ], |
| 90 | + "files": ["*.spec.ts", "*/__fixtures__/*.ts"], |
| 91 | + "extends": ["plugin:@nx/typescript"], |
134 | 92 | "rules": {
|
135 |
| - "max-classes-per-file": [ |
136 |
| - "off" |
137 |
| - ], |
| 93 | + "max-classes-per-file": ["off"], |
138 | 94 | "@typescript-eslint/no-unsafe-assignment": "off",
|
139 | 95 | "@typescript-eslint/no-unsafe-argument": "off",
|
140 | 96 | "@typescript-eslint/no-unsafe-member-access": "off",
|
141 | 97 | "@typescript-eslint/ban-ts-comment": "off",
|
142 | 98 | "@typescript-eslint/no-non-null-assertion": "off",
|
143 | 99 | "@typescript-eslint/no-explicit-any": "off",
|
144 | 100 | "import/no-extraneous-dependencies": "off",
|
145 |
| - "jest/expect-expect": "off" |
| 101 | + "jest/expect-expect": "off", |
| 102 | + "@nx/enforce-module-boundaries": ["off"] |
146 | 103 | }
|
147 | 104 | }
|
148 | 105 | ]
|
|
0 commit comments