Skip to content

Commit f27b7bb

Browse files
authored
Merge pull request #28 from Cherry/chore/eslint-v10
2 parents 8d1913a + 51a47df commit f27b7bb

File tree

5 files changed

+1452
-3653
lines changed

5 files changed

+1452
-3653
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import nodecraft from '@nodecraft/eslint-config';
2+
3+
const jsonIgnore = ['**/*.json'];
4+
const withJsonIgnore = function(configs) {
5+
return configs.map(function(config) {
6+
return {
7+
...config,
8+
ignores: [...(config.ignores || []), ...jsonIgnore],
9+
};
10+
});
11+
};
12+
13+
export default [
14+
// Global ignores
15+
{
16+
ignores: [
17+
'dist/**',
18+
'.wrangler/**',
19+
],
20+
},
21+
22+
// TypeScript config (includes base), excluding JSON files
23+
...withJsonIgnore(nodecraft.configs.typescript),
24+
25+
// JSON
26+
...nodecraft.configs.json,
27+
28+
// Overrides
29+
{
30+
ignores: jsonIgnore,
31+
rules: {
32+
'n/no-unsupported-features/node-builtins': 'off',
33+
},
34+
},
35+
];

0 commit comments

Comments
 (0)