@stylistic/eslint-plugin-jsx
Advanced tools
Comparing version 1.4.1 to 1.5.0-beta.0
@@ -22,5 +22,10 @@ 'use strict'; | ||
function createAllConfigs(plugin, name, flat) { | ||
function createAllConfigs(plugin, name, flat, filter) { | ||
const rules = Object.fromEntries( | ||
Object.keys(plugin.rules).map((key) => [`${name}/${key}`, 2]) | ||
Object.entries(plugin.rules).filter( | ||
([key, rule]) => ( | ||
// Only include fixable rules | ||
rule.meta.fixable && !rule.meta.deprecated && key === rule.meta.docs.url.split("/").pop() && (!filter || filter(key, rule)) | ||
) | ||
).map(([key]) => [`${name}/${key}`, 2]) | ||
); | ||
@@ -27,0 +32,0 @@ if (flat) { |
@@ -15,3 +15,3 @@ 'use strict'; | ||
// category: 'Stylistic Issues', | ||
url: utils.docsUrl("self-closing-comp") | ||
url: utils.docsUrl("jsx-self-closing-comp") | ||
}, | ||
@@ -18,0 +18,0 @@ fixable: "code", |
{ | ||
"name": "@stylistic/eslint-plugin-jsx", | ||
"version": "1.4.1", | ||
"version": "1.5.0-beta.0", | ||
"author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
@@ -61,3 +61,3 @@ "license": "MIT", | ||
"estraverse": "^5.3.0", | ||
"@stylistic/eslint-plugin-js": "^1.4.1" | ||
"@stylistic/eslint-plugin-js": "^1.5.0-beta.0" | ||
}, | ||
@@ -70,5 +70,5 @@ "devDependencies": { | ||
"@babel/preset-react": "^7.23.3", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.13.1", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^8.53.0", | ||
"eslint": "^8.55.0", | ||
"semver": "^7.5.4", | ||
@@ -75,0 +75,0 @@ "typescript-eslint-parser": "^22.0.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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
141311
3758
1