diff options
author | Michael C <[email protected]> | 2022-05-24 21:23:05 -0400 |
---|---|---|
committer | Michael C <[email protected]> | 2022-05-24 21:23:05 -0400 |
commit | d9f4ab0d040d8193fa81c3b51063d869847485ac (patch) | |
tree | 309935f7c1b2ba6e69777b88c19dbe3d7ba515fb | |
parent | 2665327729e926b79a519fca42b132ac51aec10f (diff) | |
download | SponsorBlock-d9f4ab0d040d8193fa81c3b51063d869847485ac.tar.gz SponsorBlock-d9f4ab0d040d8193fa81c3b51063d869847485ac.zip |
specify jest as cjs, change eslintrc to .json
-rw-r--r-- | .eslintrc.js | 35 | ||||
-rw-r--r-- | .eslintrc.json | 33 | ||||
-rw-r--r-- | jest.config.cjs (renamed from jest.config.js) | 0 |
3 files changed, 33 insertions, 35 deletions
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 index ae5eba3f..ae5eba3f 100644 --- a/jest.config.js +++ b/jest.config.cjs |