diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 622e66ad..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,35 +0,0 @@ -module.exports = { - env: { - browser: true, - es2021: true, - node: true, - jest: true, - jasmine: true, - }, - extends: [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:@typescript-eslint/recommended", - ], - parser: "@typescript-eslint/parser", - parserOptions: { - ecmaFeatures: { - jsx: true, - }, - ecmaVersion: 12, - sourceType: "module", - }, - plugins: ["react", "@typescript-eslint"], - rules: { - '@typescript-eslint/no-unused-vars': 'error', - // TODO: Remove warn rules when not needed anymore - "no-self-assign": "off", - "@typescript-eslint/no-empty-interface": "off", - "react/prop-types": [2, { ignore: ['children'] }] - }, - settings: { - react: { - version: "detect", - }, - }, -}; diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..9744cc74 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,33 @@ +{ + "env": { + "browser": true, + "es2021": true, + "node": true, + "jest": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended" + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": 12, + "sourceType": "module" + }, + "plugins": ["react", "@typescript-eslint"], + "rules": { + "@typescript-eslint/no-unused-vars": "error", + "no-self-assign": "off", + "@typescript-eslint/no-empty-interface": "off", + "react/prop-types": [2, { "ignore": ["children"] }] + }, + "settings": { + "react": { + "version": "detect" + } + } +} diff --git a/jest.config.js b/jest.config.cjs similarity index 100% rename from jest.config.js rename to jest.config.cjs