@studio/eslint-config 4.0.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 +9 -0
  2. package/index.js +24 -20
  3. package/package.json +2 -2
package/CHANGES.md CHANGED
@@ -1,5 +1,14 @@
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
+
3
12
  ## 4.0.0
4
13
 
5
14
  - 💥 [`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
- es2022: true
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:node/recommended',
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/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-unpublished-import': 0, // fails for commander and some @studio projects
84
- '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, {
85
89
  'tryExtensions': ['.js', '.json']
86
90
  }],
87
- 'node/shebang': 0,
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.0.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>",
@@ -18,7 +18,7 @@
18
18
  "eslint": "^8",
19
19
  "eslint-plugin-jsdoc": "^39",
20
20
  "eslint-plugin-mocha": "^10",
21
- "eslint-plugin-node": "^11",
21
+ "eslint-plugin-n": "^15",
22
22
  "jsdoc": "^4"
23
23
  },
24
24
  "repository": {