@ofk/eslint-config 0.0.8 → 0.0.10
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/dist/index.js +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -82,7 +82,8 @@ var importsStrict = mergeRules(
|
|
|
82
82
|
"spec/**",
|
|
83
83
|
"**/__tests__/**",
|
|
84
84
|
"**/__mocks__/**",
|
|
85
|
-
"**/*
|
|
85
|
+
"**/*_{test,spec}.*",
|
|
86
|
+
"**/*.{test,spec,stories}.*",
|
|
86
87
|
"test.*",
|
|
87
88
|
"test-*.*",
|
|
88
89
|
"*.{config,setup,conf}.{js,ts,mjs,mts,cjs,cts}",
|
|
@@ -125,7 +126,8 @@ var importsStrict = mergeRules(
|
|
|
125
126
|
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
126
127
|
"import/dynamic-import-chunkname": "off",
|
|
127
128
|
// don't use webpack
|
|
128
|
-
"import/exports-last": "
|
|
129
|
+
"import/exports-last": "off",
|
|
130
|
+
// discarded
|
|
129
131
|
"import/extensions": [
|
|
130
132
|
"error",
|
|
131
133
|
"ignorePackages",
|
|
@@ -184,6 +186,8 @@ function imports({
|
|
|
184
186
|
"*.{config,setup,conf}.{js,ts,mjs,mts,cjs,cts}",
|
|
185
187
|
"*.{config,setup,conf}.*.{js,ts,mjs,mts,cjs,cts}",
|
|
186
188
|
".*rc.{js,ts,mjs,mts,cjs,cts}",
|
|
189
|
+
".storybook/**/*",
|
|
190
|
+
"**/*.stories.*",
|
|
187
191
|
...defaultExportFiles || []
|
|
188
192
|
],
|
|
189
193
|
rules: {
|
|
@@ -969,6 +973,8 @@ var vitestStrict = mergeRules(import_eslint_plugin.default.configs.recommended,
|
|
|
969
973
|
"vitest/prefer-mock-promise-shorthand": "error",
|
|
970
974
|
"vitest/prefer-snapshot-hint": "error",
|
|
971
975
|
"vitest/prefer-spy-on": "error",
|
|
976
|
+
"vitest/prefer-strict-boolean-matchers": "off",
|
|
977
|
+
// conflict with vitest/prefer-to-be-truthy
|
|
972
978
|
"vitest/prefer-strict-equal": "error",
|
|
973
979
|
"vitest/prefer-to-be": "error",
|
|
974
980
|
"vitest/prefer-to-be-falsy": "error",
|
|
@@ -979,6 +985,7 @@ var vitestStrict = mergeRules(import_eslint_plugin.default.configs.recommended,
|
|
|
979
985
|
"vitest/prefer-todo": "error",
|
|
980
986
|
"vitest/prefer-vi-mocked": "error",
|
|
981
987
|
"vitest/require-hook": "error",
|
|
988
|
+
"vitest/require-mock-type-parameters": "off",
|
|
982
989
|
"vitest/require-to-throw-message": "error",
|
|
983
990
|
"vitest/require-top-level-describe": "error",
|
|
984
991
|
"vitest/valid-expect-in-promise": "error"
|
package/dist/index.mjs
CHANGED
|
@@ -46,7 +46,8 @@ var importsStrict = mergeRules(
|
|
|
46
46
|
"spec/**",
|
|
47
47
|
"**/__tests__/**",
|
|
48
48
|
"**/__mocks__/**",
|
|
49
|
-
"**/*
|
|
49
|
+
"**/*_{test,spec}.*",
|
|
50
|
+
"**/*.{test,spec,stories}.*",
|
|
50
51
|
"test.*",
|
|
51
52
|
"test-*.*",
|
|
52
53
|
"*.{config,setup,conf}.{js,ts,mjs,mts,cjs,cts}",
|
|
@@ -89,7 +90,8 @@ var importsStrict = mergeRules(
|
|
|
89
90
|
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
90
91
|
"import/dynamic-import-chunkname": "off",
|
|
91
92
|
// don't use webpack
|
|
92
|
-
"import/exports-last": "
|
|
93
|
+
"import/exports-last": "off",
|
|
94
|
+
// discarded
|
|
93
95
|
"import/extensions": [
|
|
94
96
|
"error",
|
|
95
97
|
"ignorePackages",
|
|
@@ -148,6 +150,8 @@ function imports({
|
|
|
148
150
|
"*.{config,setup,conf}.{js,ts,mjs,mts,cjs,cts}",
|
|
149
151
|
"*.{config,setup,conf}.*.{js,ts,mjs,mts,cjs,cts}",
|
|
150
152
|
".*rc.{js,ts,mjs,mts,cjs,cts}",
|
|
153
|
+
".storybook/**/*",
|
|
154
|
+
"**/*.stories.*",
|
|
151
155
|
...defaultExportFiles || []
|
|
152
156
|
],
|
|
153
157
|
rules: {
|
|
@@ -933,6 +937,8 @@ var vitestStrict = mergeRules(pluginVitest.configs.recommended, {
|
|
|
933
937
|
"vitest/prefer-mock-promise-shorthand": "error",
|
|
934
938
|
"vitest/prefer-snapshot-hint": "error",
|
|
935
939
|
"vitest/prefer-spy-on": "error",
|
|
940
|
+
"vitest/prefer-strict-boolean-matchers": "off",
|
|
941
|
+
// conflict with vitest/prefer-to-be-truthy
|
|
936
942
|
"vitest/prefer-strict-equal": "error",
|
|
937
943
|
"vitest/prefer-to-be": "error",
|
|
938
944
|
"vitest/prefer-to-be-falsy": "error",
|
|
@@ -943,6 +949,7 @@ var vitestStrict = mergeRules(pluginVitest.configs.recommended, {
|
|
|
943
949
|
"vitest/prefer-todo": "error",
|
|
944
950
|
"vitest/prefer-vi-mocked": "error",
|
|
945
951
|
"vitest/require-hook": "error",
|
|
952
|
+
"vitest/require-mock-type-parameters": "off",
|
|
946
953
|
"vitest/require-to-throw-message": "error",
|
|
947
954
|
"vitest/require-top-level-describe": "error",
|
|
948
955
|
"vitest/valid-expect-in-promise": "error"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ofk/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ofk (https://github.com/ofk/)",
|
|
@@ -95,33 +95,33 @@
|
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
98
|
-
"@eslint/js": "^9.
|
|
98
|
+
"@eslint/js": "^9.22.0",
|
|
99
99
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
100
100
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
101
101
|
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
102
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
102
|
+
"@vitest/eslint-plugin": "^1.1.37",
|
|
103
103
|
"confusing-browser-globals": "^1.0.11",
|
|
104
|
-
"eslint": "^9.
|
|
105
|
-
"eslint-config-prettier": "^10.
|
|
104
|
+
"eslint": "^9.22.0",
|
|
105
|
+
"eslint-config-prettier": "^10.1.1",
|
|
106
106
|
"eslint-plugin-import": "^2.31.0",
|
|
107
107
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
108
|
-
"eslint-plugin-perfectionist": "^4.
|
|
108
|
+
"eslint-plugin-perfectionist": "^4.10.1",
|
|
109
109
|
"eslint-plugin-react": "^7.37.4",
|
|
110
|
-
"eslint-plugin-react-hooks": "^5.
|
|
111
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
112
|
-
"eslint-plugin-unicorn": "^
|
|
110
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
111
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
112
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
113
113
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
114
|
-
"globals": "^
|
|
114
|
+
"globals": "^16.0.0",
|
|
115
115
|
"husky": "^9.1.7",
|
|
116
116
|
"jiti": "^2.4.2",
|
|
117
|
-
"lint-staged": "^15.
|
|
117
|
+
"lint-staged": "^15.5.0",
|
|
118
118
|
"npm-run-all": "^4.1.5",
|
|
119
|
-
"prettier": "^3.
|
|
119
|
+
"prettier": "^3.5.3",
|
|
120
120
|
"prettier-package-json": "^2.8.0",
|
|
121
|
-
"tsup": "^8.
|
|
122
|
-
"typescript": "^5.
|
|
123
|
-
"typescript-eslint": "^8.
|
|
124
|
-
"vitest": "^3.0.
|
|
121
|
+
"tsup": "^8.4.0",
|
|
122
|
+
"typescript": "^5.8.2",
|
|
123
|
+
"typescript-eslint": "^8.26.1",
|
|
124
|
+
"vitest": "^3.0.8"
|
|
125
125
|
},
|
|
126
126
|
"keywords": [],
|
|
127
127
|
"lint-staged": {
|