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
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
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.
|
|
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": "
|
|
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.
|
|
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.
|
|
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.
|
|
63
|
-
"vue-eslint-parser": "^10.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.
|
|
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.
|
|
75
|
+
"typescript": "^5.8.3"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -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
|
]);
|