@scaleway/oxlint-config 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@
12
12
  "plugins": ["import", "node", "oxc", "unicorn"],
13
13
  "rules": {
14
14
  "capitalized-comments": "off",
15
+
15
16
  "eslint/array-callback-return": "error",
16
17
  "eslint/constructor-super": "error",
17
18
  "eslint/default-case-last": "error",
@@ -78,10 +79,7 @@
78
79
  "eslint/no-iterator": "error",
79
80
  "eslint/no-loss-of-precision": "error",
80
81
  "eslint/no-magic-numbers": "off",
81
- "eslint/no-mixed-operators": "error",
82
- "eslint/no-named-export": "off",
83
82
  "eslint/no-new-native-nonconstructor": "error",
84
- "eslint/no-new-symbol": "error",
85
83
  "eslint/no-new-wrappers": "error",
86
84
  "eslint/no-nonoctal-decimal-escape": "error",
87
85
  "eslint/no-obj-calls": "error",
@@ -89,7 +87,6 @@
89
87
  "eslint/no-prototype-builtins": "error",
90
88
  "eslint/no-redeclare": "error",
91
89
  "eslint/no-regex-spaces": "error",
92
- "eslint/no-return-await": "error",
93
90
  "eslint/no-script-url": "error",
94
91
  "eslint/no-self-assign": "error",
95
92
  "eslint/no-self-compare": "error",
@@ -104,8 +101,6 @@
104
101
  "eslint/no-unsafe-finally": "error",
105
102
  "eslint/no-unsafe-negation": "error",
106
103
  "eslint/no-unsafe-optional-chaining": "error",
107
- "eslint/no-unused-labels": "error",
108
- "eslint/no-unused-private-class-members": "error",
109
104
  "eslint/no-unused-vars": [
110
105
  "error",
111
106
  {
@@ -121,7 +116,6 @@
121
116
  "eslint/no-with": "error",
122
117
  "eslint/prefer-destructuring": "off",
123
118
  "eslint/radix": "error",
124
- "eslint/react-in-jsx-scope": "off",
125
119
  "eslint/require-await": "off",
126
120
  "eslint/require-yield": "error",
127
121
  "eslint/sort-imports": [
@@ -136,29 +130,18 @@
136
130
  "eslint/use-isnan": "error",
137
131
  "eslint/valid-typeof": "error",
138
132
  "eslint/yoda": "error",
133
+
139
134
  "import/consistent-type-specifier-style": "error",
140
135
  "import/default": "error",
141
136
  "import/export": "error",
137
+ "import/no-default-export": "off",
138
+ "import/no-named-export": "off",
142
139
  "import/exports-last": "off",
143
140
  "import/group-exports": "off",
144
- "import/import-no-namespace": "off",
145
- "import/max-dependencies": "off",
146
- "import/named": "error",
147
141
  "import/namespace": "off",
148
- "import/no-amd": "error",
149
- "import/no-cycle": "error",
150
- "import/no-default-export": "off",
151
- "import/no-duplicates": "error",
152
- "import/no-named-as-default": "error",
153
- "import/no-named-as-default-member": "error",
154
- "import/no-named-export": "off",
155
- "import/no-nodejs-modules": "error",
156
142
  "import/no-relative-parent-imports": "off",
157
- "import/no-self-import": "error",
158
- "import/no-unassigned-import": "error",
159
- "import/no-unused-modules": "off",
160
143
  "import/prefer-default-export": "off",
161
- "import/unambiguous": "error",
144
+
162
145
  "oxc/bad-bitwise-operator": "error",
163
146
  "oxc/no-accumulating-spread": "off",
164
147
  "oxc/no-async-await": "off",
@@ -167,6 +150,7 @@
167
150
  "oxc/no-map-spread": "off",
168
151
  "oxc/no-optional-chaining": "off",
169
152
  "oxc/no-rest-spread-properties": "off",
153
+
170
154
  "unicorn/catch-error-name": "error",
171
155
  "unicorn/empty-brace-spaces": "error",
172
156
  "unicorn/error-message": "off",
@@ -184,80 +168,10 @@
184
168
  "unicorn/no-console-spaces": "error",
185
169
  "unicorn/no-document-cookie": "off",
186
170
  "unicorn/no-empty-file": "error",
187
- "unicorn/no-for-loop": "off",
188
171
  "unicorn/no-hex-escape": "error",
189
- "unicorn/no-instanceof-array": "error",
190
- "unicorn/no-instanceof-builtins": "error",
191
- "unicorn/no-invalid-remove-event-listener": "off",
192
- "unicorn/no-lonely-if": "error",
193
- "unicorn/no-magic-array-flat-depth": "off",
194
- "unicorn/no-negated-condition": "off",
195
- "unicorn/no-nested-ternary": "error",
196
- "unicorn/no-new-array": "off",
197
- "unicorn/no-new-buffer": "error",
198
172
  "unicorn/no-null": "off",
199
- "unicorn/no-object-as-default-parameter": "off",
200
- "unicorn/no-process-exit": "off",
201
- "unicorn/no-single-promise-in-promise-methods": "off",
202
- "unicorn/no-static-only-class": "error",
203
- "unicorn/no-thenable": "error",
204
- "unicorn/no-this-assignment": "error",
205
- "unicorn/no-typeof-undefined": "error",
206
- "unicorn/no-unnecessary-await": "error",
207
- "unicorn/no-unreadable-array-destructuring": "error",
208
- "unicorn/no-unreadable-iife": "error",
209
- "unicorn/no-useless-fallback-in-spread": "error",
210
- "unicorn/no-useless-length-check": "error",
211
- "unicorn/no-useless-promise-resolve-reject": "off",
212
- "unicorn/no-useless-spread": "error",
213
- "unicorn/no-useless-switch-case": "error",
214
173
  "unicorn/no-useless-undefined": "off",
215
- "unicorn/no-zero-fractions": "off",
216
- "unicorn/number-literal-case": "off",
217
- "unicorn/numeric-separators-style": "off",
218
- "unicorn/prefer-add-event-listener": "off",
219
- "unicorn/prefer-array-find": "off",
220
- "unicorn/prefer-array-flat": "error",
221
- "unicorn/prefer-array-flat-map": "error",
222
- "unicorn/prefer-array-index-of": "off",
223
- "unicorn/prefer-array-some": "off",
224
- "unicorn/prefer-blob-reading-methods": "off",
225
- "unicorn/prefer-code-point": "off",
226
- "unicorn/prefer-date-now": "error",
227
- "unicorn/prefer-dom-node-append": "off",
228
- "unicorn/prefer-dom-node-dataset": "error",
229
- "unicorn/prefer-dom-node-remove": "off",
230
- "unicorn/prefer-dom-node-text-content": "error",
231
- "unicorn/prefer-event-target": "error",
232
- "unicorn/prefer-global-this": "error",
233
- "unicorn/prefer-includes": "error",
234
- "unicorn/prefer-logical-operator-over-ternary": "off",
235
- "unicorn/prefer-math-trunc": "error",
236
- "unicorn/prefer-modern-dom-apis": "error",
237
- "unicorn/prefer-modern-math-apis": "error",
238
- "unicorn/prefer-native-coercion-functions": "error",
239
- "unicorn/prefer-node-protocol": "off",
240
- "unicorn/prefer-number-properties": "error",
241
174
  "unicorn/prefer-object-from-entries": "off",
242
- "unicorn/prefer-optional-catch-binding": "error",
243
- "unicorn/prefer-prototype-methods": "error",
244
- "unicorn/prefer-query-selector": "off",
245
- "unicorn/prefer-reflect-apply": "error",
246
- "unicorn/prefer-regexp-test": "error",
247
- "unicorn/prefer-set-has": "off",
248
- "unicorn/prefer-set-size": "error",
249
- "unicorn/prefer-spread": "error",
250
- "unicorn/prefer-string-replace-all": "off",
251
- "unicorn/prefer-string-slice": "off",
252
- "unicorn/prefer-string-starts-ends-with": "error",
253
- "unicorn/prefer-string-trim-start-end": "error",
254
- "unicorn/prefer-ternary": ["error", "only-single-line"],
255
- "unicorn/prefer-top-level-await": "off",
256
- "unicorn/prefer-type-error": "error",
257
- "unicorn/require-array-join-separator": "error",
258
- "unicorn/require-number-to-fixed-digits-argument": "error",
259
- "unicorn/switch-case-braces": "error",
260
- "unicorn/text-encoding-identifier-case": "error",
261
- "unicorn/throw-new-error": "error"
175
+ "unicorn/prefer-string-replace-all": "off"
262
176
  }
263
177
  }
@@ -5,7 +5,7 @@
5
5
  "rules": {
6
6
  "react_perf/jsx-no-jsx-as-prop": "error",
7
7
  "react_perf/jsx-no-new-array-as-prop": "error",
8
- "react_perf/jsx-no-new-function-as-props": "error",
8
+ "react_perf/jsx-no-new-function-as-prop": "off",
9
9
  "react_perf/jsx-no-new-object-as-prop": "error",
10
10
  "react-perf/jsx-no-jsx-as-prop": "off",
11
11
  "react-perf/jsx-no-new-array-as-prop": "off",
@@ -13,6 +13,7 @@
13
13
  "react-perf/jsx-no-new-object-as-prop": "off",
14
14
  "react/button-has-type": "error",
15
15
  "react/display-name": "off",
16
+ "react/hook-use-state": "off",
16
17
  "react/exhaustive-deps": "error",
17
18
  "react/iframe-missing-sandbox": "error",
18
19
  "react/jsx-filename-extension": [
@@ -23,13 +24,13 @@
23
24
  ],
24
25
  "react/jsx-handler-names": "off",
25
26
  "react/jsx-key": "error",
26
- "react/jsx-no-comment-text-nodes": "error",
27
+ "react/jsx-no-comment-textnodes": "error",
27
28
  "react/jsx-no-duplicate-props": "error",
28
29
  "react/jsx-no-target-blank": "off",
29
30
  "react/jsx-no-undef": "error",
30
31
  "react/jsx-no-useless-fragment": "error",
31
32
  "react/no-children-prop": "error",
32
- "react/no-dangerously-set-inner-html": "error",
33
+ "react/no-danger": "error",
33
34
  "react/no-direct-mutation-state": "error",
34
35
  "react/no-find-dom-node": "error",
35
36
  "react/no-is-mounted": "error",
@@ -23,15 +23,19 @@
23
23
  "typescript/no-non-null-asserted-optional-chain": "error",
24
24
  "typescript/no-non-null-assertion": "off",
25
25
  "typescript/no-this-alias": "error",
26
+ "typescript/no-unnecessary-type-arguments": "off",
26
27
  "typescript/no-unnecessary-type-constraint": "error",
28
+ "typescript/no-unnecessary-type-conversion": "off",
27
29
  "typescript/no-unsafe-declaration-merging": "error",
28
30
  "typescript/no-unsafe-member-access": "error",
29
31
  "typescript/no-var-requires": "error",
30
32
  "typescript/prefer-as-const": "error",
31
33
  "typescript/prefer-enum-initializers": "off",
34
+ "typescript/prefer-readonly-parameter-types": "off",
32
35
  "typescript/prefer-for-of": "error",
33
36
  "typescript/prefer-function-type": "off",
34
37
  "typescript/prefer-literal-enum-member": "off",
38
+ "typescript/prefer-regexp-exec": "off",
35
39
  "typescript/prefer-ts-expect-error": "off",
36
40
  "typescript/triple-slash-reference": "error"
37
41
  }
@@ -30,7 +30,8 @@
30
30
  "vitest/prefer-called-once": "error",
31
31
  "vitest/prefer-called-times": "off",
32
32
  "vitest/prefer-import-in-mock": "off",
33
- "vitest/prefer-lowercase-title": "error"
33
+ "vitest/prefer-lowercase-title": "error",
34
+ "vitest/require-test-timeout": "off"
34
35
  }
35
36
  }
36
37
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/oxlint-config",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Scaleway's shareable configuration for oxlint",
5
5
  "keywords": [
6
6
  "config",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "devDependencies": {
37
- "oxlint": "1.56.0"
37
+ "oxlint": "1.60.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "oxlint": ">=1.55.0"