@10stars/config 11.0.11 → 11.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/.eslintrc.js CHANGED
@@ -61,6 +61,7 @@ module.exports = {
61
61
  `react`,
62
62
  `@10stars/react-hooks`, // https://reactjs.org/docs/hooks-rules.html#eslint-plugin
63
63
  `regexp`,
64
+ `no-relative-import-paths`,
64
65
  `simple-import-sort`,
65
66
  `sort-keys-fix`,
66
67
  ],
@@ -95,6 +96,13 @@ module.exports = {
95
96
  * ESLint core rules
96
97
  */
97
98
  "no-case-declarations": type.ignore, // TypeScript shows us error, if the variable is reused in the same scope, so this rule is not applicable
99
+ /**
100
+ * eslint-plugin-no-relative-import-paths
101
+ */
102
+ "no-relative-import-paths/no-relative-import-paths": [
103
+ type.warning,
104
+ { allowSameFolder: true },
105
+ ],
98
106
  /**
99
107
  * eslint-plugin-import @see https://github.com/benmosher/eslint-plugin-import
100
108
  */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@10stars/config",
7
- "version": "11.0.11",
7
+ "version": "11.1.1",
8
8
  "author": "10stars.dev <web@alexandrov.co> (https://alexandrov.co)",
9
9
  "license": "MIT",
10
10
  "bin": {
@@ -23,6 +23,9 @@
23
23
  "lint": "eslint .",
24
24
  "lint-rule-timings": "cross-env TIMING=1 npm run lint"
25
25
  },
26
+ "comments-dependencies": {
27
+ "tsx": "newer tsx breaks vite"
28
+ },
26
29
  "dependencies": {
27
30
  "@10stars/eslint-plugin-react-hooks": "^4.3.4",
28
31
  "@commitlint/cli": "^19.0.0",
@@ -33,11 +36,12 @@
33
36
  "@typescript-eslint/eslint-plugin": "^7.0.0",
34
37
  "@typescript-eslint/parser": "^7.0.0",
35
38
  "builtin-modules": "^3.3.0",
36
- "esbuild": "~0.20.2",
37
- "tsx": "^4.0.0",
39
+ "esbuild": "~0.21.5",
40
+ "tsx": "4.11.2",
38
41
  "eslint": "^8.0.0",
39
42
  "eslint-config-prettier": "^9.0.0",
40
43
  "eslint-plugin-import": "^2.0.0",
44
+ "eslint-plugin-no-relative-import-paths": "^1.5.4",
41
45
  "eslint-plugin-react": "^7.0.0",
42
46
  "eslint-plugin-regexp": "^2.0.0",
43
47
  "eslint-plugin-simple-import-sort": "^12.0.0",
@@ -46,6 +50,6 @@
46
50
  "husky": "^9.0.0",
47
51
  "prettier": "^3.0.0",
48
52
  "type-fest": "^4.0.0",
49
- "typescript": "5.4.4"
53
+ "typescript": "~5.4.5"
50
54
  }
51
55
  }
package/tsconfig.json CHANGED
@@ -19,6 +19,7 @@
19
19
  "target": "esnext",
20
20
 
21
21
  "jsx": "react-jsx",
22
+ "jsxImportSource": "react",
22
23
  "forceConsistentCasingInFileNames": true,
23
24
 
24
25
  "strict": true,