Skip to content

Commit

Permalink
configure
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed May 30, 2024
1 parent f1a831d commit 16d8b6b
Show file tree
Hide file tree
Showing 11 changed files with 5,616 additions and 9,278 deletions.
82 changes: 59 additions & 23 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,72 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"standard-with-typescript"
"eslint:recommended",
"react-app",
"plugin:react/jsx-runtime",
"prettier"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "tsconfig.json"
"project": true,
"tsconfigRootDir": "./"
},
"plugins": [
"react"
"@typescript-eslint"
],
"root": true,
"ignorePatterns": [
"lib",
"src/scripts"
"dist"
],
"rules": {
"@typescript-eslint/semi": [
"@typescript-eslint/consistent-type-imports": [
2,
"always"
{
"fixStyle": "separate-type-imports"
}
],
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/no-invalid-void-type": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/indent": "off"
}
"@typescript-eslint/no-restricted-imports": [
2,
{
"paths": [
{
"name": "react-redux",
"importNames": [
"useSelector",
"useStore",
"useDispatch"
],
"message": "Please use pre-typed versions from `src/app/hooks.ts` instead."
}
]
}
]
// TODO: see if we want to keep any of these rules
// "@typescript-eslint/semi": [
// 2,
// "always"
// ],
// "@typescript-eslint/member-delimiter-style": "off",
// "@typescript-eslint/space-before-function-paren": "off",
// "@typescript-eslint/no-invalid-void-type": "off",
// "@typescript-eslint/consistent-type-imports": "off",
// "@typescript-eslint/strict-boolean-expressions": "off",
// "@typescript-eslint/dot-notation": "off",
// "@typescript-eslint/indent": "off"
},
"overrides": [
{
"files": [
"*.{c,m,}{t,j}s",
"*.{t,j}sx"
]
},
{
"files": [
"*{test,spec}.{t,j}s?(x)"
],
"env": {
"jest": true
}
}
]
}
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/*.json
**/*.yaml
**/*.yml
**/*.code-workspace
**/*.code-snippets
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"arrowParens": "avoid"
}
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
coverage: # https://docs.codecov.com/docs/codecov-yaml
precision: 2
round: down
range: 90...90
status: # https://docs.codecov.com/docs/commit-status
project:
default:
target: 90%
threshold: 0%

comment: false
Loading

0 comments on commit 16d8b6b

Please sign in to comment.