forked from EthVM/EthVM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·33 lines (33 loc) · 1.03 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
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier', '@vue/typescript'],
rules: {
curly: 'error',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-else-return': ['error', { allowElseIf: true }],
'arrow-parens': 'off',
'generator-star-spacing': 'off',
semi: 'off',
'prefer-const': 'error',
'no-var': 'error',
'vue/no-unused-vars': 'error',
'vue/require-default-prop': 'off',
'vue/custom-event-name-casing': 'off',
'graphql/template-strings': [
'error',
{
env: 'apollo',
schemaJson: require('./src/apollo/schemas/api.json')
// tagName is gql by default
}
]
},
parserOptions: {
parser: 'typescript-eslint-parser'
},
plugins: ['graphql']
}