-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.cjs
37 lines (36 loc) · 947 Bytes
/
.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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-eval': 2,
'consistent-return': 1,
camelcase: 2,
'no-alert': 2,
eqeqeq: [2, 'smart'],
'func-style': [2, 'declaration'],
'@typescript-eslint/explicit-function-return-type': 'error',
'no-duplicate-imports': 'error',
'no-debugger': 'error',
'no-console': ['error', { allow: ['warn', 'error'] }],
'prettier/prettier': [
'warn',
{
singleQuote: true,
semi: true,
},
],
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'vue/require-explicit-emits': ['off'],
},
};