-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
35 lines (35 loc) · 896 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
module.exports = {
env: {
node: true,
},
extends: [
// 'plugin:vue/essential',
'@vue/eslint-config-typescript/recommended',
// '@vue/eslint-config-prettier',
],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module',
project: './tsconfig.json',
extraFileExtensions: ['.cjs']
},
rules: {
// 'prettier/prettier': [
// 'warn',
// {
// tabWidth: 2,
// singleQuote: true,
// printWidth: 100,
// endOfLine: 'auto',
// },
// ],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-use-before-define': ['error', 'nofunc'],
'@typescript-eslint/no-unused-vars': [
'warn',
{ ignoreRestSiblings: true, varsIgnorePattern: '_.*' },
],
'@typescript-eslint/no-floating-promises': ['error'],
},
};