eslint-config-jc 2.0.1 → 2.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-jc",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Josh-Cena's personal coding style",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,11 +17,6 @@
17
17
  "url": "https://github.com/jc-verse/eslint-config-jc/issues"
18
18
  },
19
19
  "homepage": "https://github.com/jc-verse/eslint-config-jc#readme",
20
- "scripts": {
21
- "format": "prettier -w .",
22
- "lint": "eslint \"**/*.{js,ts,jsx,tsx}\"",
23
- "prepare": "husky install"
24
- },
25
20
  "peerDependencies": {
26
21
  "@typescript-eslint/eslint-plugin": "^5.10.2",
27
22
  "@typescript-eslint/parser": "^5.10.2",
@@ -34,20 +29,5 @@
34
29
  },
35
30
  "dependencies": {
36
31
  "eslint-config-prettier": "^8.3.0"
37
- },
38
- "devDependencies": {
39
- "@typescript-eslint/eslint-plugin": "^5.10.2",
40
- "@typescript-eslint/parser": "^5.10.2",
41
- "eslint": "^8.8.0",
42
- "eslint-plugin-header": "^3.1.1",
43
- "eslint-plugin-import": "^2.25.3",
44
- "eslint-plugin-jsx-a11y": "^6.5.1",
45
- "eslint-plugin-react": "^7.27.0",
46
- "eslint-plugin-react-hooks": "^4.3.0",
47
- "husky": "^7.0.4",
48
- "lint-staged": "^12.1.7",
49
- "prettier": "^2.5.1",
50
- "typescript": "^4.5.2"
51
- },
52
- "packageManager": "yarn@3.1.1"
32
+ }
53
33
  }
package/rules/react.js CHANGED
@@ -148,6 +148,10 @@ module.exports = {
148
148
  "react/style-prop-object": "error",
149
149
 
150
150
  "react/void-dom-elements-no-children": "error",
151
+
152
+ 'react-hooks/exhaustive-deps': "error",
153
+
154
+ 'react-hooks/rules-of-hooks': "error",
151
155
  },
152
156
  settings: {
153
157
  react: {
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- node_modules
2
- .yarn
package/.eslintrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": ["./index.js"],
3
- "overrides": [
4
- {
5
- "files": ["rules/**.js"],
6
- "rules": {
7
- "sort-keys": "warn"
8
- }
9
- }
10
- ]
11
- }
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- yarn lint-staged --allow-empty
package/.lintstagedrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "*.{js,ts,jsx,tsx}": [
3
- "eslint --fix"
4
- ],
5
- "*": [
6
- "prettier --ignore-unknown --write"
7
- ]
8
- }
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- .yarn