@ringieraxelspringer/eslint-config 23.0.0 → 24.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -2
- package/lib/index.js +10 -11
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
-
## [
|
|
5
|
+
## [24.0.0] - 2024-09-13
|
|
6
|
+
### Changed
|
|
7
|
+
- [@mdulawa]: Replaced deprecated plugin `eslint-plugin-node` with `eslint-plugin-n`.
|
|
8
|
+
- [@mdulawa]: Replaced deprecated rule `global-require` with `n/global-require`.
|
|
9
|
+
- [@mdulawa]: Replaced deprecated rule `no-buffer-constructor` with `n/prefer-global/buffer`.
|
|
10
|
+
- [@mdulawa]: Replaced deprecated rule `node/no-missing-import` with `n/no-missing-import`.
|
|
11
|
+
- [@mdulawa]: Replaced deprecated rule `newline-before-return` with `padding-line-between-statements`.
|
|
12
|
+
|
|
13
|
+
### Removed
|
|
14
|
+
- [@mdulawa]: Dropped support for Node v16.
|
|
15
|
+
- [@mdulawa]: Dropped support for Node v14.
|
|
16
|
+
|
|
17
|
+
## [23.0.0] - 2023-10-24
|
|
6
18
|
### Added
|
|
7
19
|
- [@mdulawa]: Added support for Node v20.
|
|
8
20
|
|
|
@@ -213,7 +225,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
213
225
|
### Added
|
|
214
226
|
- [@mdulawa]: Initial version.
|
|
215
227
|
|
|
216
|
-
[
|
|
228
|
+
[24.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=24.0.0&targetBranch=23.0.0
|
|
229
|
+
[23.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=23.0.0&targetBranch=22.0.1
|
|
217
230
|
[22.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=22.0.1&targetBranch=22.0.0
|
|
218
231
|
[22.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=22.0.0&targetBranch=21.0.0
|
|
219
232
|
[21.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=21.0.0&targetBranch=20.0.1
|
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ module.exports = {
|
|
|
3
3
|
reportUnusedDisableDirectives: true,
|
|
4
4
|
extends: [
|
|
5
5
|
'eslint:recommended',
|
|
6
|
-
'plugin:
|
|
6
|
+
'plugin:n/recommended',
|
|
7
7
|
'plugin:react/recommended',
|
|
8
8
|
'plugin:react-hooks/recommended'
|
|
9
9
|
],
|
|
@@ -24,7 +24,7 @@ module.exports = {
|
|
|
24
24
|
},
|
|
25
25
|
plugins: [
|
|
26
26
|
'import',
|
|
27
|
-
'
|
|
27
|
+
'n',
|
|
28
28
|
'react',
|
|
29
29
|
'react-hooks'
|
|
30
30
|
],
|
|
@@ -43,7 +43,6 @@ module.exports = {
|
|
|
43
43
|
'eqeqeq': ['error', 'always'],
|
|
44
44
|
'func-call-spacing': ['error', 'never'],
|
|
45
45
|
'generator-star-spacing': ['error', { before: false, after: true }],
|
|
46
|
-
'global-require': 'error',
|
|
47
46
|
'indent': ['error', 4, { CallExpression: { arguments: 'off' }, flatTernaryExpressions: false, SwitchCase: 1, VariableDeclarator: 1 }],
|
|
48
47
|
'jsx-quotes': ['error', 'prefer-double'],
|
|
49
48
|
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
|
@@ -54,9 +53,7 @@ module.exports = {
|
|
|
54
53
|
'max-len': ['error', { code: 160, comments: 160, ignoreRegExpLiterals: true, ignoreTemplateLiterals: true, ignoreUrls: true }],
|
|
55
54
|
'max-statements-per-line': ['error', { max: 1 }],
|
|
56
55
|
'multiline-ternary': ['error', 'always-multiline'],
|
|
57
|
-
'newline-before-return': 'error',
|
|
58
56
|
'no-alert': 'error',
|
|
59
|
-
'no-buffer-constructor': 'error',
|
|
60
57
|
'no-console': ['error', { allow: ['warn', 'error', 'info', 'debug'] }],
|
|
61
58
|
'no-duplicate-imports': 'error',
|
|
62
59
|
'no-empty': 'error',
|
|
@@ -79,7 +76,7 @@ module.exports = {
|
|
|
79
76
|
'padding-line-between-statements': [
|
|
80
77
|
'error',
|
|
81
78
|
{ blankLine: 'always', prev: ['block', 'block-like', 'class', 'directive'], next: '*' },
|
|
82
|
-
{ blankLine: 'always', prev: '*', next: ['block', 'block-like', 'class'] },
|
|
79
|
+
{ blankLine: 'always', prev: '*', next: ['block', 'block-like', 'class', 'return'] },
|
|
83
80
|
{ blankLine: 'never', prev: 'case', next: ['case', 'default'] }
|
|
84
81
|
],
|
|
85
82
|
'prefer-arrow-callback': 'error',
|
|
@@ -101,8 +98,10 @@ module.exports = {
|
|
|
101
98
|
'import/newline-after-import': ['error', { count: 1 }],
|
|
102
99
|
'import/no-extraneous-dependencies': 'error',
|
|
103
100
|
|
|
104
|
-
'
|
|
105
|
-
'
|
|
101
|
+
'n/global-require': 'error',
|
|
102
|
+
'n/no-unpublished-import': 'off',
|
|
103
|
+
'n/no-unpublished-require': 'off',
|
|
104
|
+
'n/prefer-global/buffer': 'error',
|
|
106
105
|
|
|
107
106
|
'react/jsx-boolean-value': ['error', 'always'],
|
|
108
107
|
'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
|
|
@@ -140,9 +139,9 @@ module.exports = {
|
|
|
140
139
|
'@typescript-eslint/space-infix-ops': ['error', { int32Hint: false }],
|
|
141
140
|
'@typescript-eslint/type-annotation-spacing': ['error', { before: false, after: true, overrides: { arrow: { before: true, after: true } } }],
|
|
142
141
|
'camelcase': 'off',
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
142
|
+
'n/no-missing-import': ['error', { tryExtensions: ['.js', '.json', '.jsx', '.ts', '.tsx'] }],
|
|
143
|
+
'n/no-unsupported-features/es-builtins': 'off',
|
|
144
|
+
'n/no-unsupported-features/es-syntax': 'off',
|
|
146
145
|
'semi': 'off',
|
|
147
146
|
'space-infix-ops': 'off'
|
|
148
147
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ringieraxelspringer/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.0",
|
|
4
4
|
"description": "Common Ringier Axel Springer ESLint configuration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {},
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": "^
|
|
9
|
+
"node": "^18||^20"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"lint": "npm run lint:js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@typescript-eslint/parser": "^5.0.0",
|
|
19
19
|
"eslint": "^8.0.0",
|
|
20
20
|
"eslint-plugin-import": "^2.0.0",
|
|
21
|
-
"eslint-plugin-
|
|
21
|
+
"eslint-plugin-n": "^17.0.0",
|
|
22
22
|
"eslint-plugin-react": "^7.0.0",
|
|
23
23
|
"eslint-plugin-react-hooks": "^4.0.0",
|
|
24
24
|
"typescript": "^5.0.0"
|