eslint-config-any 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -1,20 +1,13 @@
1
- # ESlint Configuration for Any JS Project
2
-
3
- <p>
4
- <img src="https://img.shields.io/npm/v/eslint-config-any" alt="NPM Latest Version" />
5
-
6
- <img src="https://img.shields.io/npm/dependency-version/eslint-config-any/peer/eslint" alt="Minimum ESlint version" />
7
-
8
- <img src="https://img.shields.io/npm/dependency-version/eslint-config-any/peer/prettier" alt="Minimum Prettier version" />
9
-
10
- <img src="https://img.shields.io/npm/dependency-version/eslint-config-any/peer/typescript" alt="Minimum TypeScript version" />
11
-
12
- <img src="https://img.shields.io/npm/dm/eslint-config-any.svg?style=flat-square" alt="Downloads Count" />
13
-
14
- <img src="https://img.shields.io/github/last-commit/juliolmuller/eslint-config-any?" alt="Last Update Date" />
15
-
16
- <img src="https://img.shields.io/github/license/juliolmuller/eslint-config-any" alt="Project License" />
17
- </p>
1
+ # ESLint Configuration for Any JS Project
2
+
3
+ ![NPM Latest Version](https://img.shields.io/npm/v/eslint-config-any)
4
+ ![Minimum ESLint version](https://img.shields.io/npm/dependency-version/eslint-config-any/peer/eslint)
5
+ ![Minimum Prettier version](https://img.shields.io/npm/dependency-version/eslint-config-any/peer/prettier)
6
+ ![Minimum TypeScript version](https://img.shields.io/npm/dependency-version/eslint-config-any/peer/typescript)
7
+ ![Downloads Count](https://img.shields.io/npm/dm/eslint-config-any.svg)
8
+ ![Test Status](https://img.shields.io/github/actions/workflow/status/juliolmuller/eslint-config-any/publish.yml?label=ci/cd)
9
+ ![Last Update Date](https://img.shields.io/github/last-commit/juliolmuller/eslint-config-any)
10
+ ![Project License](https://img.shields.io/github/license/juliolmuller/eslint-config-any)
18
11
 
19
12
  This package provides strict linting and formatting rules for (almost) all sorts of JavaScript stack projects, like React, Vue, Vanilla, Node and their variants in TypeScript.
20
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-any",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "ESLint configuration for JavaScript, TypeScript, React & Vue projects, by Julio L. Muller",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,7 +33,7 @@
33
33
  "type": "module",
34
34
  "main": "dist/index.js",
35
35
  "scripts": {
36
- "prepare": "husky || true",
36
+ "prepare": "bun x husky",
37
37
  "commit": "git-cz",
38
38
  "lint": "eslint --fix src/ eslint.config.js"
39
39
  },
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
47
- "@eslint/js": "^9.23.0",
47
+ "@eslint/js": "^9.24.0",
48
48
  "@eslint/json": "^0.11.0",
49
49
  "@eslint/markdown": "^6.3.0",
50
50
  "eslint-config-prettier": "^10.1.1",
@@ -54,13 +54,13 @@
54
54
  "eslint-plugin-jsx-a11y": "^6.10.2",
55
55
  "eslint-plugin-perfectionist": "^4.11.0",
56
56
  "eslint-plugin-prettier": "^5.2.6",
57
- "eslint-plugin-react": "^7.37.4",
57
+ "eslint-plugin-react": "^7.37.5",
58
58
  "eslint-plugin-react-hooks": "^5.2.0",
59
59
  "eslint-plugin-regexp": "^2.7.0",
60
60
  "eslint-plugin-vue": "^10.0.0",
61
61
  "globals": "^16.0.0",
62
- "typescript-eslint": "^8.29.0",
63
- "vue-eslint-parser": "^10.1.1"
62
+ "typescript-eslint": "^8.29.1",
63
+ "vue-eslint-parser": "^10.1.3"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@commitlint/cli": "^19.8.0",
@@ -68,10 +68,10 @@
68
68
  "@types/bun": "^1.2.8",
69
69
  "commitizen": "^4.3.1",
70
70
  "cz-conventional-changelog": "^3.3.0",
71
- "eslint": "^9.23.0",
71
+ "eslint": "^9.24.0",
72
72
  "husky": "^9.1.7",
73
73
  "lint-staged": "^15.5.0",
74
74
  "prettier": "^3.5.3",
75
- "typescript": "^5.8.2"
75
+ "typescript": "^5.8.3"
76
76
  }
77
77
  }
@@ -10,5 +10,8 @@ export default defineConfig([
10
10
  languageOptions: {
11
11
  sourceType: 'commonjs',
12
12
  },
13
+ rules: {
14
+ '@typescript-eslint/no-require-imports': 'off',
15
+ },
13
16
  },
14
17
  ]);
@@ -2,6 +2,7 @@ import { defineConfig } from 'eslint/config';
2
2
  import tsEslint from 'typescript-eslint';
3
3
 
4
4
  import { TS, VUE } from '../../utils/index.js';
5
+ import commonjs from '../env/commonjs/index.js';
5
6
  import rules from './rules/index.js';
6
7
 
7
8
  const matchingFilesPattern = [TS, VUE];
@@ -21,4 +22,8 @@ export default defineConfig([
21
22
  ...rules,
22
23
  },
23
24
  },
25
+ {
26
+ ...commonjs[0],
27
+ files: ['**/*.cjs'],
28
+ },
24
29
  ]);