@gossi/config-eslint
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -70,2 +70,9 @@ // @ts-check | ||
// when this override is based on the existence of a given plugin, then we | ||
// check if the plugin is present and if not don't apply the config to not | ||
// break the users' eslint run | ||
if (override.plugin && !hasDep(`eslint-plugin-${override.plugin}`)) { | ||
return source; | ||
} | ||
if ('rule' in override) { | ||
@@ -72,0 +79,0 @@ return merge(source, override.rule, options); |
@@ -223,6 +223,3 @@ 'use strict'; | ||
return { | ||
...browserJS, | ||
extends: [...browserJS.extends, 'plugin:qunit/recommended'] | ||
}; | ||
return pipe(browserJS, (config) => merge(config, require('./rules/qunit'))); | ||
}, | ||
@@ -234,6 +231,3 @@ get ts() { | ||
return { | ||
...browserTS, | ||
extends: [...browserTS.extends, 'plugin:qunit/recommended'] | ||
}; | ||
return pipe(browserTS, (config) => merge(config, require('./rules/qunit'))); | ||
} | ||
@@ -240,0 +234,0 @@ } |
@@ -7,3 +7,3 @@ const plugin = 'decorator-position'; | ||
const rule = { | ||
plugins: ['decorator-position'], | ||
plugins: [plugin], | ||
extends: ['plugin:decorator-position/ember'] | ||
@@ -10,0 +10,0 @@ }; |
'use strict'; | ||
const plugin = 'import'; | ||
/** | ||
@@ -8,3 +10,3 @@ * | ||
const rule = { | ||
plugins: ['import'], | ||
plugins: [plugin], | ||
extends: ['plugin:import/recommended'], | ||
@@ -34,2 +36,2 @@ rules: { | ||
module.exports = { rule }; | ||
module.exports = { rule, plugin }; |
{ | ||
"name": "@gossi/config-eslint", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"repository": "https://github.com/gossi/frontend-configs", | ||
@@ -11,3 +11,3 @@ "dependencies": { | ||
"eslint-plugin-json": "^3.1.0", | ||
"eslint-plugin-n": "^16.0.0", | ||
"eslint-plugin-n": "^16.0.1", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
@@ -50,16 +50,16 @@ "eslint-plugin-simple-import-sort": "^10.0.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.22.5", | ||
"@babel/eslint-parser": "^7.22.5", | ||
"@babel/preset-env": "^7.22.5", | ||
"@tsconfig/node18": "^2.0.1", | ||
"@babel/core": "^7.22.8", | ||
"@babel/eslint-parser": "^7.22.7", | ||
"@babel/preset-env": "^7.22.7", | ||
"@tsconfig/node18": "^18.2.0", | ||
"@tsconfig/strictest": "^2.0.1", | ||
"@types/node": "^20.3.0", | ||
"@typescript-eslint/eslint-plugin": "^5.59.9", | ||
"@typescript-eslint/parser": "^5.59.9", | ||
"eslint": "^8.42.0", | ||
"eslint-plugin-ember": "^11.8.0", | ||
"@types/node": "^20.3.3", | ||
"@typescript-eslint/eslint-plugin": "^5.60.1", | ||
"@typescript-eslint/parser": "^5.60.1", | ||
"eslint": "^8.44.0", | ||
"eslint-plugin-ember": "^11.9.0", | ||
"eslint-plugin-qunit": "^7.3.4", | ||
"eslint-plugin-storybook": "^0.6.12", | ||
"prettier": "^2.8.8", | ||
"typescript": "^5.1.3" | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -66,0 +66,0 @@ "engines": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50315
33
1571
0
+ Added@eslint-community/regexpp@4.11.0(transitive)
+ Addedcaniuse-lite@1.0.30001659(transitive)
+ Addedelectron-to-chromium@1.5.18(transitive)
+ Addedget-tsconfig@4.8.0(transitive)
- Removed@eslint-community/regexpp@4.11.1(transitive)
- Removedcaniuse-lite@1.0.30001660(transitive)
- Removedelectron-to-chromium@1.5.23(transitive)
- Removedget-tsconfig@4.8.1(transitive)
Updatedeslint-plugin-n@^16.0.1