eslint-config-teselagen 6.0.8 → 6.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/base-config.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ rules: {
3
+ "no-unused-vars": 0,
4
+ "@typescript-eslint/no-unused-vars": [1, { ignoreRestSiblings: true }],
5
+ "no-use-before-define": 0,
6
+ "@typescript-eslint/no-use-before-define": 1,
7
+ },
8
+ };
package/cypress.js CHANGED
@@ -3,13 +3,11 @@ require("@rushstack/eslint-patch/modern-module-resolution");
3
3
  module.exports = {
4
4
  plugins: ["cypress", "no-only-tests", "@typescript-eslint"],
5
5
  parser: "@typescript-eslint/parser",
6
- extends: ["plugin:cypress/recommended"],
6
+ extends: ["plugin:cypress/recommended", "./base-config.js"],
7
7
  env: {
8
8
  "cypress/globals": true,
9
9
  },
10
10
  rules: {
11
11
  "no-only-tests/no-only-tests": [1, { fix: true }],
12
- "no-unused-vars": 0,
13
- "@typescript-eslint/no-unused-vars": [1, { ignoreRestSiblings: true }],
14
12
  },
15
13
  };
@@ -0,0 +1,19 @@
1
+ module.exports = {
2
+ rules: {
3
+ "no-var": 2,
4
+ "no-console": [1, { allow: ["warn", "error", "info"] }],
5
+ "no-debugger": 2,
6
+ "no-empty": [2],
7
+ "no-extra-boolean-cast": 2,
8
+ "no-extra-semi": 1,
9
+ "no-inner-declarations": [2, "functions"],
10
+ "no-undef": 2,
11
+ "no-unneeded-ternary": 1,
12
+ "no-unsafe-negation": 2,
13
+ "import/no-unresolved": 2,
14
+ "import/no-anonymous-default-export": 0,
15
+ "import/named": 2,
16
+ "import/default": 2,
17
+ "prefer-const": [1, { destructuring: "all" }],
18
+ },
19
+ };
package/node.js CHANGED
@@ -1,7 +1,7 @@
1
1
  require("@rushstack/eslint-patch/modern-module-resolution");
2
2
 
3
3
  module.exports = {
4
- extends: "react-app",
4
+ extends: ["react-app", "./base-config.js", "./node-react-config.js"],
5
5
  parser: "@typescript-eslint/parser",
6
6
  plugins: ["@typescript-eslint"],
7
7
  env: {
@@ -10,26 +10,9 @@ module.exports = {
10
10
  mocha: true,
11
11
  },
12
12
  rules: {
13
- "import/no-anonymous-default-export": 0,
14
- "no-undef": 2,
15
- "no-console": [1, { allow: ["warn", "error", "info"] }],
16
13
  "no-redeclare": 2,
17
14
  "comma-dangle": 0,
18
15
  "no-mixed-spaces-and-tabs": 0,
19
16
  "linebreak-style": [0, "unix"],
20
- "no-var": 2,
21
- "no-debugger": 2,
22
- "no-empty": [2],
23
- "no-extra-boolean-cast": 2,
24
- "no-extra-semi": 1,
25
- "no-inner-declarations": [2, "functions"],
26
- "no-unneeded-ternary": 1,
27
- "no-unsafe-negation": 2,
28
- "import/no-unresolved": 2,
29
- "import/named": 2,
30
- "import/default": 2,
31
- "prefer-const": [1, { destructuring: "all" }],
32
- "no-unused-vars": 0,
33
- "@typescript-eslint/no-unused-vars": [1, { ignoreRestSiblings: true }],
34
17
  },
35
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-teselagen",
3
- "version": "6.0.8",
3
+ "version": "6.0.10",
4
4
  "description": "teselagen linter rules",
5
5
  "repository": "https://github.com/TeselaGen/eslint-config-teselagen.git",
6
6
  "author": "teselagen team@teselagen",
@@ -28,5 +28,8 @@
28
28
  "husky": "^0.14.3",
29
29
  "lint-staged": "^7.2.0",
30
30
  "prettier": "^1.13.7"
31
+ },
32
+ "devDependencies": {
33
+ "typescript": "^4.8.4"
31
34
  }
32
35
  }
package/react.js CHANGED
@@ -1,29 +1,12 @@
1
1
  require("@rushstack/eslint-patch/modern-module-resolution");
2
2
 
3
3
  module.exports = {
4
- extends: "react-app",
4
+ extends: ["react-app", "./base-config.js", "./node-react-config.js"],
5
5
  parser: "@typescript-eslint/parser",
6
6
  plugins: ["@typescript-eslint"],
7
7
  rules: {
8
- "import/no-anonymous-default-export": 0,
9
- "no-var": 2,
10
- "no-console": [1, { allow: ["warn", "error", "info"] }],
11
- "no-debugger": 2,
12
- "no-empty": [2],
13
- "no-extra-boolean-cast": 2,
14
- "no-extra-semi": 1,
15
- "no-inner-declarations": [2, "functions"],
16
- "no-undef": 2,
17
- "no-unneeded-ternary": 1,
18
- "no-unsafe-negation": 2,
19
- "import/no-unresolved": 2,
20
- "import/named": 2,
21
8
  "no-const-assign": 2,
22
- "import/default": 2,
23
9
  "react/jsx-boolean-value": 0,
24
10
  "react/jsx-key": 2,
25
- "prefer-const": [1, { destructuring: "all" }],
26
- "no-unused-vars": 0,
27
- "@typescript-eslint/no-unused-vars": [1, { ignoreRestSiblings: true }],
28
11
  },
29
12
  };