diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 16362692..00000000 --- a/.eslintrc.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "settings": { - "react": { - "version": "detect" - } - }, - "env": { - "browser": true - }, - "extends": ["plugin:react/recommended", "prettier"], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaFeatures": { - "jsx": true - }, - "ecmaVersion": 12, - "sourceType": "module" - }, - "plugins": ["react", "@typescript-eslint", "react-hooks", "prettier"], - "rules": { - "react-hooks/rules-of-hooks": "error", - "react/display-name": "off", - "react-hooks/exhaustive-deps": "off", - "prettier/prettier": [ - "error", - { - "endOfLine": "auto" - } - ], - "semi": "off", - "no-use-before-define": "off", - "comma-dangle": "off", - "space-before-function-paren": "off", - "multiline-ternary": "off", - "promise/param-names": "off", - "no-debugger": "off", - "react/prop-types": "off", - "no-extra-parens": "off", - "eol-last": "off", - "jsx-quotes": "off", - "space-before-blocks": "off", - "max-len": "off", - "strict": "off", - "no-promise-executor-return": "off", - "no-bitwise": "off", - "no-return-assign": "off", - "consistent-return": "off", - "global-require": "off", - "import/no-extraneous-dependencies": "off", - "import/no-unresolved": "off", - "no-console": "off", - "import/extensions": "off", - "no-nested-ternary": "off", - "array-callback-return": "off", - "no-shadow": "off", - "no-inner-declarations": "off", - "no-unused-expressions": "off", - "no-unused-vars": "off", - "no-plusplus": "off" - } -} diff --git a/eslint.config.mjs b/eslint.config.mjs index db7eb3b1..8fec1e4c 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -17,7 +17,7 @@ const compat = new FlatCompat({ recommendedConfig: js.configs.recommended, allConfig: js.configs.all, }) - +// npx @eslint/migrate-config .eslintrc.json export default [ { ignores: ['node_modules/**/*', '**/CHANGELOG.md', '**/package-lock.json', 'dist/**/*', 'build/**/*', '**/coverage'], @@ -57,14 +57,13 @@ export default [ 'react-hooks/rules-of-hooks': 'error', 'react/display-name': 'off', 'react-hooks/exhaustive-deps': 'off', - + 'react/prop-types': 'off', 'prettier/prettier': [ 'error', { endOfLine: 'auto', }, ], - semi: 'off', 'no-use-before-define': 'off', 'comma-dangle': 'off', @@ -72,7 +71,6 @@ export default [ 'multiline-ternary': 'off', 'promise/param-names': 'off', 'no-debugger': 'off', - 'react/prop-types': 'off', 'no-extra-parens': 'off', 'eol-last': 'off', 'jsx-quotes': 'off',