From 12606f966fe537634c16b7d5db60cee7a5ba6050 Mon Sep 17 00:00:00 2001 From: kristian4res <57638182+kristian4res@users.noreply.github.com> Date: Sun, 30 Jun 2024 20:05:55 +0100 Subject: [PATCH] style: yarn lint --- .eslintrc.json | 195 +++++++++++++++++++++---------------------------- 1 file changed, 82 insertions(+), 113 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 43648cf8..9dbe92b3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,119 +1,88 @@ { - "ignorePatterns": [ - "node_modules/*", - "dist/*", - "build/*" - ], - "env": { - "browser": true, - "es2021": true, - "node": true + "ignorePatterns": ["node_modules/*", "dist/*", "build/*"], + "env": { + "browser": true, + "es2021": true, + "node": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:@typescript-eslint/recommended" + "ecmaVersion": 12, + "sourceType": "module" + }, + "plugins": ["react", "@typescript-eslint", "import"], + "rules": { + "object-curly-spacing": ["error", "always"], + "no-multiple-empty-lines": [ + "error", + { + "max": 1 + } ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "ecmaVersion": 12, - "sourceType": "module" - }, - "plugins": [ - "react", - "@typescript-eslint", - "import" + "no-trailing-spaces": "error", + "no-mixed-spaces-and-tabs": "error", + "linebreak-style": ["error", "unix"], + "quotes": ["error", "double"], + "semi": ["error", "always"], + "no-undef": "off", + "comma-dangle": ["error", "never"], + "@typescript-eslint/no-explicit-any": "error", + "@typescript-eslint/no-unused-vars": "off", + "react/react-in-jsx-scope": "off", + "react/require-default-props": "off", + "no-spaced-func": "off", + "import/no-extraneous-dependencies": [ + "error", + { + "devDependencies": true + } ], - "rules": { - "object-curly-spacing": ["error", "always"], - "no-multiple-empty-lines": [ - "error", - { - "max": 1 - } - ], - "no-trailing-spaces": "error", - "no-mixed-spaces-and-tabs": "error", - "linebreak-style": [ - "error", - "unix" - ], - "quotes": [ - "error", - "double" - ], - "semi": [ - "error", - "always" - ], - "no-undef": "off", - "comma-dangle": [ - "error", - "never" - ], - "@typescript-eslint/no-explicit-any": "error", - "@typescript-eslint/no-unused-vars": "off", - "react/react-in-jsx-scope": "off", - "react/require-default-props": "off", - "no-spaced-func": "off", - "import/no-extraneous-dependencies": [ - "error", - { - "devDependencies": true - } - ], - "max-len": [ - "error", - { - "code": 200 - } - ], - "@typescript-eslint/no-empty-function": "off", - "indent": [ - "error", - 4 - ], - "space-in-parens": [ - "error", - "never" - ], - "no-multi-spaces": "error", - "comma-spacing": [ - "error", - { - "before": false, - "after": true - } - ], - "template-curly-spacing": [ - "error", - "never" - ] - }, - "overrides": [ - { - "files": [ - "*.js" - ], - "rules": { - "@typescript-eslint/no-var-requires": "off" - } - } + "max-len": [ + "error", + { + "code": 200 + } ], - "settings": { - "react": { - "createClass": "createReactClass", // Regex for Component Factory to use, - // default to "createReactClass" - "pragma": "React", // Pragma to use, default to "React" - "fragment": "Fragment", // Fragment to use (may be a property of ), default to "Fragment" - "version": "detect", // React version. "detect" automatically picks the version you have installed. - // You can also use `16.0`, `16.3`, etc, if you want to override the detected value. - // default to latest and warns if missing - // It will default to "detect" in the future - "flowVersion": "0.53" // Flow version - } + "@typescript-eslint/no-empty-function": "off", + "indent": ["error", 4], + "space-in-parens": ["error", "never"], + "no-multi-spaces": "error", + "comma-spacing": [ + "error", + { + "before": false, + "after": true + } + ], + "template-curly-spacing": ["error", "never"] + }, + "overrides": [ + { + "files": ["*.js"], + "rules": { + "@typescript-eslint/no-var-requires": "off" + } + } + ], + "settings": { + "react": { + "createClass": "createReactClass", // Regex for Component Factory to use, + // default to "createReactClass" + "pragma": "React", // Pragma to use, default to "React" + "fragment": "Fragment", // Fragment to use (may be a property of ), default to "Fragment" + "version": "detect", // React version. "detect" automatically picks the version you have installed. + // You can also use `16.0`, `16.3`, etc, if you want to override the detected value. + // default to latest and warns if missing + // It will default to "detect" in the future + "flowVersion": "0.53" // Flow version } -} \ No newline at end of file + } +}