eslint-config-seekingalpha-base
Advanced tools
Comparing version 8.0.0 to 8.1.0
# Change Log | ||
## 8.0.0 - 2024-04-00 | ||
## 8.1.0 - 2024-05-12 | ||
- [deps] update `eslint-plugin-unicorn` to version `53.0.0` | ||
- [breaking] enable `unicorn/consistent-empty-array-spread` rule | ||
- [breaking] enable `unicorn/no-invalid-fetch-options` rule | ||
- [breaking] enable `unicorn/no-magic-array-flat-depth` rule | ||
- [breaking] enable `unicorn/prefer-string-raw` rule | ||
- [breaking] enable `unicorn/prefer-structured-clone` rule | ||
## 8.0.0 - 2024-04-08 | ||
- [breaking] removed `@stylistic/eslint-plugin-js` | ||
@@ -6,0 +15,0 @@ |
{ | ||
"name": "eslint-config-seekingalpha-base", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "SeekingAlpha's sharable base ESLint config", | ||
@@ -56,3 +56,3 @@ "main": "index.js", | ||
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-unicorn": "52.0.0" | ||
"eslint-plugin-unicorn": "53.0.0" | ||
}, | ||
@@ -66,4 +66,4 @@ "devDependencies": { | ||
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-unicorn": "52.0.0" | ||
"eslint-plugin-unicorn": "53.0.0" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # eslint-config-seekingalpha-base | ||
npm install eslint@8.57.0 eslint-plugin-array-func@4.0.0 eslint-plugin-import@2.29.1 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@52.0.0 --save-dev | ||
npm install eslint@8.57.0 eslint-plugin-array-func@4.0.0 eslint-plugin-import@2.29.1 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@53.0.0 --save-dev | ||
@@ -12,0 +12,0 @@ Install SeekingAlpha shareable ESLint: |
// eslint-plugin-import rules (https://github.com/benmosher/eslint-plugin-import) | ||
module.exports = { | ||
extends: ['./helpful-warnings.js', './module-systems.js', './static-analysis.js', './style-guide.js'], | ||
extends: [ | ||
'./helpful-warnings.js', | ||
'./module-systems.js', | ||
'./static-analysis.js', | ||
'./style-guide.js', | ||
], | ||
@@ -6,0 +11,0 @@ plugins: ['import'], |
@@ -35,3 +35,12 @@ // https://github.com/benmosher/eslint-plugin-import#style-guide | ||
{ | ||
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'unknown', 'index', 'type'], | ||
groups: [ | ||
'builtin', | ||
'external', | ||
'internal', | ||
'parent', | ||
'sibling', | ||
'unknown', | ||
'index', | ||
'type', | ||
], | ||
@@ -38,0 +47,0 @@ 'newlines-between': 'always', |
@@ -21,2 +21,5 @@ // https://github.com/sindresorhus/eslint-plugin-unicorn | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-empty-array-spread.md | ||
'unicorn/consistent-empty-array-spread': 'error', | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/consistent-function-scoping.md | ||
@@ -106,2 +109,5 @@ 'unicorn/consistent-function-scoping': 'error', | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-fetch-options.md | ||
'unicorn/no-invalid-fetch-options': 'error', | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-remove-event-listener.md | ||
@@ -122,2 +128,5 @@ 'unicorn/no-invalid-remove-event-listener': 'error', | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-magic-array-flat-depth.md | ||
'unicorn/no-magic-array-flat-depth': 'error', | ||
/* | ||
@@ -333,2 +342,5 @@ * Disabled in favour of native ESLint no-negated-condition rule | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-raw.md | ||
'unicorn/prefer-string-raw': 'error', | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-replace-all.md | ||
@@ -346,2 +358,5 @@ 'unicorn/prefer-string-replace-all': 'error', | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-structured-clone.md | ||
'unicorn/prefer-structured-clone': 'error', | ||
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-switch.md | ||
@@ -348,0 +363,0 @@ 'unicorn/prefer-switch': 'error', |
module.exports = { | ||
extends: ['./possible-problems.js', './suggestions.js', './layout-and-formatting.js'], | ||
extends: [ | ||
'./possible-problems.js', | ||
'./suggestions.js', | ||
'./layout-and-formatting.js', | ||
], | ||
}; |
@@ -440,3 +440,4 @@ const config = require('../config'); | ||
{ | ||
selector: 'CallExpression[callee.name="setTimeout"][arguments.length!=2]', | ||
selector: | ||
'CallExpression[callee.name="setTimeout"][arguments.length!=2]', | ||
message: 'setTimeout must always be invoked with two arguments.', | ||
@@ -450,3 +451,4 @@ }, | ||
selector: 'LabeledStatement', | ||
message: 'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.', | ||
message: | ||
'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.', | ||
}, | ||
@@ -453,0 +455,0 @@ { |
96174
1343