From 60aaeed6810dcc1396037e9ef8548b83df31bc16 Mon Sep 17 00:00:00 2001 From: Michael Dzjaparidze Date: Tue, 3 Sep 2024 15:57:19 +0200 Subject: [PATCH] Delete legacy eslint config --- .eslintrc.json | 76 -------------------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 7bccab2..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "root": true, - "env": { - "browser": true, - "es2022": true - }, - "settings": { - "react": { - "version": "detect" - } - }, - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 12, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true - } - }, - "extends": [ - "eslint:recommended", - "plugin:import/recommended", - "plugin:react/recommended", - "plugin:eslint-comments/recommended", - "plugin:prettier/recommended" - ], - "rules": { - "@typescript-eslint/no-var-requires": [ - "error", - { - "allow": ["/package\\.json$"] - } - ], - "require-jsdoc": [ - "error", - { - "require": { - "FunctionDeclaration": true, - "MethodDefinition": true, - "ClassDeclaration": true, - "ArrowFunctionExpression": true, - "FunctionExpression": true - } - } - ], - "import/first": "error", - "import/no-amd": "error", - "import/no-webpack-loader-syntax": "error", - "react/jsx-pascal-case": "error", - "react/style-prop-object": "error" - }, - "overrides": [ - { - "files": ["jest.config.js", "example/webpack.config.js"], - "env": { - "node": true - } - }, - { - "files": ["*.ts", "*.tsx"], - "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint"], - "extends": ["plugin:import/typescript", "plugin:@typescript-eslint/recommended"], - "settings": { - "import/parsers": { - "@typescript-eslint/parser": [".ts", ".tsx"] - }, - "import/resolver": { - "typescript": { - "alwaysTryTypes": true - } - } - } - } - ] -}