Comparing version 0.11.1 to 0.12.0
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Oxlintrc", | ||
"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\" } } ```", | ||
"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\" } } ] } ```", | ||
"type": "object", | ||
@@ -35,2 +35,10 @@ "properties": { | ||
}, | ||
"overrides": { | ||
"description": "Add, remove, or otherwise reconfigure rules for specific files or groups of files.", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/OxlintOverrides" | ||
} | ||
] | ||
}, | ||
"plugins": { | ||
@@ -170,2 +178,8 @@ "default": [ | ||
}, | ||
"GlobSet": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"GlobalValue": { | ||
@@ -323,2 +337,44 @@ "type": "string", | ||
}, | ||
"OxlintOverride": { | ||
"type": "object", | ||
"required": [ | ||
"files" | ||
], | ||
"properties": { | ||
"files": { | ||
"description": "A list of glob patterns to override.\n\n## Example `[ \"*.test.ts\", \"*.spec.ts\" ]`", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/GlobSet" | ||
} | ||
] | ||
}, | ||
"plugins": { | ||
"description": "Optionally change what plugins are enabled for this override. When omitted, the base config's plugins are used.", | ||
"default": null, | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/LintPlugins" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
] | ||
}, | ||
"rules": { | ||
"default": {}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/OxlintRules" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"OxlintOverrides": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/OxlintOverride" | ||
} | ||
}, | ||
"OxlintRules": { | ||
@@ -325,0 +381,0 @@ "$ref": "#/definitions/DummyRuleMap" |
{ | ||
"name": "oxlint", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"description": "Linter for the JavaScript Oxidation Compiler", | ||
@@ -32,11 +32,11 @@ "keywords": [], | ||
"optionalDependencies": { | ||
"@oxlint/win32-x64": "0.11.1", | ||
"@oxlint/win32-arm64": "0.11.1", | ||
"@oxlint/linux-x64-gnu": "0.11.1", | ||
"@oxlint/linux-arm64-gnu": "0.11.1", | ||
"@oxlint/linux-x64-musl": "0.11.1", | ||
"@oxlint/linux-arm64-musl": "0.11.1", | ||
"@oxlint/darwin-x64": "0.11.1", | ||
"@oxlint/darwin-arm64": "0.11.1" | ||
"@oxlint/win32-x64": "0.12.0", | ||
"@oxlint/win32-arm64": "0.12.0", | ||
"@oxlint/linux-x64-gnu": "0.12.0", | ||
"@oxlint/linux-arm64-gnu": "0.12.0", | ||
"@oxlint/linux-x64-musl": "0.12.0", | ||
"@oxlint/linux-arm64-musl": "0.12.0", | ||
"@oxlint/darwin-x64": "0.12.0", | ||
"@oxlint/darwin-arm64": "0.12.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25374
497