-
Notifications
You must be signed in to change notification settings - Fork 113
/
.eslintrc.js
48 lines (47 loc) · 1.38 KB
/
.eslintrc.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
48
const eslintrc = require.resolve('@box/frontend/eslint/eslintrc.js');
module.exports = {
extends: [eslintrc],
globals: {
__: false,
__I18N__: false,
__NAME__: false,
__VERSION__: false,
ActiveXObject: false,
DocumentTouch: false,
fail: false,
fixture: false,
hljs: false,
jest: false,
Papa: false,
pdfjsLib: false,
pdfjsViewer: false,
remarkable: false,
sinon: false,
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'no-shadow': 'off',
'react/prop-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
{
files: ['**/*test.ts', '**/*test.tsx'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
],
parser: '@typescript-eslint/parser',
rules: {
'class-methods-use-this': 0, // fixme
'flowtype/no-types-missing-file-annotation': 0,
'import/no-cycle': 0, // fixme
'import/no-extraneous-dependencies': 0, // fixme
'import/no-unresolved': 'off', // fixme, allows JS files to import TS files
'no-underscore-dangle': 0, // fixme
'prefer-destructuring': ['error', { object: true, array: false }], // fixme
},
};