-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yaml
53 lines (53 loc) · 1.21 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
52
53
env:
browser: true
es2020: true
extends:
- standard
- react-app
- react-app/jest
- eslint:recommended
- plugin:react/recommended
- prettier
- plugin:prettier/recommended
- "plugin:@typescript-eslint/recommended"
- 'plugin:@next/next/recommended'
ignorePatterns:
- .next/**/*
- build/**/*
- dist/**/*
- package-lock.json
- yarn.lock
- public/service-worker.js
- public/charting_library
- app/components/ProChart/charting_library
- analyze*
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 2020
sourceType: module
plugins:
- react
- prettier
- "@typescript-eslint"
- sort-keys-fix
- simple-import-sort
- unused-imports
settings:
react:
version: detect
parser: "@typescript-eslint/parser"
rules:
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": "^_" }
]