@ofk/eslint-config 0.0.14 → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ofk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # @ofk/eslint-config
2
2
 
3
- @ofk/eslint-config is an eslint config that enables more rules than recommended.
3
+ [![npm](https://img.shields.io/npm/v/@ofk/eslint-config)](https://npmjs.com/package/@ofk/eslint-config)
4
+ ![ci](https://github.com/ofk/eslint-config/actions/workflows/ci.yml/badge.svg)
5
+
6
+ @ofk/eslint-config is an eslint config that enables **more rules than recommended**.
7
+ This is the base for [@ofk/eslint-config-recommend](https://npmjs.com/package/@ofk/eslint-config-recommend).
4
8
 
5
9
  ## Install
6
10
 
package/dist/index.js CHANGED
@@ -477,11 +477,12 @@ var jsxA11yStrict = mergeRules(_eslintpluginjsxa11y2.default.flatConfigs.recomme
477
477
  var _eslintpluginperfectionist = require('eslint-plugin-perfectionist'); var _eslintpluginperfectionist2 = _interopRequireDefault(_eslintpluginperfectionist);
478
478
  var perfectionistRecommended = {
479
479
  ..._eslintpluginperfectionist2.default.configs["recommended-natural"],
480
- rules: Object.fromEntries(
481
- Object.entries(_nullishCoalesce(_eslintpluginperfectionist2.default.configs["recommended-natural"].rules, () => ( {}))).map(
482
- ([name, rule]) => [name, mergeRuleOptions(rule, { ignoreCase: false })]
483
- )
484
- )
480
+ rules: _nullishCoalesce(_eslintpluginperfectionist2.default.configs["recommended-natural"].rules, () => ( {})),
481
+ settings: {
482
+ perfectionist: {
483
+ ignoreCase: false
484
+ }
485
+ }
485
486
  };
486
487
  var perfectionistStrict = mergeRules(
487
488
  perfectionistRecommended,
@@ -927,6 +928,7 @@ var vitestStrict = mergeRules(_eslintplugin2.default.configs.recommended, {
927
928
  "vitest/padding-around-test-blocks": "error",
928
929
  "vitest/prefer-called-with": "error",
929
930
  "vitest/prefer-comparison-matcher": "error",
931
+ "vitest/prefer-describe-function-title": "error",
930
932
  "vitest/prefer-each": "error",
931
933
  "vitest/prefer-equality-matcher": "error",
932
934
  "vitest/prefer-expect-assertions": "off",
@@ -966,9 +968,9 @@ function vitest(config) {
966
968
  var _eslintpluginunicorn = require('eslint-plugin-unicorn'); var _eslintpluginunicorn2 = _interopRequireDefault(_eslintpluginunicorn);
967
969
  var unicornRecommended = mergeRules(
968
970
  {
969
- ..._eslintpluginunicorn2.default.configs["flat/recommended"],
971
+ ..._eslintpluginunicorn2.default.configs.recommended,
970
972
  rules: Object.fromEntries(
971
- Object.entries(_nullishCoalesce(_eslintpluginunicorn2.default.configs["flat/recommended"].rules, () => ( {}))).filter(
973
+ Object.entries(_nullishCoalesce(_eslintpluginunicorn2.default.configs.recommended.rules, () => ( {}))).filter(
972
974
  ([_key, value]) => value !== "off"
973
975
  )
974
976
  )
package/dist/index.mjs CHANGED
@@ -477,11 +477,12 @@ var jsxA11yStrict = mergeRules(pluginJsxA11y.flatConfigs.recommended, {
477
477
  import pluginPerfectionist from "eslint-plugin-perfectionist";
478
478
  var perfectionistRecommended = {
479
479
  ...pluginPerfectionist.configs["recommended-natural"],
480
- rules: Object.fromEntries(
481
- Object.entries(pluginPerfectionist.configs["recommended-natural"].rules ?? {}).map(
482
- ([name, rule]) => [name, mergeRuleOptions(rule, { ignoreCase: false })]
483
- )
484
- )
480
+ rules: pluginPerfectionist.configs["recommended-natural"].rules ?? {},
481
+ settings: {
482
+ perfectionist: {
483
+ ignoreCase: false
484
+ }
485
+ }
485
486
  };
486
487
  var perfectionistStrict = mergeRules(
487
488
  perfectionistRecommended,
@@ -927,6 +928,7 @@ var vitestStrict = mergeRules(pluginVitest.configs.recommended, {
927
928
  "vitest/padding-around-test-blocks": "error",
928
929
  "vitest/prefer-called-with": "error",
929
930
  "vitest/prefer-comparison-matcher": "error",
931
+ "vitest/prefer-describe-function-title": "error",
930
932
  "vitest/prefer-each": "error",
931
933
  "vitest/prefer-equality-matcher": "error",
932
934
  "vitest/prefer-expect-assertions": "off",
@@ -966,9 +968,9 @@ function vitest(config) {
966
968
  import pluginUnicorn from "eslint-plugin-unicorn";
967
969
  var unicornRecommended = mergeRules(
968
970
  {
969
- ...pluginUnicorn.configs["flat/recommended"],
971
+ ...pluginUnicorn.configs.recommended,
970
972
  rules: Object.fromEntries(
971
- Object.entries(pluginUnicorn.configs["flat/recommended"].rules ?? {}).filter(
973
+ Object.entries(pluginUnicorn.configs.recommended.rules ?? {}).filter(
972
974
  ([_key, value]) => value !== "off"
973
975
  )
974
976
  )
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@ofk/eslint-config",
3
- "version": "0.0.14",
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-s lint:*",
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.0.0",
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.4.1",
106
- "@eslint/js": "^9.23.0",
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.38",
115
+ "@vitest/eslint-plugin": "^1.1.43",
111
116
  "confusing-browser-globals": "^1.0.11",
112
- "eslint": "^9.23.0",
113
- "eslint-config-prettier": "^10.1.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.10.1",
117
- "eslint-plugin-react": "^7.37.4",
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": "^57.0.0",
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.0",
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.2",
130
- "typescript-eslint": "^8.27.0",
131
- "vitest": "^3.0.9"
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.8.0+sha512.c21f77b91733829ec70e73cc88b5dc0a4bf685a81d252d3327d293ff7d5dd05a173f4dbeaa037600ec29696f397f14569229e5dab10b7cfc3e0a30575b8f3f8d"
150
+ "packageManager": "npm@10.9.2+sha512.8ab88f10f224a0c614cb717a7f7c30499014f77134120e9c1f0211ea3cf3397592cbe483feb38e0c4b3be1c54e347292c76a1b5edb94a3289d5448484ab8ac81"
146
151
  }