We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac61042 commit 4d6f8d3Copy full SHA for 4d6f8d3
eslint.config.js
@@ -44,8 +44,23 @@ export default defineConfig([
44
'import/no-unresolved': 'off',
45
'import/no-unused-modules': 'off',
46
47
+ // Always import Node.js packages from `node:*`
48
+ 'import/enforce-node-protocol-usage': ['error', 'always'],
49
+
50
+ // Check import or require statements are A-Z ordered
51
+ 'import/order': [
52
+ 'error',
53
+ {
54
+ 'alphabetize': { order: 'asc' },
55
+ 'newlines-between': 'always',
56
+ },
57
+ ],
58
59
// Prefer rules that are type aware
60
+ 'no-redeclare': 'off',
61
+ 'no-undef': 'off',
62
'no-unused-vars': 'off',
63
+ '@typescript-eslint/no-redeclare': 'error',
64
'@typescript-eslint/no-unused-vars': [
65
'error',
66
{
0 commit comments