forked from meesii/electron-vite-encrypt-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
36 lines (35 loc) · 986 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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true,
es2020: true
},
extends: ['plugin:vue/vue3-recommended', 'eslint:recommended', '@vue/eslint-config-typescript/recommended', '@vue/eslint-config-prettier'],
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module'
},
'prettier/prettier': [
'error',
{
singleQuote: true,
parser: 'flow'
}
],
rules: {
'no-undef': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off',
'no-unused-vars': 'off',
'no-class-static-properties': 'off',
'no-empty': ['error', { allowEmptyCatch: true }],
'linebreak-style': 'off'
}
};