-
Notifications
You must be signed in to change notification settings - Fork 14
/
eslint.config.js
47 lines (43 loc) · 1.02 KB
/
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
45
46
47
import hypothesisBase from 'eslint-config-hypothesis/base';
import hypothesisJSX from 'eslint-config-hypothesis/jsx';
import hypothesisTS from 'eslint-config-hypothesis/ts';
import globals from 'globals';
export default [
{
ignores: [
'.tox/**/*',
'.yalc/**/*',
'.yarn/**/*',
'build/**/*',
'**/coverage/**/*',
'docs/_build/*',
],
},
...hypothesisBase,
...hypothesisJSX,
...hypothesisTS,
// Additional rules that require type information. These can only be run
// on files included in the TS project by tsconfig.json.
{
files: ['lms/static/scripts/frontend_apps/**/*.{js,ts,tsx}'],
ignores: ['**/test/*.js'],
rules: {
'@typescript-eslint/no-unnecessary-condition': 'error',
},
languageOptions: {
parserOptions: {
project: 'lms/static/scripts/tsconfig.json',
},
},
},
// Code that runs in Node
{
files: ['*'],
ignores: ['lms/**'],
languageOptions: {
globals: {
...globals.node,
},
},
},
];