This repository has been archived by the owner on Aug 31, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.5 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
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:vue/essential', 'prettier'],
env: {
browser: true,
es6: true,
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
plugins: ['babel', 'prettier', 'promise'],
rules: {
'arrow-body-style': 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-console':
process.env.NODE_ENV === 'production' ? ['error', { allow: ['warn', 'error'] }] : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
quotes: ['error', 'single', { avoidEscape: true }],
'prettier/prettier': 'error',
'prefer-arrow-callback': 'off',
'vue/component-tags-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'vue/multi-word-component-names': [
'error',
{
ignores: ['Avatar', 'Filters', 'Pagination'],
},
],
'vue/no-template-target-blank': [
'error',
{
allowReferrer: false,
enforceDynamicLinks: 'always',
},
],
},
globals: {
_: 'readable',
axios: 'readable',
route: 'readable',
Twitch: 'readable',
Vue: 'readable',
},
}