@resolid/config 3.10.2 → 3.10.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.
- package/package.json +9 -9
- package/src/eslint.javascript.js +3 -2
- package/src/eslint.typescript.js +27 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolid/config",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.3",
|
|
4
4
|
"description": "Eslint and Prettier config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"resolid",
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"tsconfig"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint/js": "^9.
|
|
33
|
-
"eslint-plugin-erasable-syntax-only": "^0.
|
|
32
|
+
"@eslint/js": "^9.39.1",
|
|
33
|
+
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
34
34
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
35
35
|
"eslint-plugin-n": "^17.23.1",
|
|
36
36
|
"eslint-plugin-react": "^7.37.5",
|
|
37
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
37
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
38
38
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
39
|
-
"globals": "^16.
|
|
39
|
+
"globals": "^16.5.0",
|
|
40
40
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
41
|
-
"typescript-eslint": "^8.
|
|
41
|
+
"typescript-eslint": "^8.48.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@changesets/cli": "^2.29.7",
|
|
45
45
|
"@commitlint/cli": "^20.1.0",
|
|
46
46
|
"@commitlint/config-conventional": "^20.0.0",
|
|
47
47
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
48
|
-
"eslint": "^9.
|
|
49
|
-
"lefthook": "^
|
|
48
|
+
"eslint": "^9.39.1",
|
|
49
|
+
"lefthook": "^2.0.4",
|
|
50
50
|
"prettier": "^3.6.2",
|
|
51
51
|
"typescript": "^5.9.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"eslint": "^9.
|
|
54
|
+
"eslint": "^9.39.1",
|
|
55
55
|
"prettier": "^3.6.2",
|
|
56
56
|
"typescript": "^5.9.3"
|
|
57
57
|
},
|
package/src/eslint.javascript.js
CHANGED
|
@@ -20,11 +20,12 @@ const config = [
|
|
|
20
20
|
"**/.changeset",
|
|
21
21
|
"**/.history",
|
|
22
22
|
"**/.idea",
|
|
23
|
+
"**/.netlify",
|
|
23
24
|
"**/.output",
|
|
25
|
+
"**/.react-router",
|
|
24
26
|
"**/.resolid",
|
|
27
|
+
"**/.turbo",
|
|
25
28
|
"**/.vercel",
|
|
26
|
-
"**/.netlify",
|
|
27
|
-
"**/.react-router",
|
|
28
29
|
"**/.yarn",
|
|
29
30
|
|
|
30
31
|
"**/.vite-inspect",
|
package/src/eslint.typescript.js
CHANGED
|
@@ -4,30 +4,33 @@ import typescript from "typescript-eslint";
|
|
|
4
4
|
import javascript from "./eslint.javascript.js";
|
|
5
5
|
|
|
6
6
|
/** @type {import("eslint").Linter.Config[]} */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
export default defineConfig(javascript, {
|
|
8
|
+
name: "resolid/typescript",
|
|
9
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
10
|
+
extends: [typescript.configs.recommended, erasableSyntaxOnly.configs.recommended],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
parser: typescript.parser,
|
|
13
|
+
parserOptions: {
|
|
14
|
+
projectService: true,
|
|
15
|
+
},
|
|
14
16
|
},
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
rules: {
|
|
18
|
+
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
19
|
+
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
20
|
+
"@typescript-eslint/prefer-function-type": "error",
|
|
21
|
+
"@typescript-eslint/prefer-for-of": "error",
|
|
22
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
23
|
+
"@typescript-eslint/no-unused-vars": [
|
|
24
|
+
"error",
|
|
25
|
+
{
|
|
26
|
+
args: "all",
|
|
27
|
+
argsIgnorePattern: "^_",
|
|
28
|
+
caughtErrors: "all",
|
|
29
|
+
caughtErrorsIgnorePattern: "^_",
|
|
30
|
+
destructuredArrayIgnorePattern: "^_",
|
|
31
|
+
varsIgnorePattern: "^_",
|
|
32
|
+
ignoreRestSiblings: true,
|
|
21
33
|
},
|
|
22
|
-
|
|
23
|
-
rules: {
|
|
24
|
-
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
25
|
-
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
26
|
-
"@typescript-eslint/prefer-function-type": "error",
|
|
27
|
-
"@typescript-eslint/prefer-for-of": "error",
|
|
28
|
-
"@typescript-eslint/consistent-type-imports": "error",
|
|
29
|
-
},
|
|
34
|
+
],
|
|
30
35
|
},
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
export default config;
|
|
36
|
+
});
|