oxlint 0.9.10 → 0.10.1
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 +41 -0
- package/package.json +9 -9
|
@@ -4,6 +4,14 @@
|
|
|
4
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 { \"env\": { \"browser\": true }, \"globals\": { \"foo\": \"readonly\" }, \"settings\": { }, \"rules\": { \"eqeqeq\": \"warn\", \"import/no-cycle\": \"error\" } } ```",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
+
"categories": {
|
|
8
|
+
"default": {},
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/definitions/OxlintCategories"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
7
15
|
"env": {
|
|
8
16
|
"description": "Environments enable and disable collections of global variables.",
|
|
9
17
|
"default": {
|
|
@@ -263,6 +271,39 @@
|
|
|
263
271
|
}
|
|
264
272
|
]
|
|
265
273
|
},
|
|
274
|
+
"OxlintCategories": {
|
|
275
|
+
"title": "Rule Categories",
|
|
276
|
+
"description": "Configure an entire category of rules all at once.\n\nRules enabled or disabled this way will be overwritten by individual rules in the `rules` field.\n\n# Example\n```json\n{\n \"categories\": {\n \"correctness\": \"warn\"\n },\n \"rules\": {\n \"eslint/no-unused-vars\": \"error\"\n }\n}\n```",
|
|
277
|
+
"examples": [
|
|
278
|
+
{
|
|
279
|
+
"correctness": "warn"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": {
|
|
284
|
+
"correctness": {
|
|
285
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
286
|
+
},
|
|
287
|
+
"nursery": {
|
|
288
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
289
|
+
},
|
|
290
|
+
"pedantic": {
|
|
291
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
292
|
+
},
|
|
293
|
+
"perf": {
|
|
294
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
295
|
+
},
|
|
296
|
+
"restriction": {
|
|
297
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
298
|
+
},
|
|
299
|
+
"style": {
|
|
300
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
301
|
+
},
|
|
302
|
+
"suspicious": {
|
|
303
|
+
"$ref": "#/definitions/AllowWarnDeny"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
266
307
|
"OxlintEnv": {
|
|
267
308
|
"description": "Predefine global variables.\n\nEnvironments specify what global variables are predefined. See [ESLint's list of environments](https://eslint.org/docs/v8.x/use/configure/language-options#specifying-environments) for what environments are available and what each one provides.",
|
|
268
309
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
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.10.1",
|
|
33
|
+
"@oxlint/win32-arm64": "0.10.1",
|
|
34
|
+
"@oxlint/linux-x64-gnu": "0.10.1",
|
|
35
|
+
"@oxlint/linux-arm64-gnu": "0.10.1",
|
|
36
|
+
"@oxlint/linux-x64-musl": "0.10.1",
|
|
37
|
+
"@oxlint/linux-arm64-musl": "0.10.1",
|
|
38
|
+
"@oxlint/darwin-x64": "0.10.1",
|
|
39
|
+
"@oxlint/darwin-arm64": "0.10.1"
|
|
40
40
|
}
|
|
41
41
|
}
|