diff --git a/.eslintignore b/.eslintignore index d7e670a2..eb5fcc38 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,3 @@ node_modules build *.config.js -.eslintrc.js diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index e616e706..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,37 +0,0 @@ -module.exports = { - root: true, - parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint"], - extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:react/recommended", - "plugin:react/jsx-runtime", - "plugin:react-hooks/recommended", - "prettier", - ], - rules: { - "react/prop-types": "off", - "react/no-unescaped-entities": "off", - "no-console": "error", - }, - overrides: [ - { - files: ["docs/**/*.tsx"], - rules: { - "@typescript-eslint/explicit-module-boundary-types": "off", - }, - }, - { - files: ["scripts/**/*"], - rules: { - "no-console": "off", - }, - }, - ], - settings: { - react: { - version: "detect", - }, - }, -} diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..d6a254aa --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,37 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:react/recommended", + "plugin:react/jsx-runtime", + "plugin:react-hooks/recommended", + "prettier" + ], + "rules": { + "react/prop-types": "off", + "react/no-unescaped-entities": "off", + "no-console": "error" + }, + "overrides": [ + { + "files": ["docs/**/*.tsx"], + "rules": { + "@typescript-eslint/explicit-module-boundary-types": "off" + } + }, + { + "files": ["scripts/**/*"], + "rules": { + "no-console": "off" + } + } + ], + "settings": { + "react": { + "version": "detect" + } + } +}