Skip to content

Commit

Permalink
⬆️ Bump babel, eslint & postcss to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Jul 17, 2022
1 parent 1297710 commit 0e784d0
Show file tree
Hide file tree
Showing 4 changed files with 1,472 additions and 731 deletions.
28 changes: 14 additions & 14 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"presets": [
"@babel/preset-env",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
],
"@babel/preset-typescript"
"@babel/preset-env",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
],
"@babel/preset-typescript"
],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
]
}
27 changes: 13 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{
"env": {
"browser": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
"plugin:prettier/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -19,30 +24,24 @@
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-console": "warn",
"react/jsx-boolean-value": [
"warn",
"never"
],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "error",
"no-console": "error",
"react/jsx-no-bind": "warn",
"react/jsx-sort-props": [
"warn",
{
"reservedFirst": true
}
],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
"react/prop-types": "error",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error"
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"node": true
}
}
26 changes: 16 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"react-twitter-auth": "0.0.13"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-transform-runtime": "^7.18.2",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.17.12",
"@babel/core": "^7.18.5",
"@babel/plugin-transform-runtime": "^7.18.5",
"@babel/preset-env": "^7.18.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@types/jwt-decode": "^3.1.0",
"@types/leaflet": "^1.7.11",
"@types/leaflet-draw": "^1.0.5",
Expand All @@ -48,18 +48,24 @@
"dotenv": "^8.2.0",
"dotenv-expand": "^5.1.0",
"dotenv-webpack": "^7.1.0",
"eslint": "^8.17.0",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.6.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.5.1",
"eslint-webpack-plugin": "^3.2.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"postcss": "^8.4.14",
"postcss": "^8.4.12",
"postcss-loader": "^7.0.0",
"postcss-remove-google-fonts": "^1.2.0",
"prettier": "^2.6.2",
"prop-types": "^15.7.2",
"react-dev-utils": "^10.2.1",
"resolve": "^1.22.1",
"resolve-url-loader": "^5.0.0",
Expand Down
Loading

0 comments on commit 0e784d0

Please sign in to comment.