@destination/oxc-config 0.1.1 → 0.2.0
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.
- package/README.md +3 -4
- package/package.json +2 -2
- package/src/oxlintrc.json +9 -1
package/README.md
CHANGED
|
@@ -63,10 +63,9 @@ export default defineConfig({ ...destination });
|
|
|
63
63
|
|
|
64
64
|
Oxfmt has no `extends`, so override options by setting them after the spread.
|
|
65
65
|
|
|
66
|
-
The config
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
`@destination/prettier-plugin-twig` for those.
|
|
66
|
+
The config indents with 2 spaces and wraps lines at 120 characters, and sorts imports into the groups
|
|
67
|
+
`@destination/eslint-config` enforces with `import-x/order`. Oxfmt doesn't format Twig, so projects with Twig
|
|
68
|
+
templates still need Prettier and `@destination/prettier-plugin-twig` for those.
|
|
70
69
|
|
|
71
70
|
### Running
|
|
72
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destination/oxc-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Oxlint and Oxfmt config used by Destination",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxc",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"check": "oxlint && oxfmt --check"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@destination/eslint-config": "^3.
|
|
34
|
+
"@destination/eslint-config": "^3.3.0",
|
|
35
35
|
"@oxlint/migrate": "^1.95.0",
|
|
36
36
|
"eslint": "^10.15.0",
|
|
37
37
|
"oxfmt": "^0.80.0",
|
package/src/oxlintrc.json
CHANGED
|
@@ -218,12 +218,19 @@
|
|
|
218
218
|
"allow": ["warn", "error", "info"]
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
|
+
"no-param-reassign": "error",
|
|
221
222
|
"curly": ["error", "all"],
|
|
222
223
|
"import/namespace": "error",
|
|
223
224
|
"import/default": "error",
|
|
224
225
|
"import/no-named-as-default": "warn",
|
|
225
226
|
"import/no-named-as-default-member": "warn",
|
|
226
227
|
"import/no-duplicates": "warn",
|
|
228
|
+
"import/no-cycle": [
|
|
229
|
+
"error",
|
|
230
|
+
{
|
|
231
|
+
"ignoreExternal": true
|
|
232
|
+
}
|
|
233
|
+
],
|
|
227
234
|
"typescript/await-thenable": "error",
|
|
228
235
|
"typescript/ban-ts-comment": "error",
|
|
229
236
|
"typescript/no-array-delete": "error",
|
|
@@ -264,7 +271,8 @@
|
|
|
264
271
|
"typescript/restrict-plus-operands": "error",
|
|
265
272
|
"typescript/restrict-template-expressions": "error",
|
|
266
273
|
"typescript/triple-slash-reference": "error",
|
|
267
|
-
"typescript/unbound-method": "error"
|
|
274
|
+
"typescript/unbound-method": "error",
|
|
275
|
+
"typescript/switch-exhaustiveness-check": "error"
|
|
268
276
|
},
|
|
269
277
|
"overrides": [
|
|
270
278
|
{
|