|
1 | | -// import { solvro } from "@solvro/config/eslint"; |
2 | | -// export default solvro({ |
3 | | -// rules: { |
4 | | -// "jsx-a11y/label-has-associated-control": [ |
5 | | -// "error", |
6 | | -// { |
7 | | -// labelComponents: ["Label"], |
8 | | -// labelAttributes: ["label"], |
9 | | -// controlComponents: ["Checkbox"], |
10 | | -// depth: 3, |
11 | | -// }, |
12 | | -// ], |
13 | | -// }, |
14 | | -// }); |
15 | | -import nextVitals from "eslint-config-next/core-web-vitals"; |
16 | | -import nextTs from "eslint-config-next/typescript"; |
17 | | -import { defineConfig, globalIgnores } from "eslint/config"; |
| 1 | +import { solvro } from "@solvro/config/eslint"; |
18 | 2 |
|
19 | | -const eslintConfig = defineConfig([ |
20 | | - ...nextVitals, |
21 | | - ...nextTs, |
22 | | - // Override default ignores of eslint-config-next. |
23 | | - globalIgnores([ |
24 | | - // Default ignores of eslint-config-next: |
25 | | - ".next/**", |
26 | | - "out/**", |
27 | | - "build/**", |
28 | | - "next-env.d.ts", |
29 | | - ]), |
30 | | -]); |
| 3 | +export default solvro({ |
| 4 | + rules: { |
| 5 | + "jsx-a11y/label-has-associated-control": [ |
| 6 | + "error", |
| 7 | + { |
| 8 | + labelComponents: ["Label"], |
| 9 | + labelAttributes: ["label"], |
| 10 | + controlComponents: ["Checkbox"], |
| 11 | + depth: 3, |
| 12 | + }, |
| 13 | + ], |
| 14 | + }, |
| 15 | +}); |
| 16 | +// import nextVitals from "eslint-config-next/core-web-vitals"; |
| 17 | +// import nextTs from "eslint-config-next/typescript"; |
| 18 | +// import { defineConfig, globalIgnores } from "eslint/config"; |
31 | 19 |
|
32 | | -export default eslintConfig; |
| 20 | +// const eslintConfig = defineConfig([ |
| 21 | +// ...nextVitals, |
| 22 | +// ...nextTs, |
| 23 | +// // Override default ignores of eslint-config-next. |
| 24 | +// globalIgnores([ |
| 25 | +// // Default ignores of eslint-config-next: |
| 26 | +// ".next/**", |
| 27 | +// "out/**", |
| 28 | +// "build/**", |
| 29 | +// "next-env.d.ts", |
| 30 | +// ]), |
| 31 | +// ]); |
| 32 | + |
| 33 | +// export default eslintConfig; |
0 commit comments