@meteorlxy/eslint-config 2.18.0 → 2.20.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.
Files changed (2) hide show
  1. package/lib/index.js +19 -0
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -12,6 +12,13 @@ module.exports = {
12
12
  'airbnb-base',
13
13
  ],
14
14
 
15
+ parserOptions: {
16
+ /**
17
+ * Allow parsing of modern ECMAScript features
18
+ */
19
+ ecmaVersion: 2020,
20
+ },
21
+
15
22
  // Rules overrides
16
23
  rules: {
17
24
  /**
@@ -80,6 +87,18 @@ module.exports = {
80
87
  },
81
88
  ],
82
89
 
90
+ /**
91
+ * Override airbnb-base rules to allow void operator as statement
92
+ *
93
+ * @see https://eslint.org/docs/rules/no-void
94
+ */
95
+ 'no-void': [
96
+ 'error',
97
+ {
98
+ allowAsStatement: true,
99
+ },
100
+ ],
101
+
83
102
  /**
84
103
  * Override airbnb-base rules to ensure import order
85
104
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorlxy/eslint-config",
3
- "version": "2.18.0",
3
+ "version": "2.20.0",
4
4
  "description": "meteorlxy eslint config",
5
5
  "keywords": [
6
6
  "config",
@@ -20,10 +20,10 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "eslint-config-airbnb-base": "^15.0.0",
23
- "eslint-plugin-import": "^2.26.0"
23
+ "eslint-plugin-import": "^2.27.5"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "0e47b7b0c787a674c7bb94133a0cd82a3b4e8edd"
28
+ "gitHead": "eb1c825fcd8ba435d657b4bd0e0589d8cd65f20b"
29
29
  }