forked from galaxyofdrones/galaxyofdrones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
58 lines (58 loc) · 1.77 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
module.exports = {
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@babel/eslint-parser',
requireConfigFile: false
},
extends: [
'airbnb-base',
'plugin:vue/recommended'
],
env: {
browser: true,
commonjs: true,
es6: true,
jquery: true,
node: true
},
globals: {
_: 'readonly',
axios: 'readonly',
Echo: 'readonly',
L: 'readonly',
moment: 'readonly',
Pusher: 'readonly',
PUSHER_APP_KEY: 'readonly',
Swal: 'readonly',
Translations: 'readonly',
Vue: 'readonly'
},
settings: {
'import/core-modules': ['webpack']
},
rules: {
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': ['error', 'never'],
'global-require': 'off',
'import/extensions': ['error', 'never', { vue: 'always' }],
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
indent: ['error', 4],
'object-shorthand': ['error', 'always', { avoidQuotes: false }],
'no-console': 'off',
'no-empty': ['error', { allowEmptyCatch: true }],
'no-multi-assign': 'off',
'no-param-reassign': ['error', { props: false }],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-underscore-dangle': 'off',
'no-unused-vars': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/html-indent': ['error', 4],
'vue/html-self-closing': ['error', { html: { normal: 'never' } }],
'vue/max-attributes-per-line': ['error', {
singleline: 2,
multiline: { allowFirstLine: true }
}],
'vue/no-v-html': 'off'
}
};