@jsse/eslint-config 0.8.6 → 0.9.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.8.6",
4
+ "version": "0.9.0",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -19,8 +19,11 @@
19
19
  "types": "./dist/index.d.ts",
20
20
  "import": "./dist/index.js"
21
21
  },
22
- "./package.json": "./package.json",
23
- "./dist/*": "./dist/*"
22
+ "./fixable": {
23
+ "types": "./dist/fixable.d.ts",
24
+ "import": "./dist/fixable.js"
25
+ },
26
+ "./package.json": "./package.json"
24
27
  },
25
28
  "main": "./dist/index.js",
26
29
  "types": "./dist/index.d.ts",
@@ -37,7 +40,6 @@
37
40
  "peerDependencies": {
38
41
  "@eslint-react/eslint-plugin": "^5.6.0",
39
42
  "eslint": "^10.5.0",
40
- "eslint-plugin-react": "^7.37.5",
41
43
  "eslint-plugin-react-hooks": "^7.1.1",
42
44
  "eslint-plugin-react-refresh": "^0.5.0"
43
45
  },
@@ -48,9 +50,6 @@
48
50
  "eslint": {
49
51
  "optional": false
50
52
  },
51
- "eslint-plugin-react": {
52
- "optional": true
53
- },
54
53
  "eslint-plugin-react-hooks": {
55
54
  "optional": true
56
55
  },
@@ -85,7 +84,7 @@
85
84
  "eslint-plugin-react-refresh": "^0.5.3",
86
85
  "eslint-plugin-regexp": "^3.1.1",
87
86
  "eslint-plugin-toml": "^1.4.0",
88
- "eslint-plugin-unicorn": "^69.0.0",
87
+ "eslint-plugin-unicorn": "^70.0.0",
89
88
  "eslint-plugin-unused-imports": "^4.4.1",
90
89
  "eslint-plugin-yml": "^3.5.0",
91
90
  "jsonc-eslint-parser": "^3.1.0",
@@ -95,7 +94,7 @@
95
94
  },
96
95
  "devDependencies": {
97
96
  "@changesets/cli": "^2.31.0",
98
- "@eslint-react/eslint-plugin": "^5.10.0",
97
+ "@eslint-react/eslint-plugin": "^5.10.1",
99
98
  "@jsse/prettier-config": "^1.0.2",
100
99
  "@jsse/tsconfig": "^0.5.1",
101
100
  "@optique/core": "^1.1.1",
@@ -106,14 +105,13 @@
106
105
  "@vitest/eslint-plugin": "^1.6.20",
107
106
  "eslint": "^10.6.0",
108
107
  "eslint-flat-config-utils": "^3.2.0",
109
- "eslint-plugin-react": "^7.37.5",
110
108
  "eslint-typegen": "^2.3.1",
111
109
  "execa": "~9.6.1",
112
110
  "fast-equals": "^6.0.0",
113
111
  "fast-glob": "^3.3.3",
114
112
  "fs-extra": "^11.3.6",
115
113
  "globals": "^17.7.0",
116
- "knip": "^6.23.0",
114
+ "knip": "^6.24.0",
117
115
  "local-pkg": "^1.2.1",
118
116
  "oxfmt": "^0.57.0",
119
117
  "oxlint": "^1.72.0",
@@ -123,16 +121,31 @@
123
121
  "react": "~19.2.7",
124
122
  "rimraf": "^6.1.3",
125
123
  "tsdown": "^0.22.3",
126
- "tsx": "^4.22.4",
124
+ "tsx": "^4.22.5",
127
125
  "typescript": "~6.0.3",
128
- "vitest": "^4.1.9"
126
+ "vitest": "^4.1.9",
127
+ "wireit": "^0.14.13"
129
128
  },
130
129
  "prettier": "@jsse/prettier-config",
130
+ "wireit": {
131
+ "gen": {
132
+ "command": "tsx scripts/gen.ts && prettier -w --cache --object-wrap=collapse src/_generated",
133
+ "files": [
134
+ "scripts/gen.ts",
135
+ "src/**/*.ts",
136
+ "!src/_generated/**",
137
+ "package.json"
138
+ ],
139
+ "output": [
140
+ "src/_generated/**"
141
+ ]
142
+ }
143
+ },
131
144
  "scripts": {
132
145
  "build": "pnpm gen && pnpm build-fast --dts && pnpm build:tsc && eslint .",
133
146
  "build:tsc": "tsc -b tsconfig.build.json",
134
- "build-fast": "tsdown src/index.ts src/cli.ts --format esm --clean",
135
- "gen": "tsx scripts/gen.ts && prettier -w --cache --object-wrap=collapse src/_generated",
147
+ "build-fast": "tsdown --clean",
148
+ "gen": "wireit",
136
149
  "dev": "tsdown src/index.ts --format esm --watch",
137
150
  "fmt": "prettier -w --object-wrap=collapse .",
138
151
  "fmtc": "prettier --check --object-wrap=collapse .",
@@ -1,49 +0,0 @@
1
- import process from "node:process";
2
- //#region src/_generated/version.ts
3
- const VERSION = "0.8.6";
4
- //#endregion
5
- //#region src/const.ts
6
- /**
7
- * CONSTANTS LISTS AND REFERENCES OH MY!
8
- */
9
- const isEnvDebug = () => {
10
- return [
11
- "DEBUG",
12
- "JSSE_DEBUG",
13
- "JSSEDEBUG"
14
- ].some((env) => {
15
- const value = process.env[env];
16
- return [
17
- "1",
18
- "true",
19
- "t",
20
- "on",
21
- "yes",
22
- "y"
23
- ].includes(value ?? "");
24
- });
25
- };
26
- const DEBUG = isEnvDebug();
27
- const SLOW_RULES = [
28
- "@typescript-eslint/no-misused-promises",
29
- "@typescript-eslint/no-redeclare",
30
- "@typescript-eslint/no-unsafe-assignment",
31
- "@typescript-eslint/no-unsafe-call",
32
- "@typescript-eslint/no-unsafe-member-access",
33
- "@typescript-eslint/no-unsafe-return",
34
- "import/no-duplicates",
35
- "jsdoc/check-access",
36
- "jsdoc/check-alignment",
37
- "jsdoc/check-property-names",
38
- "jsdoc/check-types",
39
- "jsdoc/empty-tags",
40
- "jsdoc/multiline-blocks",
41
- "jsdoc/no-multi-asterisks",
42
- "jsdoc/require-property-description",
43
- "jsdoc/require-property-name",
44
- "jsdoc/require-property",
45
- "unicorn/expiring-todo-comments",
46
- "unicorn/no-unnecessary-polyfills"
47
- ];
48
- //#endregion
49
- export { SLOW_RULES as n, VERSION as r, DEBUG as t };