eslint-config-any 2.3.0 → 2.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-any",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "ESLint configuration for JavaScript, TypeScript, React & Vue projects, by Julio L. Muller",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -28,7 +28,8 @@
28
28
  },
29
29
  "homepage": "https://github.com/LacusSolutions/eslint-config-any#readme",
30
30
  "engines": {
31
- "node": ">=20"
31
+ "node": ">=20",
32
+ "bun": ">=1.3"
32
33
  },
33
34
  "type": "module",
34
35
  "main": "dist/index.js",
@@ -38,40 +39,41 @@
38
39
  "lint": "eslint --fix src/ eslint.config.js"
39
40
  },
40
41
  "peerDependencies": {
41
- "eslint": ">=9.39.2",
42
- "prettier": ">=3.8.0",
43
- "typescript": ">=5.9.3"
42
+ "eslint": ">=9.22.0",
43
+ "prettier": ">=3.5.0",
44
+ "typescript": ">=5.8.0"
44
45
  },
45
46
  "dependencies": {
46
- "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
47
- "@eslint/js": "^9.35.0",
47
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
48
+ "@eslint/js": "^9.39.2",
48
49
  "@eslint/json": "^0.14.0",
49
- "@eslint/markdown": "^7.2.0",
50
+ "@eslint/markdown": "^7.5.1",
50
51
  "eslint-config-prettier": "^10.1.8",
51
- "eslint-plugin-array-func": "^5.0.2",
52
+ "eslint-plugin-array-func": "^5.1.0",
52
53
  "eslint-plugin-import": "^2.32.0",
53
54
  "eslint-plugin-import-helpers": "^2.0.1",
54
55
  "eslint-plugin-jsx-a11y": "^6.10.2",
55
- "eslint-plugin-perfectionist": "^5.3.1",
56
- "eslint-plugin-prettier": "^5.5.4",
56
+ "eslint-plugin-perfectionist": "^5.4.0",
57
+ "eslint-plugin-prettier": "^5.5.5",
57
58
  "eslint-plugin-react": "^7.37.5",
58
59
  "eslint-plugin-react-hooks": "^7.0.1",
59
60
  "eslint-plugin-regexp": "^2.10.0",
60
- "eslint-plugin-vue": "^10.4.0",
61
- "globals": "^17.0.0",
62
- "typescript-eslint": "^8.42.0",
61
+ "eslint-plugin-vue": "^10.7.0",
62
+ "globals": "^17.3.0",
63
+ "prettier-plugin-jsdoc": "^1.8.0",
64
+ "typescript-eslint": "^8.54.0",
63
65
  "vue-eslint-parser": "^10.2.0"
64
66
  },
65
67
  "devDependencies": {
66
- "@commitlint/cli": "^20.3.1",
67
- "@commitlint/config-conventional": "^20.3.1",
68
- "@types/bun": "^1.3.6",
68
+ "@commitlint/cli": "^20.4.1",
69
+ "@commitlint/config-conventional": "^20.4.1",
70
+ "@types/bun": "^1.3.8",
69
71
  "commitizen": "^4.3.1",
70
72
  "cz-conventional-changelog": "^3.3.0",
71
73
  "eslint": "^9.39.2",
72
74
  "husky": "^9.1.7",
73
75
  "lint-staged": "^16.2.7",
74
- "prettier": "^3.8.0",
76
+ "prettier": "^3.8.1",
75
77
  "typescript": "^5.9.3"
76
78
  }
77
79
  }
@@ -22,13 +22,15 @@ import vueConfigs from './vue/index.js';
22
22
 
23
23
  /**
24
24
  * @param {EslintFlatConfig} otherConfigs
25
- * @return {EslintFlatConfig}
25
+ * @returns {EslintFlatConfig}
26
26
  */
27
27
  function mergeConfigs(otherConfigs) {
28
28
  return [...jsConfigs, ...tsConfigs, ...otherConfigs, ...prettierConfigs];
29
29
  }
30
30
 
31
- /** @type {EslintFlatConfigSetup} */
31
+ /**
32
+ * @type {EslintFlatConfigSetup}
33
+ */
32
34
  export default {
33
35
  commonjs: envConfigs.commonjs,
34
36
  jest: envConfigs.jest,
@@ -8,6 +8,10 @@ export default defineConfig([
8
8
  'prettier/prettier': [
9
9
  'warn',
10
10
  {
11
+ plugins: ['prettier-plugin-jsdoc'],
12
+ jsdocCommentLineStrategy: 'multiline',
13
+ jsdocDescriptionWithDot: true,
14
+ jsdocPrintWidth: 80,
11
15
  printWidth: 100,
12
16
  singleQuote: true,
13
17
  },
@@ -9,7 +9,7 @@ import rules from './rules/index.js';
9
9
 
10
10
  const matchingFilesPattern = [JS, TS];
11
11
  const baseReactConfig = reactPlugin.configs.flat.recommended;
12
- const baseReactHooksConfig = reactHooksPlugin.configs['recommended-latest'];
12
+ const baseReactHooksConfig = reactHooksPlugin.configs.flat['recommended-latest'];
13
13
  const baseJsxA11yConfig = jsxA11yPlugin.flatConfigs.recommended;
14
14
 
15
15
  export default defineConfig([