@ofk/eslint-config 0.0.11 → 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",
@@ -1034,7 +1034,8 @@ var unicornRecommended = mergeRules(
1034
1034
  // discarded
1035
1035
  "unicorn/no-for-loop": "off",
1036
1036
  // disallow for-of
1037
- "unicorn/no-keyword-prefix": "error",
1037
+ "unicorn/no-keyword-prefix": ["error", { disallowedPrefixes: ["new"] }],
1038
+ // allow className
1038
1039
  "unicorn/no-magic-array-flat-depth": "off",
1039
1040
  // allow magic numbers
1040
1041
  "unicorn/no-null": "off",
@@ -1045,6 +1046,8 @@ var unicornRecommended = mergeRules(
1045
1046
  // skip validate polyfills
1046
1047
  "unicorn/no-unused-properties": "off",
1047
1048
  // not recommended
1049
+ "unicorn/no-useless-undefined": ["error", { checkArguments: false }],
1050
+ // allow undefined in arguments
1048
1051
  "unicorn/numeric-separators-style": "off",
1049
1052
  // disabled style rules
1050
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",
@@ -998,7 +998,8 @@ var unicornRecommended = mergeRules(
998
998
  // discarded
999
999
  "unicorn/no-for-loop": "off",
1000
1000
  // disallow for-of
1001
- "unicorn/no-keyword-prefix": "error",
1001
+ "unicorn/no-keyword-prefix": ["error", { disallowedPrefixes: ["new"] }],
1002
+ // allow className
1002
1003
  "unicorn/no-magic-array-flat-depth": "off",
1003
1004
  // allow magic numbers
1004
1005
  "unicorn/no-null": "off",
@@ -1009,6 +1010,8 @@ var unicornRecommended = mergeRules(
1009
1010
  // skip validate polyfills
1010
1011
  "unicorn/no-unused-properties": "off",
1011
1012
  // not recommended
1013
+ "unicorn/no-useless-undefined": ["error", { checkArguments: false }],
1014
+ // allow undefined in arguments
1012
1015
  "unicorn/numeric-separators-style": "off",
1013
1016
  // disabled style rules
1014
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.11",
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": {