-
Notifications
You must be signed in to change notification settings - Fork 75
/
.eslintrc.js
32 lines (32 loc) · 1.2 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
module.exports = {
root: true,
env: {
node: true,
},
extends: ['eslint:recommended', 'plugin:vue/recommended', '@vue/prettier'],
plugins: ['flowtype', 'flowtype-errors'],
rules: {
'flowtype-errors/show-errors': 'error',
'flowtype-errors/show-warnings': 'warn',
'flowtype/boolean-style': 'error',
'flowtype/define-flow-type': 'error',
'flowtype/no-dupe-keys': 'error',
'flowtype/no-primitive-constructor-types': 'error',
'flowtype/require-parameter-type': 'error',
'flowtype/require-return-type': 'error',
'flowtype/require-valid-file-annotation': 'error',
'flowtype/require-variable-type': 'error',
'flowtype/use-flow-type': 'error',
'vue/attributes-order': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/no-v-html': 'off', // 仕方なく
'no-debugger': process.env.NODE_ENV === 'development' ? 'off' : 'error', // ローカル環境のみ off
'no-console': process.env.NODE_ENV === 'development' ? 'off' : 'error', // ローカル環境のみ off
},
parserOptions: {
parser: 'babel-eslint',
},
}