|
1 | 1 | { |
2 | 2 | "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json", |
3 | | - "plugins": ["typescript", "unicorn", "import"], |
| 3 | + "plugins": [ |
| 4 | + "typescript", |
| 5 | + "unicorn", |
| 6 | + "import" |
| 7 | + ], |
| 8 | + "jsPlugins": [ |
| 9 | + "./.config/oxlint-plugin/index.js" |
| 10 | + ], |
4 | 11 | "categories": { |
5 | 12 | "correctness": "error", |
6 | 13 | "suspicious": "error" |
7 | 14 | }, |
8 | 15 | "rules": { |
9 | | - "eslint/curly": ["error", "all"], |
| 16 | + "socket/export-top-level-functions": "error", |
| 17 | + "socket/no-console-prefer-logger": "error", |
| 18 | + "socket/no-dynamic-import-outside-bundle": "error", |
| 19 | + "socket/no-fetch-prefer-http-request": "error", |
| 20 | + "socket/no-inline-logger": "error", |
| 21 | + "socket/no-promise-race-in-loop": "error", |
| 22 | + "socket/no-status-emoji": "error", |
| 23 | + "socket/no-todo-comments": "error", |
| 24 | + "socket/prefer-exists-sync": "error", |
| 25 | + "socket/prefer-safe-delete": "error", |
| 26 | + "socket/prefer-undefined-over-null": "error", |
| 27 | + "socket/sort-set-args": "error", |
| 28 | + "socket/sort-source-methods": "error", |
| 29 | + "eslint/curly": [ |
| 30 | + "error", |
| 31 | + "all" |
| 32 | + ], |
10 | 33 | "eslint/no-await-in-loop": "off", |
11 | 34 | "eslint/no-console": "off", |
12 | 35 | "eslint/no-control-regex": "off", |
13 | | - "eslint/no-empty": ["error", { "allowEmptyCatch": true }], |
| 36 | + "eslint/no-empty": [ |
| 37 | + "error", |
| 38 | + { |
| 39 | + "allowEmptyCatch": true |
| 40 | + } |
| 41 | + ], |
14 | 42 | "eslint/no-new": "error", |
15 | 43 | "eslint/no-unmodified-loop-condition": "off", |
16 | 44 | "eslint/no-useless-catch": "off", |
|
26 | 54 | "import/no-named-as-default-member": "off", |
27 | 55 | "import/no-self-import": "error", |
28 | 56 | "import/no-unassigned-import": "off", |
29 | | - "typescript/array-type": ["error", { "default": "array-simple" }], |
| 57 | + "typescript/array-type": [ |
| 58 | + "error", |
| 59 | + { |
| 60 | + "default": "array-simple" |
| 61 | + } |
| 62 | + ], |
30 | 63 | "typescript/no-extraneous-class": "off", |
31 | 64 | "typescript/consistent-type-assertions": [ |
32 | 65 | "error", |
33 | | - { "assertionStyle": "as" } |
| 66 | + { |
| 67 | + "assertionStyle": "as" |
| 68 | + } |
34 | 69 | ], |
35 | 70 | "typescript/no-misused-new": "error", |
36 | 71 | "typescript/no-non-null-asserted-optional-chain": "off", |
37 | | - "typescript/no-this-alias": ["error", { "allowDestructuring": true }], |
| 72 | + "typescript/no-this-alias": [ |
| 73 | + "error", |
| 74 | + { |
| 75 | + "allowDestructuring": true |
| 76 | + } |
| 77 | + ], |
38 | 78 | "unicorn/consistent-function-scoping": "off", |
39 | 79 | "unicorn/no-array-for-each": "off", |
40 | 80 | "unicorn/no-array-sort": "off", |
|
0 commit comments