Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates react and ts versions #436

Merged
merged 2 commits into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORT=3000
EXTEND_ESLINT=true
ESLINT_NO_DEV_ERRORS=true
FIXED_WINDOW_SIZE=true
REACT_APP_SOLVER_API_URL=https://kirk.kis.agh.edu.pl/nurse_scheduler/
REACT_APP_EMAIL_KEY="user_gkDGsV6502nLQs0mPf4xk"
Expand Down
54 changes: 44 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"browser": true,
"es2021": true
},
"ignorePatterns": ["snapshots.js"],
"ignorePatterns": [
"snapshots.js"
],
"extends": [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"airbnb",
"react-app",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended",
Expand All @@ -21,11 +23,25 @@
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "cypress", "header"],
"plugins": [
"react",
"@typescript-eslint",
"cypress",
"header"
],
"rules": {
"no-debugger": "off",
"quotes": "off",
"no-underscore-dangle": ["error", { "allowAfterThis": true, "allow": ["_rev", "_id"] }],
"quotes": "off",
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true,
"allow": [
"_rev",
"_id"
]
}
],
"camelcase": [
"error",
{
Expand All @@ -47,7 +63,12 @@
"import/order": "off",
"spaced-comment": "off",
"no-unused-vars": "off",
"consistent-return": ["error", { "treatUndefinedAsUnspecified": false }],
"consistent-return": [
"error",
{
"treatUndefinedAsUnspecified": false
}
],
"import/no-named-as-default": "off",
"object-curly-newline": "off",
"import/no-cycle": "off",
Expand Down Expand Up @@ -87,12 +108,22 @@
},
"overrides": [
{
"files": ["**/*.ts?(x)"],
"files": [
"**/*.ts?(x)"
],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"no-use-before-define": "off",
"default-case": "off",
"no-unused-expressions": "off",
"no-useless-constructor": "off",
"no-restricted-syntax": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".tsx"]
"extensions": [
".tsx"
]
}
],
"import/extensions": [
Expand All @@ -108,12 +139,15 @@
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
}
}
}
Loading