Skip to content

Commit 16d8b6b

Browse files
committed
configure
1 parent f1a831d commit 16d8b6b

11 files changed

+5616
-9278
lines changed

.eslintrc.json

+59-23
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,72 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es2021": true
5-
},
62
"extends": [
7-
"plugin:react/recommended",
8-
"standard-with-typescript"
3+
"eslint:recommended",
4+
"react-app",
5+
"plugin:react/jsx-runtime",
6+
"prettier"
97
],
10-
"overrides": [],
8+
"parser": "@typescript-eslint/parser",
119
"parserOptions": {
12-
"ecmaVersion": "latest",
13-
"sourceType": "module",
14-
"project": "tsconfig.json"
10+
"project": true,
11+
"tsconfigRootDir": "./"
1512
},
1613
"plugins": [
17-
"react"
14+
"@typescript-eslint"
1815
],
16+
"root": true,
1917
"ignorePatterns": [
20-
"lib",
21-
"src/scripts"
18+
"dist"
2219
],
2320
"rules": {
24-
"@typescript-eslint/semi": [
21+
"@typescript-eslint/consistent-type-imports": [
2522
2,
26-
"always"
23+
{
24+
"fixStyle": "separate-type-imports"
25+
}
2726
],
28-
"@typescript-eslint/member-delimiter-style": "off",
29-
"@typescript-eslint/space-before-function-paren": "off",
30-
"@typescript-eslint/no-invalid-void-type": "off",
31-
"@typescript-eslint/consistent-type-imports": "off",
32-
"@typescript-eslint/strict-boolean-expressions": "off",
33-
"@typescript-eslint/dot-notation": "off",
34-
"@typescript-eslint/indent": "off"
35-
}
27+
"@typescript-eslint/no-restricted-imports": [
28+
2,
29+
{
30+
"paths": [
31+
{
32+
"name": "react-redux",
33+
"importNames": [
34+
"useSelector",
35+
"useStore",
36+
"useDispatch"
37+
],
38+
"message": "Please use pre-typed versions from `src/app/hooks.ts` instead."
39+
}
40+
]
41+
}
42+
]
43+
// TODO: see if we want to keep any of these rules
44+
// "@typescript-eslint/semi": [
45+
// 2,
46+
// "always"
47+
// ],
48+
// "@typescript-eslint/member-delimiter-style": "off",
49+
// "@typescript-eslint/space-before-function-paren": "off",
50+
// "@typescript-eslint/no-invalid-void-type": "off",
51+
// "@typescript-eslint/consistent-type-imports": "off",
52+
// "@typescript-eslint/strict-boolean-expressions": "off",
53+
// "@typescript-eslint/dot-notation": "off",
54+
// "@typescript-eslint/indent": "off"
55+
},
56+
"overrides": [
57+
{
58+
"files": [
59+
"*.{c,m,}{t,j}s",
60+
"*.{t,j}sx"
61+
]
62+
},
63+
{
64+
"files": [
65+
"*{test,spec}.{t,j}s?(x)"
66+
],
67+
"env": {
68+
"jest": true
69+
}
70+
}
71+
]
3672
}

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/*.json
2+
**/*.yaml
3+
**/*.yml
4+
**/*.code-workspace
5+
**/*.code-snippets

.prettierrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "avoid"
4+
}

codecov.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
coverage: # https://docs.codecov.com/docs/codecov-yaml
2+
precision: 2
3+
round: down
4+
range: 90...90
5+
status: # https://docs.codecov.com/docs/commit-status
6+
project:
7+
default:
8+
target: 90%
9+
threshold: 0%
10+
11+
comment: false

0 commit comments

Comments
 (0)