-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yaml
42 lines (42 loc) · 986 Bytes
/
.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
env:
browser: true
es2020: true
# node: true
extends:
- standard
- eslint:recommended
- prettier
- plugin:prettier/recommended
- "plugin:@typescript-eslint/recommended"
ignorePatterns:
- build/**/*
- dist/**/*
- package-lock.json
parserOptions:
ecmaVersion: 2020
sourceType: module
plugins:
- prettier
- "@typescript-eslint"
- sort-keys-fix
- simple-import-sort
- unused-imports
settings:
react:
version: detect
parser: "@typescript-eslint/parser"
rules:
no-console: warn
prettier/prettier: warn
sort-vars: warn
"@typescript-eslint/member-ordering":
[warn, { default: { order: alphabetically } }]
sort-keys-fix/sort-keys-fix: warn
simple-import-sort/imports: warn
simple-import-sort/exports: warn
"@typescript-eslint/no-unused-vars": off
unused-imports/no-unused-imports: warn
unused-imports/no-unused-vars: [
warn,
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
]