oxlint 0.9.3 → 0.9.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present Boshen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -43,6 +43,6 @@ See [usage instructions](https://oxc.rs/docs/guide/usage/linter.html).
43
43
 
44
44
  Run
45
45
 
46
- * `npx --yes oxlint@latest` in your JavaScript / TypeScript codebase and see it complete in milliseconds. No configurations are required.
47
- * `npx oxlint@latest --help` for quick usage instructions.
48
- * `npx oxlint@latest --rules` for the list of rules.
46
+ - `npx --yes oxlint@latest` in your JavaScript / TypeScript codebase and see it complete in milliseconds. No configurations are required.
47
+ - `npx oxlint@latest --help` for quick usage instructions.
48
+ - `npx oxlint@latest --rules` for the list of rules.
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "OxlintConfig",
4
- "description": "Oxlint Configuration File\n\nThis configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).\n\nUsage: `oxlint -c oxlintrc.json`\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\" } } ```",
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
7
  "env": {
8
8
  "description": "Environments enable and disable collections of global variables.",
9
+ "default": {
10
+ "builtin": true
11
+ },
9
12
  "allOf": [
10
13
  {
11
14
  "$ref": "#/definitions/OxlintEnv"
@@ -14,6 +17,7 @@
14
17
  },
15
18
  "globals": {
16
19
  "description": "Enabled or disabled specific global variables.",
20
+ "default": {},
17
21
  "allOf": [
18
22
  {
19
23
  "$ref": "#/definitions/OxlintGlobals"
@@ -22,6 +26,7 @@
22
26
  },
23
27
  "rules": {
24
28
  "description": "See [Oxlint Rules](https://oxc.rs/docs/guide/usage/linter/rules.html).",
29
+ "default": {},
25
30
  "allOf": [
26
31
  {
27
32
  "$ref": "#/definitions/OxlintRules"
@@ -29,7 +34,34 @@
29
34
  ]
30
35
  },
31
36
  "settings": {
32
- "$ref": "#/definitions/OxlintSettings"
37
+ "default": {
38
+ "jsx-a11y": {
39
+ "polymorphicPropName": null,
40
+ "components": {}
41
+ },
42
+ "next": {
43
+ "rootDir": []
44
+ },
45
+ "react": {
46
+ "formComponents": [],
47
+ "linkComponents": []
48
+ },
49
+ "jsdoc": {
50
+ "ignorePrivate": false,
51
+ "ignoreInternal": false,
52
+ "ignoreReplacesDocs": true,
53
+ "overrideReplacesDocs": true,
54
+ "augmentsExtendsReplacesDocs": false,
55
+ "implementsReplacesDocs": false,
56
+ "exemptDestructuredRootsFromChecks": false,
57
+ "tagNamePreference": {}
58
+ }
59
+ },
60
+ "allOf": [
61
+ {
62
+ "$ref": "#/definitions/OxlintSettings"
63
+ }
64
+ ]
33
65
  }
34
66
  },
35
67
  "definitions": {
@@ -160,6 +192,7 @@
160
192
  "type": "boolean"
161
193
  },
162
194
  "tagNamePreference": {
195
+ "default": {},
163
196
  "type": "object",
164
197
  "additionalProperties": {
165
198
  "$ref": "#/definitions/TagNamePreference"
@@ -189,7 +222,12 @@
189
222
  "type": "object",
190
223
  "properties": {
191
224
  "rootDir": {
192
- "$ref": "#/definitions/OneOrMany_for_String"
225
+ "default": [],
226
+ "allOf": [
227
+ {
228
+ "$ref": "#/definitions/OneOrMany_for_String"
229
+ }
230
+ ]
193
231
  }
194
232
  }
195
233
  },
@@ -228,16 +266,53 @@
228
266
  "type": "object",
229
267
  "properties": {
230
268
  "jsdoc": {
231
- "$ref": "#/definitions/JSDocPluginSettings"
269
+ "default": {
270
+ "ignorePrivate": false,
271
+ "ignoreInternal": false,
272
+ "ignoreReplacesDocs": true,
273
+ "overrideReplacesDocs": true,
274
+ "augmentsExtendsReplacesDocs": false,
275
+ "implementsReplacesDocs": false,
276
+ "exemptDestructuredRootsFromChecks": false,
277
+ "tagNamePreference": {}
278
+ },
279
+ "allOf": [
280
+ {
281
+ "$ref": "#/definitions/JSDocPluginSettings"
282
+ }
283
+ ]
232
284
  },
233
285
  "jsx-a11y": {
234
- "$ref": "#/definitions/JSXA11yPluginSettings"
286
+ "default": {
287
+ "polymorphicPropName": null,
288
+ "components": {}
289
+ },
290
+ "allOf": [
291
+ {
292
+ "$ref": "#/definitions/JSXA11yPluginSettings"
293
+ }
294
+ ]
235
295
  },
236
296
  "next": {
237
- "$ref": "#/definitions/NextPluginSettings"
297
+ "default": {
298
+ "rootDir": []
299
+ },
300
+ "allOf": [
301
+ {
302
+ "$ref": "#/definitions/NextPluginSettings"
303
+ }
304
+ ]
238
305
  },
239
306
  "react": {
240
- "$ref": "#/definitions/ReactPluginSettings"
307
+ "default": {
308
+ "formComponents": [],
309
+ "linkComponents": []
310
+ },
311
+ "allOf": [
312
+ {
313
+ "$ref": "#/definitions/ReactPluginSettings"
314
+ }
315
+ ]
241
316
  }
242
317
  }
243
318
  },
@@ -245,12 +320,14 @@
245
320
  "type": "object",
246
321
  "properties": {
247
322
  "formComponents": {
323
+ "default": [],
248
324
  "type": "array",
249
325
  "items": {
250
326
  "$ref": "#/definitions/CustomComponent"
251
327
  }
252
328
  },
253
329
  "linkComponents": {
330
+ "default": [],
254
331
  "type": "array",
255
332
  "items": {
256
333
  "$ref": "#/definitions/CustomComponent"
package/package.json CHANGED
@@ -1 +1,38 @@
1
- {"name":"oxlint","version":"0.9.3","description":"Linter for the JavaScript Oxidation Compiler","keywords":[],"author":"Boshen and oxc contributors","license":"MIT","homepage":"https://oxc.rs","bugs":"https://github.com/oxc-project/oxc/issues","repository":{"type":"git","url":"https://github.com/oxc-project/oxc","directory":"npm/oxlint"},"bin":"bin/oxlint","funding":{"url":"https://github.com/sponsors/Boshen"},"engines":{"node":">=14.*"},"files":["bin/oxlint","bin/oxc_language_server","configuration_schema.json","README.md"],"optionalDependencies":{"@oxlint/win32-x64":"0.9.3","@oxlint/win32-arm64":"0.9.3","@oxlint/linux-x64-gnu":"0.9.3","@oxlint/linux-arm64-gnu":"0.9.3","@oxlint/linux-x64-musl":"0.9.3","@oxlint/linux-arm64-musl":"0.9.3","@oxlint/darwin-x64":"0.9.3","@oxlint/darwin-arm64":"0.9.3"}}
1
+ {
2
+ "name": "oxlint",
3
+ "version": "0.9.4",
4
+ "description": "Linter for the JavaScript Oxidation Compiler",
5
+ "keywords": [],
6
+ "author": "Boshen and oxc contributors",
7
+ "license": "MIT",
8
+ "homepage": "https://oxc.rs",
9
+ "bugs": "https://github.com/oxc-project/oxc/issues",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/oxc-project/oxc",
13
+ "directory": "npm/oxlint"
14
+ },
15
+ "bin": "bin/oxlint",
16
+ "funding": {
17
+ "url": "https://github.com/sponsors/Boshen"
18
+ },
19
+ "engines": {
20
+ "node": ">=14.*"
21
+ },
22
+ "files": [
23
+ "bin/oxlint",
24
+ "bin/oxc_language_server",
25
+ "configuration_schema.json",
26
+ "README.md"
27
+ ],
28
+ "optionalDependencies": {
29
+ "@oxlint/win32-x64": "0.9.4",
30
+ "@oxlint/win32-arm64": "0.9.4",
31
+ "@oxlint/linux-x64-gnu": "0.9.4",
32
+ "@oxlint/linux-arm64-gnu": "0.9.4",
33
+ "@oxlint/linux-x64-musl": "0.9.4",
34
+ "@oxlint/linux-arm64-musl": "0.9.4",
35
+ "@oxlint/darwin-x64": "0.9.4",
36
+ "@oxlint/darwin-arm64": "0.9.4"
37
+ }
38
+ }