eslint-config-teselagen 6.0.16 → 6.1.1

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/README.md CHANGED
@@ -3,12 +3,11 @@
3
3
  ## Installation
4
4
 
5
5
  requires v6 of eslint or higher
6
- 1. `yarn add -D eslint eslint-config-teselagen`
6
+ 1. `yarn add -D eslint@8 eslint-config-teselagen`
7
7
 
8
8
  2. Add the following to `.eslintrc.js`
9
9
 
10
10
  ```
11
- require("eslint-config-teselagen/patch");
12
11
  module.exports = {
13
12
  //choose one of the following:
14
13
  extends: "teselagen/react"
package/base-config.js CHANGED
@@ -11,5 +11,18 @@ module.exports = {
11
11
  variables: false,
12
12
  },
13
13
  ],
14
+ "prefer-const": [
15
+ "warn",
16
+ {
17
+ destructuring: "all",
18
+ },
19
+ ],
20
+ },
21
+ settings: {
22
+ "import/resolver": {
23
+ node: {
24
+ extensions: [".ts", ".tsx", ".js", ".jsx"],
25
+ },
26
+ },
14
27
  },
15
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-teselagen",
3
- "version": "6.0.16",
3
+ "version": "6.1.1",
4
4
  "description": "teselagen linter rules",
5
5
  "repository": "https://github.com/TeselaGen/eslint-config-teselagen.git",
6
6
  "author": "teselagen team@teselagen",
@@ -9,25 +9,20 @@
9
9
  "extends": "./node.js"
10
10
  },
11
11
  "dependencies": {
12
- "@rushstack/eslint-patch": "^1.1.0",
13
- "@typescript-eslint/eslint-plugin": "^4.0.0",
14
- "@typescript-eslint/parser": "^4.0.0",
12
+ "@rushstack/eslint-patch": "^1.2.0",
13
+ "@typescript-eslint/eslint-plugin": "^5.55.0",
14
+ "@typescript-eslint/parser": "^5.55.0",
15
15
  "babel-eslint": "^10.0.0",
16
- "eslint": "7.32.0",
17
- "eslint-config-react-app": "^6.0.0",
16
+ "eslint": "8.36.0",
17
+ "eslint-config-react-app": "^7.0.1",
18
18
  "eslint-plugin-cypress": "^2.12.1",
19
- "eslint-plugin-flowtype": "^5.2.0",
20
- "eslint-plugin-import": "^2.22.0",
21
- "eslint-plugin-jsx-a11y": "^6.3.1",
22
- "eslint-plugin-no-only-tests": "^3.0.0",
23
- "eslint-plugin-react": "^7.20.3",
19
+ "eslint-plugin-flowtype": "^8.0.3",
20
+ "eslint-plugin-import": "^2.27.5",
21
+ "eslint-plugin-jsx-a11y": "^6.7.1",
22
+ "eslint-plugin-no-only-tests": "^3.1.0",
23
+ "eslint-plugin-react": "^7.32.2",
24
24
  "eslint-plugin-react-app": "^6.2.2",
25
- "eslint-plugin-react-hooks": "^4.0.8",
26
- "typescript": "4.4.4"
27
- },
28
- "peerDependencies": {
29
- "husky": "^0.14.3",
30
- "lint-staged": "^7.2.0",
31
- "prettier": "^1.13.7"
25
+ "eslint-plugin-react-hooks": "^4.6.0",
26
+ "typescript": "5.0.2"
32
27
  }
33
28
  }
package/react.js CHANGED
@@ -8,5 +8,9 @@ module.exports = {
8
8
  "no-const-assign": 2,
9
9
  "react/jsx-boolean-value": 0,
10
10
  "react/jsx-key": 2,
11
+ "jsx-a11y/anchor-is-valid": "off",
12
+ "react/no-this-in-sfc": "warn",
13
+ "react-hooks/rules-of-hooks": "error"
11
14
  },
15
+
12
16
  };