-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
48 lines (43 loc) · 1.28 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
module.exports = {
root: true,
env: {
node: true,
browser: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2021,
sourceType: 'module',
},
extends: [
'plugin:vue/strongly-recommended',
'eslint:recommended',
'@vue/typescript/recommended',
'prettier',
'airbnb-base',
],
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'linebreak-style': ['error', process.platform === 'win32' ? 'windows' : 'unix'],
// Allow object property reassignment
'no-param-reassign': [2, { props: false }],
'prettier/prettier': 1,
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'require-await': 'warn',
// Airbnb overrides
'comma-dangle': 'off',
'no-useless-escape': 'off',
'object-curly-newline': 'off',
'vue/no-multiple-template-root': 'off',
'consistent-return': 'off',
camelcase: 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'operator-linebreak': 'off',
},
};