@10stars/config 4.2.2 → 5.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.
Files changed (2) hide show
  1. package/.eslintrc.js +19 -1
  2. package/package.json +7 -9
package/.eslintrc.js CHANGED
@@ -84,7 +84,7 @@ module.exports = {
84
84
  "import/parsers": { "@typescript-eslint/parser": [`.ts`, `.tsx`] },
85
85
  "import/extensions": [`.ts`, `.tsx`, `.js`, `.jsx`],
86
86
  react: {
87
- version: `17.0.0`, // Tells eslint-plugin-react to automatically detect the version of React to use
87
+ version: `latest`,
88
88
  },
89
89
  },
90
90
  rules: {
@@ -115,6 +115,24 @@ module.exports = {
115
115
  type.warning,
116
116
  { extensions: [`.jsx`, `.tsx`] },
117
117
  ], // also want to use with ".tsx"
118
+ "react/no-invalid-html-attribute": type.error,
119
+ "react/prefer-stateless-function": type.error,
120
+ "react/jsx-boolean-value": [type.error, "never"],
121
+ "react/jsx-curly-brace-presence": [type.error, "always"],
122
+ "react/jsx-fragments": type.error,
123
+ "react/jsx-no-bind": type.error,
124
+ "react/jsx-no-constructed-context-values": type.error,
125
+ "react/jsx-no-script-url": [
126
+ type.error,
127
+ [
128
+ { name: "Link", props: ["to"] },
129
+ { name: "NavLink", props: ["to"] },
130
+ { name: "a", props: ["href", "to"] },
131
+ ],
132
+ ],
133
+ "react/jsx-no-useless-fragment": type.error,
134
+ "react/jsx-no-target-blank": type.error,
135
+ "react/jsx-sort-props": type.error,
118
136
  /**
119
137
  * Hooks
120
138
  */
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "name": "@10stars/config",
7
7
  "description": "10stars.dev Shareable Configs",
8
- "version": "4.2.2",
8
+ "version": "5.1.0",
9
9
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
10
10
  "keywords": [
11
11
  "config"
@@ -24,22 +24,20 @@
24
24
  "lint-rule-timings": "cross-env TIMING=1 npm run lint"
25
25
  },
26
26
  "dependencies": {
27
- "@commitlint/cli": "^15.0.0",
28
- "@commitlint/config-conventional": "^15.0.0",
29
- "@types/aws-lambda": "^8.0.0",
30
- "@types/jest": "^27.0.0",
27
+ "@10stars/eslint-plugin-react-hooks": "^4.0.0",
28
+ "@commitlint/cli": "^16.0.0",
29
+ "@commitlint/config-conventional": "^16.0.0",
31
30
  "@types/lodash": "^4.0.0",
32
- "@types/node": "^16.0.0",
31
+ "@types/node": "^17.0.0",
33
32
  "@types/react": "^17.0.0",
34
33
  "@typescript-eslint/eslint-plugin": "^5.0.0",
35
34
  "@typescript-eslint/parser": "^5.0.0",
36
- "esbuild": "~0.14.1",
37
- "esbuild-register": "^3.0.0",
35
+ "esbuild": "~0.14.23",
36
+ "esbuild-node-loader": "~0.6.5",
38
37
  "eslint": "^8.0.0",
39
38
  "eslint-config-prettier": "^8.0.0",
40
39
  "eslint-plugin-import": "^2.0.0",
41
40
  "eslint-plugin-react": "^7.0.0",
42
- "eslint-plugin-react-hooks": "^4.0.0",
43
41
  "eslint-plugin-regexp": "^1.0.0",
44
42
  "eslint-plugin-simple-import-sort": "^7.0.0",
45
43
  "eslint-plugin-sort-keys-fix": "^1.0.0",