-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.eslintrc.js
More file actions
46 lines (46 loc) · 873 Bytes
/
.eslintrc.js
File metadata and controls
46 lines (46 loc) · 873 Bytes
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
/*
* @Description:
* @Version: 1.0.0
* @Author: lax
* @Date: 2020-10-22 18:58:04
* @LastEditors: lax
* @LastEditTime: 2022-04-09 13:10:23
* @FilePath: \taobi\.eslintrc.js
*/
module.exports = {
parser: "@babel/eslint-parser",
root: true,
env: {
node: true,
es2020: true,
},
extends: [
"airbnb-base/legacy",
"plugin:prettier/recommended",
"plugin:jest/recommended",
],
plugins: ["prettier"],
parserOptions: {
ecmaVersion: 11,
sourceType: "module",
},
rules: {
"no-bitwise": 0,
"no-plusplus": 0,
"no-underscore-dangle": 0,
"prefer-destructuring": 0,
"no-unused-expressions": 0,
"no-nested-ternary": 0,
"array-callback-return": 0,
"no-param-reassign": 0,
"class-methods-use-this": 0,
},
overrides: [
{
files: ["**/__test__/*.{j,t}s?(x)", "**/test/unit/**/*.test.{j,t}s?(x)"],
env: {
jest: true,
},
},
],
};