forked from ikuaitu/vue-fabric-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.12 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
/*
* @Author: 秦少卫
* @Date: 2022-09-03 19:22:16
* @LastEditors: June
* @LastEditTime: 2023-02-10 16:33:35
* @Description: file content
*/
module.exports = {
root: true,
env: {
node: true,
},
// extends: ['plugin:vue/essential', '@vue/airbnb', 'plugin:prettier/recommended'],
extends: ['plugin:vue/essential', '@vue/airbnb'],
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-plusplus': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
'consistent-return': 'off', // 强制统一返回值
'no-param-reassign': 'off', // 参数重新分配
'no-underscore-dangle': 'off', // 使用下划线命名
'vuejs-accessibility/click-events-have-key-events': 'off',
'max-len': 'off',
'no-unused-expressions': 'off', // 17
'linebreak-style': 'off',
},
overrides: [
{
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
env: {
jest: true,
},
},
],
};