@ofk/eslint-config 0.0.10 → 0.0.12

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 CHANGED
@@ -653,7 +653,7 @@ var reactStrict = mergeRules(import_eslint_plugin_react.default.configs.flat.rec
653
653
  "react/jsx-no-leaked-render": ["error", { validStrategies: ["ternary"] }],
654
654
  "react/jsx-no-literals": "off",
655
655
  "react/jsx-no-script-url": ["error", [{ name: "Link", props: ["to"] }]],
656
- "react/jsx-no-useless-fragment": "error",
656
+ "react/jsx-no-useless-fragment": ["error", { allowExpressions: true }],
657
657
  "react/jsx-one-expression-per-line": ["error", { allow: "single-child" }],
658
658
  "react/jsx-pascal-case": ["error", { allowAllCaps: true }],
659
659
  "react/jsx-props-no-multi-spaces": "error",
@@ -965,7 +965,8 @@ var vitestStrict = mergeRules(import_eslint_plugin.default.configs.recommended,
965
965
  "vitest/prefer-comparison-matcher": "error",
966
966
  "vitest/prefer-each": "error",
967
967
  "vitest/prefer-equality-matcher": "error",
968
- "vitest/prefer-expect-assertions": "error",
968
+ "vitest/prefer-expect-assertions": "off",
969
+ // deprecated
969
970
  "vitest/prefer-expect-resolves": "error",
970
971
  "vitest/prefer-hooks-in-order": "error",
971
972
  "vitest/prefer-hooks-on-top": "error",
@@ -1033,7 +1034,8 @@ var unicornRecommended = mergeRules(
1033
1034
  // discarded
1034
1035
  "unicorn/no-for-loop": "off",
1035
1036
  // disallow for-of
1036
- "unicorn/no-keyword-prefix": "error",
1037
+ "unicorn/no-keyword-prefix": ["error", { disallowedPrefixes: ["new"] }],
1038
+ // allow className
1037
1039
  "unicorn/no-magic-array-flat-depth": "off",
1038
1040
  // allow magic numbers
1039
1041
  "unicorn/no-null": "off",
@@ -1044,6 +1046,8 @@ var unicornRecommended = mergeRules(
1044
1046
  // skip validate polyfills
1045
1047
  "unicorn/no-unused-properties": "off",
1046
1048
  // not recommended
1049
+ "unicorn/no-useless-undefined": ["error", { checkArguments: false }],
1050
+ // allow undefined in arguments
1047
1051
  "unicorn/numeric-separators-style": "off",
1048
1052
  // disabled style rules
1049
1053
  "unicorn/prefer-global-this": "off",
package/dist/index.mjs CHANGED
@@ -617,7 +617,7 @@ var reactStrict = mergeRules(pluginReact.configs.flat.recommended ?? {}, {
617
617
  "react/jsx-no-leaked-render": ["error", { validStrategies: ["ternary"] }],
618
618
  "react/jsx-no-literals": "off",
619
619
  "react/jsx-no-script-url": ["error", [{ name: "Link", props: ["to"] }]],
620
- "react/jsx-no-useless-fragment": "error",
620
+ "react/jsx-no-useless-fragment": ["error", { allowExpressions: true }],
621
621
  "react/jsx-one-expression-per-line": ["error", { allow: "single-child" }],
622
622
  "react/jsx-pascal-case": ["error", { allowAllCaps: true }],
623
623
  "react/jsx-props-no-multi-spaces": "error",
@@ -929,7 +929,8 @@ var vitestStrict = mergeRules(pluginVitest.configs.recommended, {
929
929
  "vitest/prefer-comparison-matcher": "error",
930
930
  "vitest/prefer-each": "error",
931
931
  "vitest/prefer-equality-matcher": "error",
932
- "vitest/prefer-expect-assertions": "error",
932
+ "vitest/prefer-expect-assertions": "off",
933
+ // deprecated
933
934
  "vitest/prefer-expect-resolves": "error",
934
935
  "vitest/prefer-hooks-in-order": "error",
935
936
  "vitest/prefer-hooks-on-top": "error",
@@ -997,7 +998,8 @@ var unicornRecommended = mergeRules(
997
998
  // discarded
998
999
  "unicorn/no-for-loop": "off",
999
1000
  // disallow for-of
1000
- "unicorn/no-keyword-prefix": "error",
1001
+ "unicorn/no-keyword-prefix": ["error", { disallowedPrefixes: ["new"] }],
1002
+ // allow className
1001
1003
  "unicorn/no-magic-array-flat-depth": "off",
1002
1004
  // allow magic numbers
1003
1005
  "unicorn/no-null": "off",
@@ -1008,6 +1010,8 @@ var unicornRecommended = mergeRules(
1008
1010
  // skip validate polyfills
1009
1011
  "unicorn/no-unused-properties": "off",
1010
1012
  // not recommended
1013
+ "unicorn/no-useless-undefined": ["error", { checkArguments: false }],
1014
+ // allow undefined in arguments
1011
1015
  "unicorn/numeric-separators-style": "off",
1012
1016
  // disabled style rules
1013
1017
  "unicorn/prefer-global-this": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofk/eslint-config",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "ofk (https://github.com/ofk/)",
@@ -95,13 +95,13 @@
95
95
  },
96
96
  "devDependencies": {
97
97
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
98
- "@eslint/js": "^9.22.0",
98
+ "@eslint/js": "^9.23.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.37",
102
+ "@vitest/eslint-plugin": "^1.1.38",
103
103
  "confusing-browser-globals": "^1.0.11",
104
- "eslint": "^9.22.0",
104
+ "eslint": "^9.23.0",
105
105
  "eslint-config-prettier": "^10.1.1",
106
106
  "eslint-plugin-import": "^2.31.0",
107
107
  "eslint-plugin-jsx-a11y": "^6.10.2",
@@ -120,8 +120,8 @@
120
120
  "prettier-package-json": "^2.8.0",
121
121
  "tsup": "^8.4.0",
122
122
  "typescript": "^5.8.2",
123
- "typescript-eslint": "^8.26.1",
124
- "vitest": "^3.0.8"
123
+ "typescript-eslint": "^8.27.0",
124
+ "vitest": "^3.0.9"
125
125
  },
126
126
  "keywords": [],
127
127
  "lint-staged": {