|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/oxlint/configuration_schema.json", |
3 | 3 | "plugins": ["eslint", "typescript", "unicorn", "oxc", "import"], |
| 4 | + "jsPlugins": [ |
| 5 | + { |
| 6 | + "name": "mocha", |
| 7 | + "specifier": "eslint-plugin-mocha" |
| 8 | + } |
| 9 | + ], |
| 10 | + |
4 | 11 | "ignorePatterns": [ |
5 | | - ".git/**", |
6 | 12 | "resources/playground/**", |
7 | | - "packages/*/out/**", |
8 | | - "packages/*/dist/**", |
9 | | - "packages/app-web-docs/.docusaurus/**", |
10 | | - "packages/app-neovim/cursorless.nvim/**", |
11 | | - "packages/app-vscode/src/keyboard/grammar/generated/**", |
12 | | - "packages/lib-engine/src/customCommandGrammar/generated/**", |
13 | | - "packages/lib-engine/src/snippets/vendor/**", |
14 | | - "**/node_modules/**" |
| 13 | + "packages/app-neovim/cursorless.nvim/**" |
15 | 14 | ], |
| 15 | + |
| 16 | + "options": { |
| 17 | + "typeAware": true, |
| 18 | + "typeCheck": false |
| 19 | + }, |
| 20 | + |
16 | 21 | "rules": { |
17 | | - "import/no-relative-packages": "error", |
18 | | - "import/no-duplicates": "error", |
19 | | - "unused-imports/no-unused-imports": "error", |
20 | | - "@typescript-eslint/consistent-type-imports": "error", |
21 | | - "@typescript-eslint/consistent-type-assertions": [ |
22 | | - "error", |
| 22 | + "import/no-relative-packages": "warn", |
| 23 | + "import/no-duplicates": "warn", |
| 24 | + "typescript/consistent-type-imports": "warn", |
| 25 | + "typescript/consistent-type-assertions": [ |
| 26 | + "warn", |
23 | 27 | { |
24 | 28 | "assertionStyle": "as" |
25 | 29 | } |
26 | 30 | ], |
27 | | - "@typescript-eslint/naming-convention": [ |
28 | | - "error", |
29 | | - { |
30 | | - "selector": ["objectLiteralProperty"], |
31 | | - "format": ["camelCase"], |
32 | | - "filter": { |
33 | | - "regex": "[.]", |
34 | | - "match": false |
35 | | - } |
36 | | - } |
37 | | - ], |
38 | | - "@typescript-eslint/no-floating-promises": "error", |
39 | | - "@typescript-eslint/no-explicit-any": "off", |
40 | | - "@typescript-eslint/no-inferrable-types": "off", |
41 | | - "@typescript-eslint/no-non-null-assertion": "off", |
42 | | - "@typescript-eslint/no-unused-vars": [ |
43 | | - "error", |
| 31 | + "typescript/no-explicit-any": "off", |
| 32 | + "typescript/no-inferrable-types": "off", |
| 33 | + "typescript/restrict-template-expressions": "off", |
| 34 | + "typescript/no-base-to-string": "off", |
| 35 | + "typescript/unbound-method": "off", |
| 36 | + "eslint/no-unused-vars": [ |
| 37 | + "warn", |
44 | 38 | { |
45 | 39 | "argsIgnorePattern": "^_", |
46 | 40 | "varsIgnorePattern": "^_", |
47 | 41 | "caughtErrorsIgnorePattern": "^_", |
48 | 42 | "ignoreRestSiblings": true |
49 | 43 | } |
50 | 44 | ], |
51 | | - "curly": "error", |
| 45 | + "curly": "warn", |
52 | 46 | "eqeqeq": [ |
53 | | - "error", |
| 47 | + "warn", |
54 | 48 | "always", |
55 | 49 | { |
56 | 50 | "null": "never" |
57 | 51 | } |
58 | 52 | ], |
59 | | - "no-constant-condition": [ |
60 | | - "error", |
| 53 | + "no-warning-comments": [ |
| 54 | + "warn", |
61 | 55 | { |
62 | | - "checkLoops": false |
| 56 | + "terms": ["todo"] |
63 | 57 | } |
64 | 58 | ], |
65 | | - "no-restricted-syntax": [ |
66 | | - "error", |
67 | | - "MemberExpression[object.property.name='constructor'][property.name='name']" |
| 59 | + "eslint/no-constant-condition": [ |
| 60 | + "warn", |
| 61 | + { |
| 62 | + "checkLoops": false |
| 63 | + } |
68 | 64 | ], |
69 | | - "no-throw-literal": "error", |
70 | | - "semi": "off", |
71 | | - "unicorn/prefer-module": "error", |
72 | | - "mocha/no-pending-tests": "error", |
73 | | - "mocha/no-exclusive-tests": "error" |
74 | | - }, |
75 | | - "overrides": [] |
| 65 | + "eslint/no-throw-literal": "warn", |
| 66 | + "unicorn/prefer-module": "warn", |
| 67 | + "mocha/no-pending-tests": "warn", |
| 68 | + "mocha/no-exclusive-tests": "warn" |
| 69 | + } |
76 | 70 | } |
0 commit comments