|
1 | | -import { eslint } from "@siberiacancode/eslint"; |
| 1 | +import { eslint } from '@siberiacancode/eslint'; |
2 | 2 |
|
3 | 3 | export default eslint( |
4 | 4 | { |
5 | 5 | typescript: true, |
6 | 6 | javascript: true, |
7 | 7 | react: true, |
8 | 8 | jsx: true, |
9 | | - vue: true, |
| 9 | + vue: true |
10 | 10 | }, |
11 | 11 | { |
12 | | - name: "siberiacancode/core/md", |
13 | | - files: ["*.md"], |
| 12 | + name: 'siberiacancode/core/md', |
| 13 | + files: ['*.md'], |
14 | 14 | rules: { |
15 | | - "react-refresh/only-export-components": "warn", |
16 | | - }, |
| 15 | + 'react-refresh/only-export-components': 'warn' |
| 16 | + } |
17 | 17 | }, |
18 | 18 | { |
19 | | - name: "siberiacancode/core/ignores", |
20 | | - ignores: ["**/bundle/**/*.js"], |
| 19 | + name: 'siberiacancode/core/ignores', |
| 20 | + ignores: ['**/bundle/**/*.js'] |
21 | 21 | }, |
22 | 22 | { |
23 | | - name: "siberiacancode/core/hooks", |
24 | | - files: ["**/{hooks,helpers}/**/*.{ts,tsx}"], |
| 23 | + name: 'siberiacancode/core/hooks', |
| 24 | + files: ['**/{hooks,helpers}/**/*.{ts,tsx}'], |
25 | 25 | rules: { |
26 | | - "react-dom/no-flush-sync": "warn", |
27 | | - "jsdoc/no-defaults": "off", |
28 | | - "react-hooks/rules-of-hooks": "warn", |
29 | | - "react/no-use-context": "off", |
30 | | - "react/no-context-provider": "off", |
31 | | - }, |
| 26 | + 'react-dom/no-flush-sync': 'warn', |
| 27 | + 'jsdoc/no-defaults': 'off', |
| 28 | + 'react-hooks/rules-of-hooks': 'warn', |
| 29 | + 'react/no-use-context': 'off', |
| 30 | + 'react/no-context-provider': 'off' |
| 31 | + } |
32 | 32 | }, |
33 | 33 | { |
34 | | - name: "siberiacancode/core/tests", |
35 | | - files: ["**/*.test.ts"], |
| 34 | + name: 'siberiacancode/core/tests', |
| 35 | + files: ['**/*.test.ts'], |
36 | 36 | rules: { |
37 | | - "react/no-create-ref": "off", |
38 | | - }, |
| 37 | + 'react/no-create-ref': 'off' |
| 38 | + } |
39 | 39 | }, |
40 | 40 | { |
41 | | - name: "siberiacancode/core/demo", |
42 | | - files: ["**/*.demo.tsx"], |
| 41 | + name: 'siberiacancode/core/demo', |
| 42 | + files: ['**/*.demo.tsx'], |
43 | 43 | rules: { |
44 | | - "no-alert": "off", |
45 | | - }, |
| 44 | + 'no-alert': 'off' |
| 45 | + } |
46 | 46 | } |
47 | 47 | ); |
0 commit comments