|
1 | 1 | { |
2 | | - "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/refs/heads/main/npm/oxlint/configuration_schema.json", |
| 2 | + "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json", |
3 | 3 | "ignorePatterns": [ "eslint.config.ts", "deno-deploy-serve.ts" ], |
4 | 4 | "env": { "builtin": true }, |
5 | 5 | "options": { |
|
13 | 13 | "perf": "warn", |
14 | 14 | "style": "warn", |
15 | 15 | "restriction": "warn", |
16 | | - "nursery": "warn", |
| 16 | + "nursery": "warn" |
17 | 17 | }, |
18 | 18 | "plugins": [ |
19 | 19 | "oxc", |
20 | 20 | "eslint", |
21 | 21 | "typescript", |
22 | 22 | "unicorn", |
23 | 23 | "import", |
| 24 | + "promise", |
24 | 25 | "react", |
25 | 26 | "react-perf", |
26 | | - "promise", |
27 | | - // "node", |
28 | | - ], |
29 | | - "jsPlugins": [ |
30 | | - { "name": "react-hooks-js", "specifier": "eslint-plugin-react-hooks" } |
31 | 27 | ], |
| 28 | + // "jsPlugins": [ |
| 29 | + // { "name": "react-hooks-js", "specifier": "eslint-plugin-react-hooks" } |
| 30 | + // ], |
32 | 31 | "overrides": [{ |
33 | 32 | "files": [ "**/*.{js,jsx,ts,tsx}" ], |
34 | 33 | "env": { "browser": true }, |
|
37 | 36 | "process": "readonly" |
38 | 37 | }, |
39 | 38 | "rules": { |
| 39 | + "oxc/no-async-await": "off", |
| 40 | + "oxc/no-optional-chaining": "off", |
40 | 41 | "eslint/capitalized-comments": "off", |
41 | 42 | "eslint/complexity": [ "warn", 30 ], |
42 | 43 | "eslint/curly": "off", |
|
52 | 53 | "eslint/max-statements": [ "warn", 50 ], |
53 | 54 | "eslint/no-bitwise": "off", |
54 | 55 | "eslint/no-console": "off", |
55 | | - "no-empty-function": "off", |
| 56 | + "eslint/no-empty-function": "off", |
56 | 57 | "eslint/no-inline-comments": "off", |
57 | 58 | "eslint/no-magic-numbers": "off", |
58 | 59 | "eslint/no-negated-condition": "off", |
|
67 | 68 | "eslint/sort-imports": "off", |
68 | 69 | "eslint/sort-keys": "off", |
69 | 70 | "eslint/sort-vars": "off", |
70 | | - "oxc/no-async-await": "off", |
71 | | - "oxc/no-optional-chaining": "off", |
72 | 71 | "typescript/consistent-return": "off", |
73 | 72 | "typescript/consistent-type-definitions": [ "error", "type" ], |
74 | 73 | "typescript/explicit-function-return-type": "off", |
|
101 | 100 | "import/no-nodejs-modules": "off", |
102 | 101 | "import/no-unassigned-import": [ "warn", { "allow": [ "**/*.css" ] } ], |
103 | 102 | "promise/always-return": [ "warn", { "ignoreLastCallback": true } ], |
| 103 | + "promise/prefer-await-to-callbacks": "off", |
| 104 | + "promise/prefer-await-to-then": "off", |
104 | 105 | "react/button-has-type": "off", |
105 | 106 | "react/exhaustive-deps": "off", |
106 | 107 | "react/forbid-component-props": "off", |
107 | 108 | "react/jsx-filename-extension": [ "warn", { "extensions": [ ".jsx", ".tsx" ] } ], |
108 | 109 | "react/jsx-max-depth": [ "warn", { "max": 10 } ], |
| 110 | + "react/jsx-no-literals": "off", |
109 | 111 | "react/jsx-props-no-spreading": "off", |
110 | 112 | "react/no-multi-comp": [ "off", { "ignoreStateless": true } ], |
111 | 113 | "react/only-export-components": "off", |
112 | 114 | "react/react-in-jsx-scope": "off", |
113 | 115 | "react-perf/jsx-no-jsx-as-prop": "off", |
114 | 116 | "react-perf/jsx-no-new-function-as-prop": "off", |
115 | | - "react-perf/jsx-no-new-object-as-prop": "off", |
| 117 | + "react-perf/jsx-no-new-object-as-prop": "off" |
116 | 118 | } |
117 | 119 | }] |
118 | 120 | } |
0 commit comments