oxlint 0.11.1 → 0.12.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/configuration_schema.json +57 -1
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "Oxlintrc",
|
|
4
|
-
"description": "Oxlint Configuration File\n\nThis configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).\n\nUsage: `oxlint -c oxlintrc.json --import-plugin`\n\n::: danger NOTE\n\nOnly the `.json` format is supported. You can use comments in configuration files.\n\n:::\n\nExample\n\n`.oxlintrc.json`\n\n```json { \"$schema\": \"./node_modules/oxlint/configuration_schema.json\", \"plugins\": [\"import\", \"unicorn\"], \"env\": { \"browser\": true }, \"globals\": { \"foo\": \"readonly\" }, \"settings\": { }, \"rules\": { \"eqeqeq\": \"warn\", \"import/no-cycle\": \"error\" } } ```",
|
|
4
|
+
"description": "Oxlint Configuration File\n\nThis configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).\n\nUsage: `oxlint -c oxlintrc.json --import-plugin`\n\n::: danger NOTE\n\nOnly the `.json` format is supported. You can use comments in configuration files.\n\n:::\n\nExample\n\n`.oxlintrc.json`\n\n```json { \"$schema\": \"./node_modules/oxlint/configuration_schema.json\", \"plugins\": [\"import\", \"typescript\", \"unicorn\"], \"env\": { \"browser\": true }, \"globals\": { \"foo\": \"readonly\" }, \"settings\": { }, \"rules\": { \"eqeqeq\": \"warn\", \"import/no-cycle\": \"error\" }, \"overrides\": [ { \"files\": [\"*.test.ts\", \"*.spec.ts\"], \"rules\": { \"@typescript-eslint/no-explicit-any\": \"off\" } } ] } ```",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"categories": {
|
|
@@ -32,6 +32,14 @@
|
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
|
+
"overrides": {
|
|
36
|
+
"description": "Add, remove, or otherwise reconfigure rules for specific files or groups of files.",
|
|
37
|
+
"allOf": [
|
|
38
|
+
{
|
|
39
|
+
"$ref": "#/definitions/OxlintOverrides"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
35
43
|
"plugins": {
|
|
36
44
|
"default": [
|
|
37
45
|
"react",
|
|
@@ -166,6 +174,12 @@
|
|
|
166
174
|
"$ref": "#/definitions/DummyRule"
|
|
167
175
|
}
|
|
168
176
|
},
|
|
177
|
+
"GlobSet": {
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
169
183
|
"GlobalValue": {
|
|
170
184
|
"type": "string",
|
|
171
185
|
"enum": [
|
|
@@ -318,6 +332,48 @@
|
|
|
318
332
|
"$ref": "#/definitions/GlobalValue"
|
|
319
333
|
}
|
|
320
334
|
},
|
|
335
|
+
"OxlintOverride": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"required": [
|
|
338
|
+
"files"
|
|
339
|
+
],
|
|
340
|
+
"properties": {
|
|
341
|
+
"files": {
|
|
342
|
+
"description": "A list of glob patterns to override.\n\n## Example `[ \"*.test.ts\", \"*.spec.ts\" ]`",
|
|
343
|
+
"allOf": [
|
|
344
|
+
{
|
|
345
|
+
"$ref": "#/definitions/GlobSet"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"plugins": {
|
|
350
|
+
"description": "Optionally change what plugins are enabled for this override. When omitted, the base config's plugins are used.",
|
|
351
|
+
"default": null,
|
|
352
|
+
"anyOf": [
|
|
353
|
+
{
|
|
354
|
+
"$ref": "#/definitions/LintPlugins"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "null"
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"rules": {
|
|
362
|
+
"default": {},
|
|
363
|
+
"allOf": [
|
|
364
|
+
{
|
|
365
|
+
"$ref": "#/definitions/OxlintRules"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"OxlintOverrides": {
|
|
372
|
+
"type": "array",
|
|
373
|
+
"items": {
|
|
374
|
+
"$ref": "#/definitions/OxlintOverride"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
321
377
|
"OxlintRules": {
|
|
322
378
|
"$ref": "#/definitions/DummyRuleMap"
|
|
323
379
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Linter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Boshen and oxc contributors",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"README.md"
|
|
30
30
|
],
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@oxlint/win32-x64": "0.
|
|
33
|
-
"@oxlint/win32-arm64": "0.
|
|
34
|
-
"@oxlint/linux-x64-gnu": "0.
|
|
35
|
-
"@oxlint/linux-arm64-gnu": "0.
|
|
36
|
-
"@oxlint/linux-x64-musl": "0.
|
|
37
|
-
"@oxlint/linux-arm64-musl": "0.
|
|
38
|
-
"@oxlint/darwin-x64": "0.
|
|
39
|
-
"@oxlint/darwin-arm64": "0.
|
|
32
|
+
"@oxlint/win32-x64": "0.12.0",
|
|
33
|
+
"@oxlint/win32-arm64": "0.12.0",
|
|
34
|
+
"@oxlint/linux-x64-gnu": "0.12.0",
|
|
35
|
+
"@oxlint/linux-arm64-gnu": "0.12.0",
|
|
36
|
+
"@oxlint/linux-x64-musl": "0.12.0",
|
|
37
|
+
"@oxlint/linux-arm64-musl": "0.12.0",
|
|
38
|
+
"@oxlint/darwin-x64": "0.12.0",
|
|
39
|
+
"@oxlint/darwin-arm64": "0.12.0"
|
|
40
40
|
}
|
|
41
41
|
}
|