forked from johnpapa/heroes-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 841 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
31
32
module.exports = {
root: true,
env: {
node: true,
},
extends: ['@vue/airbnb', 'plugin:vue/essential', '@vue/prettier'],
plugins: ['prettier'],
// watch this for explaining why some of this is here
// https://www.youtube.com/watch?time_continue=239&v=YIvjKId9m2c
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
printWidth: 80,
},
],
'vue/no-unused-components': [
'error',
{
ignoreWhenBindingPresent: true,
},
],
},
parserOptions: {
parser: 'babel-eslint',
},
};