Skip to content

Commit

Permalink
eslint-config-seekingalpha-base ver. 8.1.0
Browse files Browse the repository at this point in the history
- [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
  • Loading branch information
alexkoval committed May 12, 2024
1 parent 1cbda1f commit 98d4de4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
11 changes: 10 additions & 1 deletion eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# 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`

Expand Down
2 changes: 1 addition & 1 deletion eslint-configs/eslint-config-seekingalpha-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/

Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):

npm install [email protected] [email protected] [email protected] [email protected] [email protected] eslint-plugin-unicorn@52.0.0 --save-dev
npm install [email protected] [email protected] [email protected] [email protected] [email protected] eslint-plugin-unicorn@53.0.0 --save-dev

Install SeekingAlpha shareable ESLint:

Expand Down
6 changes: 3 additions & 3 deletions eslint-configs/eslint-config-seekingalpha-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-seekingalpha-base",
"version": "8.0.0",
"version": "8.1.0",
"description": "SeekingAlpha's sharable base ESLint config",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"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"
"eslint-plugin-unicorn": "53.0.0"
},
"devDependencies": {
"eslint": "8.57.0",
Expand All @@ -62,6 +62,6 @@
"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"
"eslint-plugin-unicorn": "53.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ module.exports = {
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/consistent-destructuring.md
'unicorn/consistent-destructuring': 'error',

// 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
'unicorn/consistent-function-scoping': 'error',

Expand Down Expand Up @@ -102,6 +105,9 @@ module.exports = {
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-instanceof-array.md
'unicorn/no-instanceof-array': '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
'unicorn/no-invalid-remove-event-listener': 'error',

Expand All @@ -117,6 +123,9 @@ module.exports = {
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-lonely-if.md
'unicorn/no-lonely-if': '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',

/*
* Disabled in favour of native ESLint no-negated-condition rule
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md
Expand Down Expand Up @@ -327,6 +336,9 @@ module.exports = {
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-spread.md
'unicorn/prefer-spread': 'off',

// 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
'unicorn/prefer-string-replace-all': 'error',

Expand All @@ -339,6 +351,9 @@ module.exports = {
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-string-trim-start-end.md
'unicorn/prefer-string-trim-start-end': '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
'unicorn/prefer-switch': 'error',

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seekingalpha-javascript-style",
"version": "5.38.18",
"version": "5.38.19",
"description": "Set of linting rules, guides and best practices for best Javascript code",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 98d4de4

Please sign in to comment.