eslint-config-nodejs-pmb 0.3.7 → 0.3.9
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 +11 -1
package/package.json
CHANGED
package/rules.js
CHANGED
|
@@ -7,6 +7,13 @@ const configDeps = [
|
|
|
7
7
|
];
|
|
8
8
|
const devDepPatternsGen = require('./devDepPatterns.js');
|
|
9
9
|
|
|
10
|
+
const ignorePatterns = [
|
|
11
|
+
'/build/output/',
|
|
12
|
+
'/dist.*',
|
|
13
|
+
'/dist/',
|
|
14
|
+
'tmp.*',
|
|
15
|
+
];
|
|
16
|
+
|
|
10
17
|
function uniq(a) { return Array.from(new Set(a)).sort(); }
|
|
11
18
|
|
|
12
19
|
const jsFextsNoDot = ['js', 'mjs'];
|
|
@@ -69,7 +76,9 @@ const rules = {
|
|
|
69
76
|
'unicode-bom': 'off',
|
|
70
77
|
|
|
71
78
|
// Ugly but unfortunately node v12+ native ESM forces us to:
|
|
72
|
-
'import/extensions': ['error', 'ignorePackages'],
|
|
79
|
+
// 'import/extensions': ['error', 'ignorePackages'],
|
|
80
|
+
// … and due to some 2024-ish breakage in @std/esm, we even need
|
|
81
|
+
'import/extensions': ['error', 'always'],
|
|
73
82
|
|
|
74
83
|
// rules docs: https://github.com/eslint/eslint.github.io/tree/master/docs/rules
|
|
75
84
|
};
|
|
@@ -105,6 +114,7 @@ const config = {
|
|
|
105
114
|
'plugin:n/recommended',
|
|
106
115
|
],
|
|
107
116
|
|
|
117
|
+
ignorePatterns,
|
|
108
118
|
overrides,
|
|
109
119
|
|
|
110
120
|
parser: require.resolve('@babel/eslint-parser'),
|