oxlint 0.7.2 → 0.9.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 +16 -6
- package/package.json +1 -1
|
@@ -5,13 +5,23 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"env": {
|
|
8
|
-
"
|
|
8
|
+
"description": "Environments enable and disable collections of global variables.",
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/definitions/OxlintEnv"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
9
14
|
},
|
|
10
15
|
"globals": {
|
|
11
|
-
"
|
|
16
|
+
"description": "Enabled or disabled specific global variables.",
|
|
17
|
+
"allOf": [
|
|
18
|
+
{
|
|
19
|
+
"$ref": "#/definitions/OxlintGlobals"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
12
22
|
},
|
|
13
23
|
"rules": {
|
|
14
|
-
"description": "See [Oxlint Rules](
|
|
24
|
+
"description": "See [Oxlint Rules](https://oxc.rs/docs/guide/usage/linter/rules.html).",
|
|
15
25
|
"allOf": [
|
|
16
26
|
{
|
|
17
27
|
"$ref": "#/definitions/OxlintRules"
|
|
@@ -97,7 +107,7 @@
|
|
|
97
107
|
]
|
|
98
108
|
},
|
|
99
109
|
"DummyRuleMap": {
|
|
100
|
-
"description": "See [Oxlint Rules](
|
|
110
|
+
"description": "See [Oxlint Rules](https://oxc.rs/docs/guide/usage/linter/rules.html)",
|
|
101
111
|
"type": "object",
|
|
102
112
|
"additionalProperties": {
|
|
103
113
|
"$ref": "#/definitions/DummyRule"
|
|
@@ -197,14 +207,14 @@
|
|
|
197
207
|
]
|
|
198
208
|
},
|
|
199
209
|
"OxlintEnv": {
|
|
200
|
-
"description": "Predefine global variables.",
|
|
210
|
+
"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.",
|
|
201
211
|
"type": "object",
|
|
202
212
|
"additionalProperties": {
|
|
203
213
|
"type": "boolean"
|
|
204
214
|
}
|
|
205
215
|
},
|
|
206
216
|
"OxlintGlobals": {
|
|
207
|
-
"description": "Add or remove global variables
|
|
217
|
+
"description": "Add or remove global variables.\n\nFor each global variable, set the corresponding value equal to `\"writable\"` to allow the variable to be overwritten or `\"readonly\"` to disallow overwriting.\n\nGlobals can be disabled by setting their value to `\"off\"`. For example, in an environment where most Es2015 globals are available but `Promise` is unavailable, you might use this config:\n\n```json\n\n{ \"env\": { \"es6\": true }, \"globals\": { \"Promise\": \"off\" } }\n\n```\n\nYou may also use `\"readable\"` or `false` to represent `\"readonly\"`, and `\"writeable\"` or `true` to represent `\"writable\"`.",
|
|
208
218
|
"type": "object",
|
|
209
219
|
"additionalProperties": {
|
|
210
220
|
"$ref": "#/definitions/GlobalValue"
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"oxlint","version":"0.
|
|
1
|
+
{"name":"oxlint","version":"0.9.0","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.0","@oxlint/win32-arm64":"0.9.0","@oxlint/linux-x64-gnu":"0.9.0","@oxlint/linux-arm64-gnu":"0.9.0","@oxlint/linux-x64-musl":"0.9.0","@oxlint/linux-arm64-musl":"0.9.0","@oxlint/darwin-x64":"0.9.0","@oxlint/darwin-arm64":"0.9.0"}}
|