diff --git a/.eslintrc.json b/.eslintrc.json index 785ac355e4..d92d4484eb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -41,18 +41,29 @@ "error", "always" ], - "no-undef": 0, - // Best practice "eqeqeq": 2, "curly": 2, - "dot-location": [2, "property"], + "dot-location": [ + 2, + "property" + ], "dot-notation": 2, "no-alert": 2, - "object-shorthand": [2, "always"], - "no-console": ["error", { "allow": ["warn", "error"] }], - + "object-shorthand": [ + 2, + "always" + ], + "no-console": [ + "error", + { + "allow": [ + "warn", + "error" + ] + } + ], // Style "array-bracket-spacing": 2, "brace-style": 2, @@ -65,20 +76,46 @@ "no-lonely-if": 2, "no-multiple-empty-lines": 2, "no-tabs": 2, - "semi-style": [2, "last"], - "spaced-comment": [2, "always"], - + "semi-style": [ + 2, + "last" + ], + "spaced-comment": [ + 2, + "always" + ], // ES 6 "arrow-spacing": 2, "no-var": 2, - // React - "jsx-quotes": [2, "prefer-single"], - "react/forbid-prop-types": [1, { "forbid": ["any"] }], - "react/jsx-curly-spacing": [2, "never"], - "react/jsx-equals-spacing": [2, "never"], - "react/jsx-indent": [2, 2], - "react/jsx-indent-props": [2, 2], + "jsx-quotes": [ + 2, + "prefer-single" + ], + "react/forbid-prop-types": [ + 1, + { + "forbid": [ + "any" + ] + } + ], + "react/jsx-curly-spacing": [ + 2, + "never" + ], + "react/jsx-equals-spacing": [ + 2, + "never" + ], + "react/jsx-indent": [ + 2, + 2 + ], + "react/jsx-indent-props": [ + 2, + 2 + ], "react/jsx-key": 1, "react/jsx-no-duplicate-props": 2, "react/jsx-no-undef": 2, @@ -97,17 +134,15 @@ "react/self-closing-comp": 2, "node/no-unpublished-require": 0, "node/no-unsupported-features/es-syntax": 0, - // Node "node/no-unpublished-import": 0, - // Typescript "@typescript-eslint/explicit-function-return-type": 0, "@typescript-eslint/no-empty-function": 0, "@typescript-eslint/no-use-before-define": 0, - "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/no-unused-vars": 0, "@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/ban-types": 0 } -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f8b3e8a2b2..0ea6222454 100644 --- a/package-lock.json +++ b/package-lock.json @@ -185,8 +185,8 @@ "yup": "^0.32.9" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^4.23.0", - "@typescript-eslint/parser": "^4.23.0", + "@typescript-eslint/eslint-plugin": "^4.33.0", + "@typescript-eslint/parser": "^4.33.0", "babel-eslint": "^10.0.3", "cross-env": "^7.0.3", "electron": "^12.1.0", diff --git a/package.json b/package.json index bba999d408..fd3c3c4483 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,8 @@ "build:all": "lerna run build && cross-env NODE_OPTIONS='--max-old-space-size=8192' electron-builder -c.extraMetadata.main=dist/main.js -mwl" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^4.23.0", - "@typescript-eslint/parser": "^4.23.0", + "@typescript-eslint/eslint-plugin": "^4.33.0", + "@typescript-eslint/parser": "^4.33.0", "babel-eslint": "^10.0.3", "cross-env": "^7.0.3", "electron": "^12.1.0", @@ -211,4 +211,4 @@ "node-gyp": "^9.0.0", "sqlite3": "^5.0.3" } -} \ No newline at end of file +} diff --git a/packages/main/.eslintrc.json b/packages/main/.eslintrc.json index 3dd7e269db..623df41452 100644 --- a/packages/main/.eslintrc.json +++ b/packages/main/.eslintrc.json @@ -9,4 +9,4 @@ "node/no-missing-import": 0, "node/no-extraneous-import": 0 } -} +} \ No newline at end of file