@ringieraxelspringer/eslint-config 22.0.1 → 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 +65 -44
- package/README.md +1 -2
- package/lib/index.js +12 -13
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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
|
+
## [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
|
|
18
|
+
### Added
|
|
19
|
+
- [@mdulawa]: Added support for Node v20.
|
|
20
|
+
|
|
21
|
+
### Removed
|
|
22
|
+
- [@mdulawa]: Dropped support for Node v12.
|
|
23
|
+
|
|
5
24
|
## [22.0.1] - 2023-05-30
|
|
6
25
|
### Fixed
|
|
7
26
|
- [@mdulawa]: Fixed ECMA version after removal of default parser `@babel/eslint-parser`.
|
|
@@ -206,47 +225,49 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
206
225
|
### Added
|
|
207
226
|
- [@mdulawa]: Initial version.
|
|
208
227
|
|
|
209
|
-
[
|
|
210
|
-
[
|
|
211
|
-
[
|
|
212
|
-
[
|
|
213
|
-
[
|
|
214
|
-
[
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
[
|
|
219
|
-
[
|
|
220
|
-
[
|
|
221
|
-
[
|
|
222
|
-
[
|
|
223
|
-
[
|
|
224
|
-
[
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
[
|
|
228
|
-
[
|
|
229
|
-
[
|
|
230
|
-
[
|
|
231
|
-
[
|
|
232
|
-
[6.0.
|
|
233
|
-
[
|
|
234
|
-
[
|
|
235
|
-
[
|
|
236
|
-
[
|
|
237
|
-
[
|
|
238
|
-
[3.
|
|
239
|
-
[3.
|
|
240
|
-
[
|
|
241
|
-
[
|
|
242
|
-
[
|
|
243
|
-
[1.
|
|
244
|
-
[1.
|
|
245
|
-
[1.
|
|
246
|
-
[1.
|
|
247
|
-
[1.
|
|
248
|
-
[1.
|
|
249
|
-
[1.
|
|
250
|
-
[1.
|
|
251
|
-
[1.
|
|
252
|
-
[1.
|
|
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
|
|
230
|
+
[22.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=22.0.1&targetBranch=22.0.0
|
|
231
|
+
[22.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=22.0.0&targetBranch=21.0.0
|
|
232
|
+
[21.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=21.0.0&targetBranch=20.0.1
|
|
233
|
+
[20.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=20.0.1&targetBranch=20.0.0
|
|
234
|
+
[20.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=20.0.0&targetBranch=19.0.0
|
|
235
|
+
[19.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=19.0.0&targetBranch=18.0.0
|
|
236
|
+
[18.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=18.0.0&targetBranch=17.1.0
|
|
237
|
+
[17.1.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=17.1.0&targetBranch=17.0.0
|
|
238
|
+
[17.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=17.0.0&targetBranch=16.0.0
|
|
239
|
+
[16.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=16.0.0&targetBranch=15.0.0
|
|
240
|
+
[15.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=15.0.0&targetBranch=14.0.0
|
|
241
|
+
[14.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=14.0.0&targetBranch=13.0.0
|
|
242
|
+
[13.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=13.0.0&targetBranch=12.0.0
|
|
243
|
+
[12.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=12.0.0&targetBranch=11.0.0
|
|
244
|
+
[11.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=11.0.0&targetBranch=10.0.1
|
|
245
|
+
[10.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=10.0.1&targetBranch=10.0.0
|
|
246
|
+
[10.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=10.0.0&targetBranch=9.0.0
|
|
247
|
+
[9.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=9.0.0&targetBranch=8.0.0
|
|
248
|
+
[8.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=8.0.0&targetBranch=7.0.1
|
|
249
|
+
[7.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=7.0.1&targetBranch=7.0.0
|
|
250
|
+
[7.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=7.0.0&targetBranch=6.0.2
|
|
251
|
+
[6.0.2]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=6.0.2&targetBranch=6.0.1
|
|
252
|
+
[6.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=6.0.1&targetBranch=6.0.0
|
|
253
|
+
[6.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=6.0.0&targetBranch=5.0.1
|
|
254
|
+
[5.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=5.0.1&targetBranch=5.0.0
|
|
255
|
+
[5.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=5.0.0&targetBranch=4.0.0
|
|
256
|
+
[4.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=4.0.0&targetBranch=3.3.0
|
|
257
|
+
[3.3.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=3.3.0&targetBranch=3.2.0
|
|
258
|
+
[3.2.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=3.2.0&targetBranch=3.1.0
|
|
259
|
+
[3.1.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=3.1.0&targetBranch=3.0.0
|
|
260
|
+
[3.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=3.0.0&targetBranch=2.0.0
|
|
261
|
+
[2.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=2.0.0&targetBranch=1.9.0
|
|
262
|
+
[1.9.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.9.0&targetBranch=1.8.0
|
|
263
|
+
[1.8.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.8.0&targetBranch=1.7.0
|
|
264
|
+
[1.7.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.7.0&targetBranch=1.6.0
|
|
265
|
+
[1.6.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.6.0&targetBranch=1.5.0
|
|
266
|
+
[1.5.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.5.0&targetBranch=1.4.0
|
|
267
|
+
[1.4.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.4.0&targetBranch=1.3.0
|
|
268
|
+
[1.3.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.3.0&targetBranch=1.2.0
|
|
269
|
+
[1.2.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.2.0&targetBranch=1.1.1
|
|
270
|
+
[1.1.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.1.1&targetBranch=1.1.0
|
|
271
|
+
[1.1.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.1.0&targetBranch=1.0.1
|
|
272
|
+
[1.0.1]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.0.1&targetBranch=1.0.0
|
|
273
|
+
[1.0.0]: https://stash.grupa.onet/projects/NS/repos/ras-eslint-config/compare/diff?sourceBranch=1.0.0&targetBranch=edf9d93ff08b791b58f2c4e4ee2be564e4b7caeb
|
package/README.md
CHANGED
|
@@ -21,8 +21,7 @@ npm install --save-dev @ringieraxelspringer/eslint-config
|
|
|
21
21
|
{
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx src/",
|
|
24
|
-
"lint:js:fix": "npm run lint:js -- --fix"
|
|
25
|
-
"lint:js:report-bamboo": "npm run lint:js -- --format node_modules/eslint-bamboo-formatter/reporter.js"
|
|
24
|
+
"lint:js:fix": "npm run lint:js -- --fix"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@ringieraxelspringer/eslint-config": "latest"
|
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
|
],
|
|
@@ -12,19 +12,19 @@ module.exports = {
|
|
|
12
12
|
sourceType: 'module',
|
|
13
13
|
allowImportExportEverywhere: true,
|
|
14
14
|
codeFrame: false,
|
|
15
|
-
ecmaVersion:
|
|
15
|
+
ecmaVersion: 2024,
|
|
16
16
|
ecmaFeatures: {
|
|
17
17
|
jsx: true
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
env: {
|
|
21
21
|
browser: true,
|
|
22
|
-
|
|
22
|
+
es2024: true,
|
|
23
23
|
node: true
|
|
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",
|
|
@@ -17,12 +17,11 @@
|
|
|
17
17
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
18
18
|
"@typescript-eslint/parser": "^5.0.0",
|
|
19
19
|
"eslint": "^8.0.0",
|
|
20
|
-
"eslint-bamboo-formatter": "^0.1.0",
|
|
21
20
|
"eslint-plugin-import": "^2.0.0",
|
|
22
|
-
"eslint-plugin-
|
|
21
|
+
"eslint-plugin-n": "^17.0.0",
|
|
23
22
|
"eslint-plugin-react": "^7.0.0",
|
|
24
23
|
"eslint-plugin-react-hooks": "^4.0.0",
|
|
25
|
-
"typescript": "^
|
|
24
|
+
"typescript": "^5.0.0"
|
|
26
25
|
},
|
|
27
26
|
"eslintConfig": {
|
|
28
27
|
"extends": "./lib/index.js"
|