From ffd13ef81fc6f5edb8c05b4e9b179889adb7a195 Mon Sep 17 00:00:00 2001 From: amalcaraz Date: Thu, 9 May 2024 18:36:19 +0200 Subject: [PATCH] fix: change eslint version to json --- .eslintrc.js | 37 ------------------------------------- .eslintrc.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 37 deletions(-) delete mode 100644 .eslintrc.js create mode 100644 .eslintrc.json diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 436a266d..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,37 +0,0 @@ -module.exports = { - env: { - browser: true, - es2021: true - }, - extends: [ - 'eslint:recommended', - 'plugin:react/recommended', - 'plugin:react-hooks/recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - 'plugin:storybook/recommended' - ], - settings: { - react: { - version: 'detect' - } - }, - overrides: [], - parser: '@typescript-eslint/parser', - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module' - }, - plugins: [ - 'react', - '@typescript-eslint', - 'prettier' - ], - rules: { - '@typescript-eslint/no-explicit-any': 0, - '@typescript-eslint/no-inferrable-types': 0, - "prettier/prettier": "error", - "react/no-unknown-property": ['error', { ignore: ['css', 'tw'] }], - "react/prop-types": "off" - } -}; \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..7939d577 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,45 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:react-hooks/recommended", + "plugin:@typescript-eslint/recommended", + "plugin:prettier/recommended", + "plugin:storybook/recommended" + ], + "settings": { + "react": { + "version": "detect" + } + }, + "overrides": [], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "react", + "@typescript-eslint", + "prettier" + ], + "rules": { + "@typescript-eslint/no-explicit-any": 0, + "@typescript-eslint/no-inferrable-types": 0, + "prettier/prettier": "error", + "react/no-unknown-property": [ + "error", + { + "ignore": [ + "css", + "tw" + ] + } + ], + "react/prop-types": "off" + } +} \ No newline at end of file