@ethang/eslint-config 18.4.14 → 18.4.16
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 +2 -2
- package/build.mjs +10 -10
- package/eslint.config.js +0 -9
- package/package.json +8 -10
package/README.md
CHANGED
|
@@ -46,8 +46,8 @@ In **eslint.config.js**
|
|
|
46
46
|
```js
|
|
47
47
|
import config from "@ethang/eslint-config/eslint.config.js";
|
|
48
48
|
import tseslint from "typescript-eslint";
|
|
49
|
-
import
|
|
50
|
-
import
|
|
49
|
+
import astroConfig from "@ethang/eslint-config/config.astro.js"; // OPTIONAL
|
|
50
|
+
import reactConfig from "@ethang/eslint-config/config.react.js"; // OPTIONAL
|
|
51
51
|
|
|
52
52
|
export default tseslint.config(...config, ...astroConfig, ...reactConfig, {
|
|
53
53
|
languageOptions: {
|
package/build.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
import { projectBuilder } from
|
|
3
|
-
|
|
4
|
-
await projectBuilder(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})
|
|
1
|
+
// @ts-check
|
|
2
|
+
import { projectBuilder } from "@ethang/project-builder/project-builder.js";
|
|
3
|
+
|
|
4
|
+
await projectBuilder("eslint-config-ethang", "master", {
|
|
5
|
+
isLibrary: true,
|
|
6
|
+
scripts: ["UPDATE", "DEDUPE", "LINT"],
|
|
7
|
+
tsupOptions: {
|
|
8
|
+
bundle: true,
|
|
9
|
+
},
|
|
10
|
+
});
|
package/eslint.config.js
CHANGED
|
@@ -13,7 +13,6 @@ import compat from "eslint-plugin-compat";
|
|
|
13
13
|
import lodashConfig from "eslint-plugin-lodash";
|
|
14
14
|
import tailwind from "eslint-plugin-tailwindcss";
|
|
15
15
|
import stylistic from "@stylistic/eslint-plugin";
|
|
16
|
-
import json from '@eslint/json';
|
|
17
16
|
|
|
18
17
|
export const languageOptions = {
|
|
19
18
|
parser,
|
|
@@ -26,13 +25,6 @@ export const languageOptions = {
|
|
|
26
25
|
export const ignores = ["eslint.config.js", "node_modules", "dist"];
|
|
27
26
|
|
|
28
27
|
export default tseslint.config({
|
|
29
|
-
files: ["**/*.json5", "**/*.jsonc", "**/*.json"],
|
|
30
|
-
ignores,
|
|
31
|
-
plugins: {
|
|
32
|
-
"json/no-duplicate-keys": "error",
|
|
33
|
-
"json/no-empty-keys": "error",
|
|
34
|
-
},
|
|
35
|
-
}, {
|
|
36
28
|
files: ["**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts}"],
|
|
37
29
|
ignores,
|
|
38
30
|
languageOptions,
|
|
@@ -43,7 +35,6 @@ export default tseslint.config({
|
|
|
43
35
|
barrel,
|
|
44
36
|
compat,
|
|
45
37
|
depend,
|
|
46
|
-
json,
|
|
47
38
|
lodash: lodashConfig,
|
|
48
39
|
n,
|
|
49
40
|
perfectionist,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "18.4.
|
|
3
|
+
"version": "18.4.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
7
7
|
"main": "eslint.config.js",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"lint": "eslint
|
|
9
|
+
"lint": "eslint . --fix --ignore-pattern=\".eslint-config-inspector\"",
|
|
10
10
|
"build": "pnpx @eslint/config-inspector build"
|
|
11
11
|
},
|
|
12
12
|
"engines": {
|
|
@@ -16,12 +16,11 @@
|
|
|
16
16
|
"author": "Ethan Glover",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@eslint-react/eslint-plugin": "^1.10.
|
|
19
|
+
"@eslint-react/eslint-plugin": "^1.10.1",
|
|
20
20
|
"@eslint/js": "^9.9.0",
|
|
21
|
-
"@eslint/json": "^0.3.0",
|
|
22
21
|
"@stylistic/eslint-plugin": "^2.6.2",
|
|
23
22
|
"@tanstack/eslint-plugin-query": "^5.51.15",
|
|
24
|
-
"@typescript-eslint/parser": "^8.0
|
|
23
|
+
"@typescript-eslint/parser": "^8.1.0",
|
|
25
24
|
"eslint": "^9.9.0",
|
|
26
25
|
"eslint-plugin-astro": "^1.2.3",
|
|
27
26
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
@@ -37,15 +36,14 @@
|
|
|
37
36
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
38
37
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
39
38
|
"typescript": "^5.5.4",
|
|
40
|
-
"typescript-eslint": "^8.0
|
|
39
|
+
"typescript-eslint": "^8.1.0"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@eslint-react/eslint-plugin": "^1.10.
|
|
42
|
+
"@eslint-react/eslint-plugin": "^1.10.1",
|
|
44
43
|
"@eslint/js": "^9.9.0",
|
|
45
|
-
"@eslint/json": "^0.3.0",
|
|
46
44
|
"@stylistic/eslint-plugin": "^2.6.2",
|
|
47
45
|
"@tanstack/eslint-plugin-query": "^5.51.15",
|
|
48
|
-
"@typescript-eslint/parser": "^8.0
|
|
46
|
+
"@typescript-eslint/parser": "^8.1.0",
|
|
49
47
|
"eslint": "^9.9.0",
|
|
50
48
|
"eslint-plugin-astro": "^1.2.3",
|
|
51
49
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
@@ -61,7 +59,7 @@
|
|
|
61
59
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
62
60
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
63
61
|
"typescript": "^5.5.4",
|
|
64
|
-
"typescript-eslint": "^8.0
|
|
62
|
+
"typescript-eslint": "^8.1.0"
|
|
65
63
|
},
|
|
66
64
|
"devDependencies": {
|
|
67
65
|
"@ethang/project-builder": "^2.3.9",
|