oxlint 0.13.2 → 0.14.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 +13 -5
- package/package.json +9 -9
|
@@ -32,6 +32,14 @@
|
|
|
32
32
|
}
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
|
+
"ignorePatterns": {
|
|
36
|
+
"description": "Globs to ignore during linting. These are resolved from the configuration file path.",
|
|
37
|
+
"default": [],
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
35
43
|
"overrides": {
|
|
36
44
|
"description": "Add, remove, or otherwise reconfigure rules for specific files or groups of files.",
|
|
37
45
|
"allOf": [
|
|
@@ -240,7 +248,7 @@
|
|
|
240
248
|
"type": "object",
|
|
241
249
|
"properties": {
|
|
242
250
|
"components": {
|
|
243
|
-
"description": "To have your custom components be checked as DOM elements, you can provide a mapping of your component names to the DOM element name.\n\n
|
|
251
|
+
"description": "To have your custom components be checked as DOM elements, you can provide a mapping of your component names to the DOM element name.\n\nExample:\n\n```json { \"settings\": { \"jsx-a11y\": { \"components\": { \"Link\": \"a\", \"IconButton\": \"button\" } } } } ```",
|
|
244
252
|
"default": {},
|
|
245
253
|
"type": "object",
|
|
246
254
|
"additionalProperties": {
|
|
@@ -267,7 +275,7 @@
|
|
|
267
275
|
"type": "object",
|
|
268
276
|
"properties": {
|
|
269
277
|
"rootDir": {
|
|
270
|
-
"description": "The root directory of the Next.js project.\n\nThis is particularly useful when you have a monorepo and your Next.js project is in a subfolder.\n\n
|
|
278
|
+
"description": "The root directory of the Next.js project.\n\nThis is particularly useful when you have a monorepo and your Next.js project is in a subfolder.\n\nExample:\n\n```json { \"settings\": { \"next\": { \"rootDir\": \"apps/dashboard/\" } } } ```",
|
|
271
279
|
"default": [],
|
|
272
280
|
"allOf": [
|
|
273
281
|
{
|
|
@@ -384,7 +392,7 @@
|
|
|
384
392
|
},
|
|
385
393
|
"OxlintSettings": {
|
|
386
394
|
"title": "Oxlint Plugin Settings",
|
|
387
|
-
"description": "Configure the behavior of linter plugins.\n\
|
|
395
|
+
"description": "Configure the behavior of linter plugins.\n\nHere's an example if you're using Next.js in a monorepo:\n\n```json { \"settings\": { \"next\": { \"rootDir\": \"apps/dashboard/\" }, \"react\": { \"linkComponents\": [ { \"name\": \"Link\", \"linkAttribute\": \"to\" } ] }, \"jsx-a11y\": { \"components\": { \"Link\": \"a\", \"Button\": \"button\" } } } } ```",
|
|
388
396
|
"type": "object",
|
|
389
397
|
"properties": {
|
|
390
398
|
"jsdoc": {
|
|
@@ -443,7 +451,7 @@
|
|
|
443
451
|
"type": "object",
|
|
444
452
|
"properties": {
|
|
445
453
|
"formComponents": {
|
|
446
|
-
"description": "Components used as alternatives to `<form>` for forms, such as `<Formik>`.\n\n
|
|
454
|
+
"description": "Components used as alternatives to `<form>` for forms, such as `<Formik>`.\n\nExample:\n\n```jsonc { \"settings\": { \"react\": { \"formComponents\": [ \"CustomForm\", // OtherForm is considered a form component and has an endpoint attribute { \"name\": \"OtherForm\", \"formAttribute\": \"endpoint\" }, // allows specifying multiple properties if necessary { \"name\": \"Form\", \"formAttribute\": [\"registerEndpoint\", \"loginEndpoint\"] } ] } } } ```",
|
|
447
455
|
"default": [],
|
|
448
456
|
"type": "array",
|
|
449
457
|
"items": {
|
|
@@ -451,7 +459,7 @@
|
|
|
451
459
|
}
|
|
452
460
|
},
|
|
453
461
|
"linkComponents": {
|
|
454
|
-
"description": "Components used as alternatives to `<a>` for linking, such as `<Link>`.\n\n
|
|
462
|
+
"description": "Components used as alternatives to `<a>` for linking, such as `<Link>`.\n\nExample:\n\n```jsonc { \"settings\": { \"react\": { \"linkComponents\": [ \"HyperLink\", // Use `linkAttribute` for components that use a different prop name // than `href`. { \"name\": \"MyLink\", \"linkAttribute\": \"to\" }, // allows specifying multiple properties if necessary { \"name\": \"Link\", \"linkAttribute\": [\"to\", \"href\"] } ] } } } ```",
|
|
455
463
|
"default": [],
|
|
456
464
|
"type": "array",
|
|
457
465
|
"items": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.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.14.0",
|
|
33
|
+
"@oxlint/win32-arm64": "0.14.0",
|
|
34
|
+
"@oxlint/linux-x64-gnu": "0.14.0",
|
|
35
|
+
"@oxlint/linux-arm64-gnu": "0.14.0",
|
|
36
|
+
"@oxlint/linux-x64-musl": "0.14.0",
|
|
37
|
+
"@oxlint/linux-arm64-musl": "0.14.0",
|
|
38
|
+
"@oxlint/darwin-x64": "0.14.0",
|
|
39
|
+
"@oxlint/darwin-arm64": "0.14.0"
|
|
40
40
|
}
|
|
41
41
|
}
|