-
-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy patheslint.config.js
More file actions
30 lines (29 loc) · 720 Bytes
/
eslint.config.js
File metadata and controls
30 lines (29 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const config = require('eslint-config-hexo/ts');
const testConfig = require('eslint-config-hexo/test');
module.exports = [
// Configurations applied globally
...config,
{
rules: {
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-require-imports': 0,
'n/no-missing-import': 0,
'n/no-missing-require': 0
}
},
// Configurations applied only to test files
{
files: [
'test/**/*.ts'
],
languageOptions: {
...testConfig.languageOptions
},
rules: {
...testConfig.rules,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unused-expressions': 0
}
}
];