forked from CyberNika/v-contextmenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (45 loc) 路 1.15 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
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
extends: 'airbnb-base',
plugins: [
'html'
],
rules: {
'import/resolver': {
node: { extensions: [ '.js', '.mjs' ] }
},
'import/extensions': ['error', 'always', {
js: 'never',
vue: 'never'
}],
'import/no-extraneous-dependencies': ['error', {
optionalDependencies: ['test/unit/index.js']
}],
'import/prefer-default-export': 0,
'space-before-function-paren': ['error', 'always'],
'consistent-return': 0,
'no-unused-expressions': ['error', { allowShortCircuit: true }],
'object-shorthand': ['error', 'always', { avoidQuotes: false }],
'max-len': ['error', 120],
'global-require': 0,
'import/no-dynamic-require': 0,
semi: ['error', 'never'],
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'class-methods-use-this': 0,
'object-curly-newline': ['error', { consistent: true }],
},
globals: {}
}