aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael C <[email protected]>2022-05-24 21:23:05 -0400
committerMichael C <[email protected]>2022-05-24 21:23:05 -0400
commitd9f4ab0d040d8193fa81c3b51063d869847485ac (patch)
tree309935f7c1b2ba6e69777b88c19dbe3d7ba515fb
parent2665327729e926b79a519fca42b132ac51aec10f (diff)
downloadSponsorBlock-d9f4ab0d040d8193fa81c3b51063d869847485ac.tar.gz
SponsorBlock-d9f4ab0d040d8193fa81c3b51063d869847485ac.zip
specify jest as cjs, change eslintrc to .json
-rw-r--r--.eslintrc.js35
-rw-r--r--.eslintrc.json33
-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