eslint-config-webpack 4.7.1 → 4.7.3
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/configs/node.js +14 -1
- package/package.json +1 -1
package/configs/node.js
CHANGED
|
@@ -84,7 +84,14 @@ const commonRules = {
|
|
|
84
84
|
// From recommended
|
|
85
85
|
// "n/no-unsupported-features/es-builtins": "error",
|
|
86
86
|
|
|
87
|
-
// From recommended
|
|
87
|
+
// From recommended (override)
|
|
88
|
+
"n/no-unsupported-features/es-syntax": [
|
|
89
|
+
"error",
|
|
90
|
+
{
|
|
91
|
+
ignores: ["error-cause"],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
|
|
88
95
|
// "n/no-unsupported-features/es-syntax": "error",
|
|
89
96
|
|
|
90
97
|
// From recommended
|
|
@@ -204,6 +211,12 @@ async function getModuleConfig() {
|
|
|
204
211
|
rules: {
|
|
205
212
|
...nodeConfig.rules,
|
|
206
213
|
...commonRules,
|
|
214
|
+
"n/no-unsupported-features/es-syntax": [
|
|
215
|
+
"error",
|
|
216
|
+
{
|
|
217
|
+
ignores: ["modules", "error-cause"],
|
|
218
|
+
},
|
|
219
|
+
],
|
|
207
220
|
"import/extensions": [
|
|
208
221
|
"error",
|
|
209
222
|
"always",
|