Skip to content

Commit ecc7fdd

Browse files
authored
chore: eslint v10 migration (#65)
1 parent a679b7e commit ecc7fdd

7 files changed

Lines changed: 2420 additions & 5106 deletions

File tree

.eslintignore

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

.eslintrc.json

Lines changed: 0 additions & 14 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)