-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yaml
51 lines (51 loc) · 1.14 KB
/
.eslintrc.yaml
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
# see https://dev.classmethod.jp/articles/eslint-configurations-2020/
# note that eslint-plugin-prettier is deprecated
env:
es2020: true
jest/globals: true
browser: true
jquery: true
parser: '@typescript-eslint/parser'
parserOptions:
project: ./tsconfig.json
plugins:
- jest
- '@typescript-eslint'
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:jest/recommended
- prettier
# - prettier/@typescript-eslint
globals:
dat: true
THREE: true
NodeJS: true
editor: true
rules:
'@typescript-eslint/explicit-module-boundary-types': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-non-null-assertion': off
'@typescript-eslint/no-unused-vars': off
no-unreachable: error
no-undef: error
max-lines-per-function:
- warn
- 100
'@typescript-eslint/naming-convention':
- warn
- selector:
- variable
- function
- parameter
- property
- method
format:
- camelCase
- selector:
- class
- interface
- typeAlias
format:
- PascalCase