@10stars/config 5.2.0 → 5.2.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 +9 -9
  2. package/package.json +2 -2
package/.eslintrc.js CHANGED
@@ -65,6 +65,7 @@ module.exports = {
65
65
  `plugin:@typescript-eslint/recommended`,
66
66
  `plugin:@typescript-eslint/recommended-requiring-type-checking`,
67
67
  `plugin:react/recommended`,
68
+ `plugin:@10stars/react-hooks/recommended`,
68
69
  `plugin:regexp/recommended`,
69
70
 
70
71
  // "plugin:import/typescript",
@@ -83,7 +84,7 @@ module.exports = {
83
84
  "import/parsers": { "@typescript-eslint/parser": [`.ts`, `.tsx`] },
84
85
  "import/extensions": [`.ts`, `.tsx`, `.js`, `.jsx`],
85
86
  react: {
86
- version: `latest`,
87
+ version: `18.0.0`,
87
88
  },
88
89
  },
89
90
  rules: {
@@ -116,11 +117,11 @@ module.exports = {
116
117
  ], // also want to use with ".tsx"
117
118
  "react/no-invalid-html-attribute": type.error,
118
119
  "react/prefer-stateless-function": type.error,
119
- "react/jsx-boolean-value": [type.error, "never"],
120
- "react/jsx-curly-brace-presence": [type.error, "always"],
121
- "react/jsx-fragments": type.error,
122
- "react/jsx-no-bind": type.error,
123
- "react/jsx-no-constructed-context-values": type.error,
120
+ "react/jsx-boolean-value": [type.warning, "never"],
121
+ "react/jsx-curly-brace-presence": [type.warning, "always"],
122
+ "react/jsx-fragments": type.warning,
123
+ "react/jsx-no-bind": type.warning,
124
+ "react/jsx-no-constructed-context-values": type.warning,
124
125
  "react/jsx-no-script-url": [
125
126
  type.error,
126
127
  [
@@ -129,13 +130,12 @@ module.exports = {
129
130
  { name: "a", props: ["href", "to"] },
130
131
  ],
131
132
  ],
132
- "react/jsx-no-useless-fragment": type.error,
133
+ "react/jsx-no-useless-fragment": type.warning,
133
134
  "react/jsx-no-target-blank": type.error,
134
- "react/jsx-sort-props": type.error,
135
+ "react/jsx-sort-props": type.warning,
135
136
  /**
136
137
  * Hooks
137
138
  */
138
- "@10stars/react-hooks/rules-of-hooks": type.error,
139
139
  "@10stars/react-hooks/exhaustive-deps": [
140
140
  type.warning,
141
141
  {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "name": "@10stars/config",
7
7
  "description": "10stars.dev Shareable Configs",
8
- "version": "5.2.0",
8
+ "version": "5.2.3",
9
9
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
10
10
  "keywords": [
11
11
  "config"
@@ -24,7 +24,7 @@
24
24
  "lint-rule-timings": "cross-env TIMING=1 npm run lint"
25
25
  },
26
26
  "dependencies": {
27
- "@10stars/eslint-plugin-react-hooks": "^4.3.3",
27
+ "@10stars/eslint-plugin-react-hooks": "^4.3.4",
28
28
  "@commitlint/cli": "^16.0.0",
29
29
  "@commitlint/config-conventional": "^16.0.0",
30
30
  "@types/lodash": "^4.0.0",