@ornikar/eslint-config 18.4.0 → 18.5.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [18.5.0](https://github.com/ornikar/eslint-configs/compare/v18.4.0...v18.5.0) (2022-04-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **eslint-config:** configure ecmaVersion ([e72397c](https://github.com/ornikar/eslint-configs/commit/e72397c55e328216119048c192fac316ece7c6e8))
12
+
13
+
14
+
15
+
16
+
6
17
  # [18.4.0](https://github.com/ornikar/eslint-configs/compare/v18.3.0...v18.4.0) (2022-04-22)
7
18
 
8
19
  **Note:** Version bump only for package @ornikar/eslint-config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/eslint-config",
3
- "version": "18.4.0",
3
+ "version": "18.5.0",
4
4
  "description": "eslint config files",
5
5
  "repository": "ornikar/eslint-configs",
6
6
  "main": "index.js",
@@ -28,5 +28,5 @@
28
28
  "eslint": "8.13.0",
29
29
  "prettier": "2.6.2"
30
30
  },
31
- "gitHead": "40d5a8af845012b12f22b919ca40b771e423250b"
31
+ "gitHead": "cef1de718bc2987f8989b4b12923456338ae7073"
32
32
  }
package/rules/node.js CHANGED
@@ -3,6 +3,10 @@
3
3
  module.exports = {
4
4
  plugins: ['node'],
5
5
  extends: ['plugin:node/recommended', require.resolve('./node-override')],
6
+ parserOptions: {
7
+ // top level await is introduced in ecmaVersion: 2022 but supported since node 14
8
+ ecmaVersion: 2022,
9
+ },
6
10
 
7
11
  env: {
8
12
  browser: false,
@@ -18,6 +22,10 @@ module.exports = {
18
22
  {
19
23
  files: ['*.mjs'],
20
24
  extends: ['plugin:node/recommended-module', require.resolve('./node-override')],
25
+ parserOptions: {
26
+ // top level await is introduced in ecmaVersion: 2022 but supported since node 14
27
+ ecmaVersion: 2022,
28
+ },
21
29
  },
22
30
  ],
23
31
  };