@ofk/eslint-config 0.0.15 → 0.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.
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +23 -18
package/dist/index.js
CHANGED
|
@@ -928,6 +928,7 @@ var vitestStrict = mergeRules(_eslintplugin2.default.configs.recommended, {
|
|
|
928
928
|
"vitest/padding-around-test-blocks": "error",
|
|
929
929
|
"vitest/prefer-called-with": "error",
|
|
930
930
|
"vitest/prefer-comparison-matcher": "error",
|
|
931
|
+
"vitest/prefer-describe-function-title": "error",
|
|
931
932
|
"vitest/prefer-each": "error",
|
|
932
933
|
"vitest/prefer-equality-matcher": "error",
|
|
933
934
|
"vitest/prefer-expect-assertions": "off",
|
|
@@ -967,9 +968,9 @@ function vitest(config) {
|
|
|
967
968
|
var _eslintpluginunicorn = require('eslint-plugin-unicorn'); var _eslintpluginunicorn2 = _interopRequireDefault(_eslintpluginunicorn);
|
|
968
969
|
var unicornRecommended = mergeRules(
|
|
969
970
|
{
|
|
970
|
-
..._eslintpluginunicorn2.default.configs
|
|
971
|
+
..._eslintpluginunicorn2.default.configs.recommended,
|
|
971
972
|
rules: Object.fromEntries(
|
|
972
|
-
Object.entries(_nullishCoalesce(_eslintpluginunicorn2.default.configs
|
|
973
|
+
Object.entries(_nullishCoalesce(_eslintpluginunicorn2.default.configs.recommended.rules, () => ( {}))).filter(
|
|
973
974
|
([_key, value]) => value !== "off"
|
|
974
975
|
)
|
|
975
976
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -928,6 +928,7 @@ var vitestStrict = mergeRules(pluginVitest.configs.recommended, {
|
|
|
928
928
|
"vitest/padding-around-test-blocks": "error",
|
|
929
929
|
"vitest/prefer-called-with": "error",
|
|
930
930
|
"vitest/prefer-comparison-matcher": "error",
|
|
931
|
+
"vitest/prefer-describe-function-title": "error",
|
|
931
932
|
"vitest/prefer-each": "error",
|
|
932
933
|
"vitest/prefer-equality-matcher": "error",
|
|
933
934
|
"vitest/prefer-expect-assertions": "off",
|
|
@@ -967,9 +968,9 @@ function vitest(config) {
|
|
|
967
968
|
import pluginUnicorn from "eslint-plugin-unicorn";
|
|
968
969
|
var unicornRecommended = mergeRules(
|
|
969
970
|
{
|
|
970
|
-
...pluginUnicorn.configs
|
|
971
|
+
...pluginUnicorn.configs.recommended,
|
|
971
972
|
rules: Object.fromEntries(
|
|
972
|
-
Object.entries(pluginUnicorn.configs
|
|
973
|
+
Object.entries(pluginUnicorn.configs.recommended.rules ?? {}).filter(
|
|
973
974
|
([_key, value]) => value !== "off"
|
|
974
975
|
)
|
|
975
976
|
)
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ofk/eslint-config",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ofk (https://github.com/ofk/)",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ofk/eslint-config.git"
|
|
10
|
+
},
|
|
7
11
|
"exports": {
|
|
8
12
|
".": {
|
|
9
13
|
"import": {
|
|
@@ -22,26 +26,27 @@
|
|
|
22
26
|
"scripts": {
|
|
23
27
|
"build": "tsup",
|
|
24
28
|
"prelint": "npm run build",
|
|
25
|
-
"lint": "run-
|
|
29
|
+
"lint": "run-p lint:**",
|
|
26
30
|
"lint:eslint": "eslint --config eslint.config.mjs .",
|
|
27
31
|
"lint:eslint-cjs": "eslint --config eslint.config.cjs .",
|
|
28
32
|
"lint:prettier": "prettier --check .",
|
|
29
33
|
"lint:prettier-package-json": "prettier-package-json --list-different",
|
|
30
34
|
"prelint-fix": "npm run build",
|
|
31
|
-
"lint-fix": "run-s lint-fix
|
|
35
|
+
"lint-fix": "run-s lint-fix:**",
|
|
32
36
|
"lint-fix:eslint": "eslint --config eslint.config.mjs --fix .",
|
|
33
37
|
"lint-fix:prettier": "prettier --write .",
|
|
34
38
|
"lint-fix:prettier-package-json": "prettier-package-json --write",
|
|
39
|
+
"lint-fix:tsc": "run-s lint:tsc",
|
|
35
40
|
"prepare": "husky",
|
|
36
41
|
"prepublishOnly": "npm run build",
|
|
37
|
-
"test": "run-s lint test
|
|
42
|
+
"test": "run-s lint test:**",
|
|
38
43
|
"test:vitest": "vitest run"
|
|
39
44
|
},
|
|
40
45
|
"sideEffects": false,
|
|
41
46
|
"peerDependencies": {
|
|
42
47
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
43
48
|
"@eslint/js": "^9.18.0",
|
|
44
|
-
"@vitest/eslint-plugin": "^1.
|
|
49
|
+
"@vitest/eslint-plugin": "^1.1.41",
|
|
45
50
|
"confusing-browser-globals": "^1.0.1",
|
|
46
51
|
"eslint-plugin-import": "^2.31.0",
|
|
47
52
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
@@ -102,33 +107,33 @@
|
|
|
102
107
|
"@rollup/rollup-linux-x64-gnu": "*"
|
|
103
108
|
},
|
|
104
109
|
"devDependencies": {
|
|
105
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
106
|
-
"@eslint/js": "^9.
|
|
110
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
111
|
+
"@eslint/js": "^9.25.0",
|
|
107
112
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
108
113
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
109
114
|
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
110
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
115
|
+
"@vitest/eslint-plugin": "^1.1.43",
|
|
111
116
|
"confusing-browser-globals": "^1.0.11",
|
|
112
|
-
"eslint": "^9.
|
|
113
|
-
"eslint-config-prettier": "^10.1.
|
|
117
|
+
"eslint": "^9.25.0",
|
|
118
|
+
"eslint-config-prettier": "^10.1.2",
|
|
114
119
|
"eslint-plugin-import": "^2.31.0",
|
|
115
120
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
116
|
-
"eslint-plugin-perfectionist": "^4.
|
|
117
|
-
"eslint-plugin-react": "^7.37.
|
|
121
|
+
"eslint-plugin-perfectionist": "^4.11.0",
|
|
122
|
+
"eslint-plugin-react": "^7.37.5",
|
|
118
123
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
119
124
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
120
|
-
"eslint-plugin-unicorn": "^
|
|
125
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
121
126
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
122
127
|
"globals": "^16.0.0",
|
|
123
128
|
"husky": "^9.1.7",
|
|
124
|
-
"lint-staged": "^15.5.
|
|
129
|
+
"lint-staged": "^15.5.1",
|
|
125
130
|
"npm-run-all": "^4.1.5",
|
|
126
131
|
"prettier": "^3.5.3",
|
|
127
132
|
"prettier-package-json": "^2.8.0",
|
|
128
133
|
"tsup": "^8.4.0",
|
|
129
|
-
"typescript": "^5.8.
|
|
130
|
-
"typescript-eslint": "^8.
|
|
131
|
-
"vitest": "^3.
|
|
134
|
+
"typescript": "^5.8.3",
|
|
135
|
+
"typescript-eslint": "^8.30.1",
|
|
136
|
+
"vitest": "^3.1.2"
|
|
132
137
|
},
|
|
133
138
|
"keywords": [],
|
|
134
139
|
"lint-staged": {
|
|
@@ -142,5 +147,5 @@
|
|
|
142
147
|
"eslint --fix"
|
|
143
148
|
]
|
|
144
149
|
},
|
|
145
|
-
"packageManager": "npm@10.
|
|
150
|
+
"packageManager": "npm@10.9.2+sha512.8ab88f10f224a0c614cb717a7f7c30499014f77134120e9c1f0211ea3cf3397592cbe483feb38e0c4b3be1c54e347292c76a1b5edb94a3289d5448484ab8ac81"
|
|
146
151
|
}
|