Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 9b99819

Browse files
committed
fix: Configure ESLint to use ignores pattern instead of .eslintignore
- Added ignores pattern to eslint.config.js for flat config - Excludes node_modules, .obsidian, build outputs, etc. - Removed deprecated .eslintignore file - Follows gitignore patterns for consistency - Fixed formatting issues in config file
1 parent 575d4d5 commit 9b99819

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

.eslintignore

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

eslint.config.js

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ import promisePlugin from 'eslint-plugin-promise';
33

44
export default [
55
js.configs.recommended,
6+
{
7+
ignores: [
8+
'node_modules/**',
9+
'.obsidian/**',
10+
'dist/**',
11+
'build/**',
12+
'coverage/**',
13+
'*.min.js',
14+
'.git/**',
15+
'.vitest/**',
16+
'.nyc_output/**',
17+
'test-results/**'
18+
]
19+
},
620
{
721
files: ['**/*.js'],
822
languageOptions: {
@@ -29,24 +43,24 @@ export default [
2943
'promise/always-return': 'error',
3044
'promise/no-return-wrap': 'error',
3145
'promise/param-names': 'error',
32-
46+
3347
// Require await in async functions
3448
'require-await': 'error',
35-
49+
3650
// Other async best practices
3751
'no-async-promise-executor': 'error',
3852
'no-await-in-loop': 'warn',
3953
'no-return-await': 'error',
4054
'prefer-promise-reject-errors': 'error',
41-
55+
4256
// ESM-specific rules
4357
'no-console': 'off',
4458
'no-undef': 'error',
45-
'no-unused-vars': ['error', {
59+
'no-unused-vars': ['error', {
4660
'argsIgnorePattern': '^_',
4761
'varsIgnorePattern': '^_'
4862
}],
49-
63+
5064
// Modern JavaScript best practices
5165
'prefer-const': 'error',
5266
'prefer-arrow-callback': 'error',
@@ -60,4 +74,5 @@ export default [
6074
'eol-last': 'error'
6175
}
6276
}
63-
];
77+
];
78+

0 commit comments

Comments
 (0)