-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
47 lines (46 loc) · 1.37 KB
/
.eslintrc.cjs
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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
extends: [
'plugin:vue/essential',
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier',
],
plugins: ['import'],
rules: {
'prettier/prettier': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': 'warn',
'import/extensions': [
'warn',
'always',
{
js: 'never',
vue: 'never',
},
],
'space-before-function-paren': 0,
'object-curly-newline': 'off',
'global-require': 0,
'linebreak-style': 'off',
'func-names': ['error', 'never'],
'no-plusplus': 'off',
'no-prototype-builtins': 'off',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'no-alert': 'error',
radix: ['error', 'as-needed'],
'no-nested-ternary': 'off',
'no-use-before-define': ['error', { functions: false, classes: true }],
'no-unused-expressions': ['error', { allowShortCircuit: true }],
'no-restricted-globals': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off',
'vuejs-accessibility/media-has-caption': 'off',
'no-bitwise': 'off',
'default-param-last': 'off',
'import/no-cycle': 'off',
},
};