@jobber/eslint-config 0.10.2 → 0.10.3

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.
Files changed (2) hide show
  1. package/.eslintrc.js +6 -8
  2. package/package.json +16 -13
package/.eslintrc.js CHANGED
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
- env: { browser: true, es6: true, node: true },
2
+ env: { browser: true, es6: true },
3
3
  parser: "@typescript-eslint/parser",
4
4
  extends: [
5
5
  "eslint:recommended",
6
6
  "plugin:react/recommended",
7
7
  "plugin:@typescript-eslint/recommended",
8
- "prettier",
8
+ "prettier/@typescript-eslint",
9
9
  "plugin:prettier/recommended",
10
10
  "plugin:jest/recommended",
11
11
  "plugin:import/typescript",
@@ -58,8 +58,7 @@ module.exports = {
58
58
  ],
59
59
  "@typescript-eslint/no-this-alias": "error",
60
60
  "@typescript-eslint/no-extraneous-class": "error",
61
- "@typescript-eslint/no-use-before-define": "off",
62
- "@typescript-eslint/no-var-requires": "off",
61
+ "@typescript-eslint/no-use-before-define": ["error", { functions: false }],
63
62
  "@typescript-eslint/explicit-function-return-type": "off",
64
63
  "@typescript-eslint/no-unused-vars": "error",
65
64
  "@typescript-eslint/no-non-null-assertion": "error",
@@ -69,7 +68,6 @@ module.exports = {
69
68
  { allowShortCircuit: true },
70
69
  ],
71
70
  "@typescript-eslint/no-empty-function": "error",
72
- "@typescript-eslint/no-shadow": "error",
73
71
  curly: ["error", "multi-line", "consistent"],
74
72
  "prefer-const": "error",
75
73
  "dot-notation": "error",
@@ -79,14 +77,14 @@ module.exports = {
79
77
  "no-bitwise": "error",
80
78
  "no-caller": "error",
81
79
  "no-eval": "error",
82
- "no-shadow": "off",
80
+ "no-shadow": "error",
83
81
  "no-sequences": "error",
84
- "no-new-func": "error",
85
82
  "no-template-curly-in-string": "error",
86
83
  "no-return-await": "error",
87
84
  "no-throw-literal": "error",
85
+ "no-new-func": "error",
88
86
  "no-unused-expressions": "off",
89
- "no-use-before-define": "off",
87
+ "no-use-before-define": ["error", { functions: false, classes: false }],
90
88
  "no-octal-escape": "error",
91
89
  "no-restricted-imports": ["error", { patterns: ["../*"] }],
92
90
  radix: "error",
package/package.json CHANGED
@@ -1,25 +1,28 @@
1
1
  {
2
2
  "name": "@jobber/eslint-config",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "main": ".eslintrc.js",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "patch-eslint-plugin-resolution.js"
8
8
  ],
9
9
  "dependencies": {
10
- "@rushstack/eslint-patch": "^1.2.0",
11
- "@typescript-eslint/eslint-plugin": "^5.55.0",
12
- "@typescript-eslint/parser": "^5.55.0",
13
- "eslint-config-prettier": "^8.7.0",
14
- "eslint-import-resolver-typescript": "^3.5.3",
15
- "eslint-plugin-import": "^2.27.5",
16
- "eslint-plugin-jest": "^27.2.1",
17
- "eslint-plugin-prettier": "^4.2.1",
18
- "eslint-plugin-react": "^7.32.2",
19
- "prettier": "^2.8.4"
10
+ "@rushstack/eslint-patch": "^1.0.2",
11
+ "@typescript-eslint/eslint-plugin": "^2.7.0",
12
+ "@typescript-eslint/parser": "^2.29.0",
13
+ "eslint-config-prettier": "^6.2.0",
14
+ "eslint-import-resolver-typescript": "^1.1.1",
15
+ "eslint-plugin-import": "^2.18.2",
16
+ "eslint-plugin-jest": "^22.17.0",
17
+ "eslint-plugin-prettier": "^3.0.1",
18
+ "eslint-plugin-react": "^7.14.3",
19
+ "prettier": "^2.4.1"
20
+ },
21
+ "devDependencies": {
22
+ "eslint": "^6.3.0"
20
23
  },
21
24
  "peerDependencies": {
22
- "eslint": ">=7.28.0"
25
+ "eslint": "^6.3.0"
23
26
  },
24
- "gitHead": "242a7bd413fd50faa31770a65cd8dc4d698aa928"
27
+ "gitHead": "3cb9aa6368c01699cc418a3da1764a0b39c2569b"
25
28
  }