From d9f4ab0d040d8193fa81c3b51063d869847485ac Mon Sep 17 00:00:00 2001 From: Michael C Date: Tue, 24 May 2022 21:23:05 -0400 Subject: [PATCH] specify jest as cjs, change eslintrc to .json --- .eslintrc.js | 35 ------------------------------- .eslintrc.json | 33 +++++++++++++++++++++++++++++ jest.config.js => jest.config.cjs | 0 3 files changed, 33 insertions(+), 35 deletions(-) delete mode 100644 .eslintrc.js create mode 100644 .eslintrc.json rename jest.config.js => jest.config.cjs (100%) 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