-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslint.config.js
44 lines (40 loc) · 953 Bytes
/
eslint.config.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @file ESLint flat config file.
*/
import js from '@eslint/js';
import tjwBase from 'eslint-config-tjw-base';
import tjwJsdoc from 'eslint-config-tjw-jsdoc';
import pluginJest from 'eslint-plugin-jest';
import pluginTjwJest from 'eslint-config-tjw-jest';
export default [
js.configs.recommended,
tjwBase,
...tjwJsdoc,
pluginJest.configs['flat/recommended'],
pluginTjwJest.configs.recommended,
// Project specific rules
{
languageOptions: {
globals: {
afterEach: true,
beforeEach: true,
describe: true,
expect: true,
global: true,
test: true,
vi: true
}
},
rules: {
// If this is not turned off, linting throws because it can't find 'jest' install
'jest/no-deprecated-functions': 'off'
}
},
// Override rules in the tests folder
{
files: ['tests/**/*'],
rules: {
'jsdoc/require-file-overview': 'off'
}
}
];