@10stars/config 6.1.0 → 7.0.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/.eslintrc.js +8 -0
- package/package.json +4 -3
package/.eslintrc.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const builtinModules = require("builtin-modules")
|
|
1
2
|
/**
|
|
2
3
|
* @todo
|
|
3
4
|
* - prohibit "whiteSpace" style rule
|
|
@@ -68,6 +69,7 @@ module.exports = {
|
|
|
68
69
|
`plugin:@10stars/react-hooks/recommended`,
|
|
69
70
|
`plugin:regexp/recommended`,
|
|
70
71
|
|
|
72
|
+
// We use only few custom rules from the import plugin and we override some aspects with simple-import-sort
|
|
71
73
|
// "plugin:import/typescript",
|
|
72
74
|
// "plugin:import/warnings",
|
|
73
75
|
// "plugin:import/errors",
|
|
@@ -98,6 +100,10 @@ module.exports = {
|
|
|
98
100
|
"import/order": type.ignore, // turn off in favor of eslint-plugin-simple-import-sort
|
|
99
101
|
"import/no-unresolved": type.ignore,
|
|
100
102
|
"import/no-duplicates": type.warning,
|
|
103
|
+
"import/no-nodejs-modules": [
|
|
104
|
+
type.error,
|
|
105
|
+
{ allow: builtinModules.map((v) => `node:${v}`) },
|
|
106
|
+
],
|
|
101
107
|
/**
|
|
102
108
|
* eslint-plugin-simple-import-sort
|
|
103
109
|
*/
|
|
@@ -109,6 +115,8 @@ module.exports = {
|
|
|
109
115
|
*/
|
|
110
116
|
"react/display-name": type.ignore,
|
|
111
117
|
"react/no-children-prop": type.ignore,
|
|
118
|
+
/** we ignore CSS, because we use Emotion @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md#rule-options */
|
|
119
|
+
"react/no-unknown-property": [type.error, { ignore: [`css`] }],
|
|
112
120
|
"react/prop-types": type.ignore,
|
|
113
121
|
"react/react-in-jsx-scope": type.ignore,
|
|
114
122
|
"react/jsx-filename-extension": [
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"name": "@10stars/config",
|
|
7
7
|
"description": "10stars.dev Shareable Configs",
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "7.0.0",
|
|
9
9
|
"author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
|
|
10
10
|
"keywords": ["config"],
|
|
11
11
|
"license": "MIT",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"@types/react": "^18.0.0",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
32
32
|
"@typescript-eslint/parser": "^5.0.0",
|
|
33
|
-
"
|
|
33
|
+
"builtin-modules": "^3.3.0",
|
|
34
|
+
"esbuild": "~0.15.10",
|
|
34
35
|
"tsx": "^3.8.0",
|
|
35
36
|
"eslint": "^8.0.0",
|
|
36
37
|
"eslint-config-prettier": "^8.0.0",
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"eslint-watch": "^8.0.0",
|
|
43
44
|
"husky": "^8.0.0",
|
|
44
45
|
"prettier": "^2.0.0",
|
|
45
|
-
"type-fest": "^
|
|
46
|
+
"type-fest": "^3.0.0",
|
|
46
47
|
"typescript": "^4.8.2"
|
|
47
48
|
}
|
|
48
49
|
}
|