-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.37 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
globals: {
page: true,
browser: true,
context: true,
jestPuppeteer: true,
},
extends: ["airbnb-base", "plugin:prettier/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc"],
rules: {
"tsdoc/syntax": 2,
// "require-jsdoc": 1,
"@typescript-eslint/explicit-member-accessibility": 1,
"no-console": [0],
"eol-last": 0,
"no-use-before-define": [0],
"@typescript-eslint/no-use-before-define": [1],
"no-shadow": [0],
"no-multi-assign": [0],
"import/extensions": [0],
"import/prefer-default-export": [0],
"max-classes-per-file": [0],
"no-unused-vars": [0],
"no-unused-expressions": [0],
"import/no-extraneous-dependencies": [0],
"no-restricted-imports": [
"error",
{
name: "three",
message: "Please import THREE from './src/three.ts'",
},
],
"max-len": [
"error",
{
code: 155,
},
],
"prettier/prettier": [
"error",
{
printWidth: 155,
},
],
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx", ".d.ts"],
},
},
},
};