-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
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,
browser: true,
},
extends: [
'plugin:vue/recommended',
'plugin:vue-scoped-css/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'@vue/typescript',
],
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser',
},
rules: {
indent: ['error', 2],
semi: ['error', 'never'],
quotes: ['error', 'single'],
'object-curly-spacing': ['error', 'always'],
'space-before-function-paren': ['error', 'always'],
'no-trailing-spaces': 'error',
'comma-dangle': ['error', 'always-multiline'],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
// Next 2 lines are needed for solving problem with interface imports
// Solution source: https://stackoverflow.com/a/61555310
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
}