@studio/eslint-config 4.0.0 → 4.1.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/CHANGES.md +16 -0
- package/index.js +24 -20
- package/package.json +3 -3
package/CHANGES.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
- 🍏 [`cb6fd08`](https://github.com/javascript-studio/eslint-config/commit/cb6fd08cd09fc49450a1a67ac417773ca49628f8)
|
|
6
|
+
Support eslint-plugin-jsdoc v40
|
|
7
|
+
|
|
8
|
+
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2023-03-30._
|
|
9
|
+
|
|
10
|
+
## 4.0.1
|
|
11
|
+
|
|
12
|
+
- 🐛 [`e669f78`](https://github.com/javascript-studio/eslint-config/commit/e669f78468a64d40d5cef1fbd717bd5e6824e370)
|
|
13
|
+
Fix ecma version setup
|
|
14
|
+
- 🐛 [`982a135`](https://github.com/javascript-studio/eslint-config/commit/982a1353b1853010eb5495e56a595cb92c2ff696)
|
|
15
|
+
Switch to eslint-plugin-n
|
|
16
|
+
|
|
17
|
+
_Released by [Maximilian Antoni](https://github.com/mantoni) on 2023-01-19._
|
|
18
|
+
|
|
3
19
|
## 4.0.0
|
|
4
20
|
|
|
5
21
|
- 💥 [`e92eb78`](https://github.com/javascript-studio/eslint-config/commit/e92eb785da9f5b7c3febd8860ffda05c449936e1)
|
package/index.js
CHANGED
|
@@ -11,7 +11,11 @@ module.exports = {
|
|
|
11
11
|
|
|
12
12
|
env: {
|
|
13
13
|
node: true,
|
|
14
|
-
|
|
14
|
+
es6: true
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
parserOptions: {
|
|
18
|
+
ecmaVersion: 2022
|
|
15
19
|
},
|
|
16
20
|
|
|
17
21
|
plugins: [
|
|
@@ -21,7 +25,7 @@ module.exports = {
|
|
|
21
25
|
|
|
22
26
|
extends: [
|
|
23
27
|
'eslint:recommended',
|
|
24
|
-
'plugin:
|
|
28
|
+
'plugin:n/recommended',
|
|
25
29
|
'plugin:jsdoc/recommended'
|
|
26
30
|
],
|
|
27
31
|
|
|
@@ -64,27 +68,27 @@ module.exports = {
|
|
|
64
68
|
'jsdoc/check-line-alignment': 'warn',
|
|
65
69
|
'jsdoc/require-hyphen-before-param-description': 'warn',
|
|
66
70
|
|
|
67
|
-
// https://github.com/
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
71
|
+
// https://github.com/eslint-community/eslint-plugin-n
|
|
72
|
+
'n/handle-callback-err': 2,
|
|
73
|
+
'n/no-callback-literal': 2,
|
|
74
|
+
'n/no-new-require': 2,
|
|
75
|
+
'n/global-require': 2,
|
|
76
|
+
'n/no-mixed-requires': 2,
|
|
77
|
+
'n/no-sync': 2,
|
|
78
|
+
'n/prefer-global/buffer': 2,
|
|
79
|
+
'n/prefer-global/console': 2,
|
|
80
|
+
'n/prefer-global/process': 2,
|
|
81
|
+
'n/prefer-global/text-decoder': 2,
|
|
82
|
+
'n/prefer-global/text-encoder': 2,
|
|
83
|
+
'n/prefer-global/url-search-params': 2,
|
|
84
|
+
'n/prefer-global/url': 2,
|
|
81
85
|
// node default tweaks
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
86
|
+
'n/no-unpublished-require': 0, // fails for @sinonjs/referee-sinon
|
|
87
|
+
'n/no-unpublished-import': 0, // fails for commander and some @studio projects
|
|
88
|
+
'n/no-missing-require': [2, {
|
|
85
89
|
'tryExtensions': ['.js', '.json']
|
|
86
90
|
}],
|
|
87
|
-
'
|
|
91
|
+
'n/shebang': 0,
|
|
88
92
|
'no-process-exit': 0,
|
|
89
93
|
|
|
90
94
|
// eslint default tweaks
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studio/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "The JavaScript Studio sharable eslint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Maximilian Antoni <max@javascript.studio>",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"eslint": "^8",
|
|
19
|
-
"eslint-plugin-jsdoc": "^39",
|
|
19
|
+
"eslint-plugin-jsdoc": "^39 || ^40",
|
|
20
20
|
"eslint-plugin-mocha": "^10",
|
|
21
|
-
"eslint-plugin-
|
|
21
|
+
"eslint-plugin-n": "^15",
|
|
22
22
|
"jsdoc": "^4"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|