@studio/eslint-config 3.1.0 → 4.0.1

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.
Files changed (3) hide show
  1. package/CHANGES.md +20 -0
  2. package/index.js +23 -18
  3. package/package.json +5 -5
package/CHANGES.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changes
2
2
 
3
+ ## 4.0.1
4
+
5
+ - 🐛 [`e669f78`](https://github.com/javascript-studio/eslint-config/commit/e669f78468a64d40d5cef1fbd717bd5e6824e370)
6
+ Fix ecma version setup
7
+ - 🐛 [`982a135`](https://github.com/javascript-studio/eslint-config/commit/982a1353b1853010eb5495e56a595cb92c2ff696)
8
+ Switch to eslint-plugin-n
9
+
10
+ _Released by [Maximilian Antoni](https://github.com/mantoni) on 2023-01-19._
11
+
12
+ ## 4.0.0
13
+
14
+ - 💥 [`e92eb78`](https://github.com/javascript-studio/eslint-config/commit/e92eb785da9f5b7c3febd8860ffda05c449936e1)
15
+ Set env to es2022
16
+ - 💥 [`e33122e`](https://github.com/javascript-studio/eslint-config/commit/e33122ede785e5de8d89e6dd192988c174b062da)
17
+ Require eslint 8 and jsdoc 4
18
+ - ✨ [`3daa57b`](https://github.com/javascript-studio/eslint-config/commit/3daa57bcbf37f8e408beea67e568f42ddf0f10ca)
19
+ Reinstall dependencies
20
+
21
+ _Released by [Maximilian Antoni](https://github.com/mantoni) on 2023-01-19._
22
+
3
23
  ## 3.1.0
4
24
 
5
25
  - 🍏 [`2125d01`](https://github.com/javascript-studio/eslint-config/commit/2125d01b1d80fdba2309723c1dca980be6a3a774)
package/index.js CHANGED
@@ -14,6 +14,10 @@ module.exports = {
14
14
  es6: true
15
15
  },
16
16
 
17
+ parserOptions: {
18
+ ecmaVersion: 2022
19
+ },
20
+
17
21
  plugins: [
18
22
  'mocha',
19
23
  'jsdoc'
@@ -21,7 +25,7 @@ module.exports = {
21
25
 
22
26
  extends: [
23
27
  'eslint:recommended',
24
- 'plugin:node/recommended',
28
+ 'plugin:n/recommended',
25
29
  'plugin:jsdoc/recommended'
26
30
  ],
27
31
 
@@ -64,26 +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/mysticatea/eslint-plugin-node
68
- 'node/handle-callback-err': 2,
69
- 'node/no-callback-literal': 2,
70
- 'node/no-new-require': 2,
71
- 'node/global-require': 2,
72
- 'node/no-mixed-requires': 2,
73
- 'node/no-sync': 2,
74
- 'node/prefer-global/buffer': 2,
75
- 'node/prefer-global/console': 2,
76
- 'node/prefer-global/process': 2,
77
- 'node/prefer-global/text-decoder': 2,
78
- 'node/prefer-global/text-encoder': 2,
79
- 'node/prefer-global/url-search-params': 2,
80
- 'node/prefer-global/url': 2,
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
- 'node/no-unpublished-require': 0, // fails for @sinonjs/referee-sinon
83
- 'node/no-missing-require': [2, {
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, {
84
89
  'tryExtensions': ['.js', '.json']
85
90
  }],
86
- 'node/shebang': 0,
91
+ 'n/shebang': 0,
87
92
  'no-process-exit': 0,
88
93
 
89
94
  // eslint default tweaks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studio/eslint-config",
3
- "version": "3.1.0",
3
+ "version": "4.0.1",
4
4
  "description": "The JavaScript Studio sharable eslint config",
5
5
  "main": "index.js",
6
6
  "author": "Maximilian Antoni <max@javascript.studio>",
@@ -15,11 +15,11 @@
15
15
  "@studio/changes": "^2.2.0"
16
16
  },
17
17
  "peerDependencies": {
18
- "eslint": "^7 || ^8",
18
+ "eslint": "^8",
19
19
  "eslint-plugin-jsdoc": "^39",
20
- "eslint-plugin-mocha": "^8 || ^9 || ^10",
21
- "eslint-plugin-node": "^11",
22
- "jsdoc": "^3 || ^4"
20
+ "eslint-plugin-mocha": "^10",
21
+ "eslint-plugin-n": "^15",
22
+ "jsdoc": "^4"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",