forked from box/box-content-preview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (29 loc) · 881 Bytes
/
.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
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,
},
rules: {
'class-methods-use-this': 0, // fixme
'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
},
};