forked from ueberdosis/tiptap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (48 loc) · 1.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
plugins: ['html'],
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
},
env: {
es6: true,
node: true,
},
globals: {
document: false,
navigator: false,
window: false,
collect: false,
cy: false,
test: false,
expect: false,
it: false,
describe: false,
FileReader: false,
},
extends: [
'plugin:vue/base',
'airbnb-base',
],
rules: {
// required semicolons
'semi': ['error', 'never'],
// error handling
'no-console': ['error', { allow: ['warn', 'error'] }],
// indent
'no-tabs': 'off',
'indent': 'off',
// disable some import stuff
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/no-dynamic-require': 'off',
// disable for '__svg__'
'no-underscore-dangle': 'off',
'arrow-parens': ['error', 'as-needed'],
'padded-blocks': 'off',
'class-methods-use-this': 'off',
'global-require': 'off',
'func-names': ['error', 'never'],
}
}