Skip to content

Commit 4822935

Browse files
Update eslint to latest verstions (pterodactyl#3380)
Updated Eslint to v7.27.0 Also updated all the related plugins to their latest versions. Removed `eslint-plugin-standard`, no longer required with `eslint-config-standard` v16+ standard/standard#1316
1 parent 8459b11 commit 4822935

File tree

3 files changed

+605
-345
lines changed

3 files changed

+605
-345
lines changed

.eslintrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ rules:
4444
array-bracket-spacing:
4545
- warn
4646
- always
47+
# Remove errors for not having newlines between operands of ternary expressions https://eslint.org/docs/rules/multiline-ternary
48+
multiline-ternary: 0
4749
"react-hooks/rules-of-hooks":
4850
- error
4951
"react-hooks/exhaustive-deps": 0

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,21 @@
7777
"@types/uuid": "^3.4.5",
7878
"@types/webpack-env": "^1.15.2",
7979
"@types/yup": "^0.29.3",
80-
"@typescript-eslint/eslint-plugin": "^4.22.1",
81-
"@typescript-eslint/parser": "^4.22.1",
80+
"@typescript-eslint/eslint-plugin": "^4.25.0",
81+
"@typescript-eslint/parser": "^4.25.0",
8282
"autoprefixer": "^10.1.0",
8383
"babel-loader": "^8.0.6",
8484
"babel-plugin-styled-components": "^1.12.0",
8585
"cross-env": "^7.0.2",
8686
"css-loader": "^3.2.1",
87-
"eslint": "^7.4.0",
88-
"eslint-config-standard": "^14.1.1",
89-
"eslint-plugin-import": "^2.22.0",
90-
"eslint-plugin-node": "^9.1.0",
91-
"eslint-plugin-promise": "^4.2.1",
92-
"eslint-plugin-react": "^7.20.3",
93-
"eslint-plugin-react-hooks": "^4.0.5",
94-
"eslint-plugin-standard": "^4.0.1",
95-
"fork-ts-checker-webpack-plugin": "^6.2.6",
87+
"eslint": "^7.27.0",
88+
"eslint-config-standard": "^16.0.3",
89+
"eslint-plugin-import": "^2.23.3",
90+
"eslint-plugin-node": "^11.1.0",
91+
"eslint-plugin-promise": "^5.1.0",
92+
"eslint-plugin-react": "^7.23.2",
93+
"eslint-plugin-react-hooks": "^4.2.0",
94+
"fork-ts-checker-webpack-plugin": "^6.2.10",
9695
"postcss": "^8.2.1",
9796
"redux-devtools-extension": "^2.13.8",
9897
"source-map-loader": "^1.0.1",

0 commit comments

Comments
 (0)