eslint-config-nodejs-pmb 0.3.6 → 0.3.7
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/package.json +1 -1
- package/rules.js +3 -2
package/package.json
CHANGED
package/rules.js
CHANGED
|
@@ -49,9 +49,9 @@ const rules = {
|
|
|
49
49
|
'key-spacing': 'off', // b/c it doesn't support all the combinations I want
|
|
50
50
|
'lines-around-directive': 'off',
|
|
51
51
|
'max-len': ['error', lineLengthRules],
|
|
52
|
+
'n/global-require': 'off', // I'd rather exempt just top-level arrays
|
|
52
53
|
'no-console': 'off',
|
|
53
54
|
'no-control-regex': 'off',
|
|
54
|
-
'n/global-require': 'off', // I'd rather exempt just top-level arrays
|
|
55
55
|
'no-div-regex': 'error',
|
|
56
56
|
'no-extra-semi': 'off',
|
|
57
57
|
'no-multiple-empty-lines': 'off',
|
|
@@ -60,12 +60,13 @@ const rules = {
|
|
|
60
60
|
'object-curly-newline': 'off',
|
|
61
61
|
'padded-blocks': 'off',
|
|
62
62
|
'prefer-arrow-callback': 'off',
|
|
63
|
+
'prefer-destructuring': ['error', { array: false, object: true }],
|
|
63
64
|
'prefer-template': 'off',
|
|
64
65
|
'quote-props': 'off',
|
|
66
|
+
'regexp/no-invalid-regexp': 'error',
|
|
65
67
|
'semi': ['error', 'always'],
|
|
66
68
|
'strict': ['error', 'safe'],
|
|
67
69
|
'unicode-bom': 'off',
|
|
68
|
-
'regexp/no-invalid-regexp': 'error',
|
|
69
70
|
|
|
70
71
|
// Ugly but unfortunately node v12+ native ESM forces us to:
|
|
71
72
|
'import/extensions': ['error', 'ignorePackages'],
|