From 0bd433f1e27daa41c20dc2206f807dbe303e8bcb Mon Sep 17 00:00:00 2001 From: Lukas Bach Date: Thu, 31 Mar 2022 00:49:13 +0200 Subject: [PATCH] linter setup fixes --- .eslintrc.js | 7 +++---- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c65b935..c91ffc9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,6 +8,7 @@ module.exports = { "plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", + "prettier" ], parser: "@typescript-eslint/parser", parserOptions: { @@ -20,13 +21,11 @@ module.exports = { ignorePatterns: ["*.js", "*.d.ts"], plugins: ["react", "@typescript-eslint"], rules: { - "prettier/prettier": "error", - indent: ["error", 2], "linebreak-style": "off", quotes: ["error", "double"], - semi: ["error", "always"], "react/prop-types": "off", "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-unused-vars": "off" // TODO + "@typescript-eslint/no-unused-vars": "off", // TODO + "@typescript-eslint/ban-types": "off", }, }; diff --git a/package.json b/package.json index 5793d20..101472e 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@typescript-eslint/eslint-plugin": "^5.12.1", "@typescript-eslint/parser": "^5.12.1", "eslint": "^8.9.0", - "eslint-config-prettier": "^8.4.0", + "eslint-config-prettier": "^8.5.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.28.0", "lerna": "^3.22.1", diff --git a/yarn.lock b/yarn.lock index f813d67..fda6240 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6868,10 +6868,10 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" -eslint-config-prettier@^8.4.0: - version "8.4.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.4.0.tgz#8e6d17c7436649e98c4c2189868562921ef563de" - integrity sha512-CFotdUcMY18nGRo5KGsnNxpznzhkopOcOo0InID+sgQssPrzjvsyKZPvOgymTFeHrFuC3Tzdf2YndhXtULK9Iw== +eslint-config-prettier@^8.5.0: + version "8.5.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1" + integrity sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q== eslint-plugin-prettier@^4.0.0: version "4.0.0"