@infinitetoken/eslint-config 0.1.6 → 0.1.7
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 +1 -1
- package/package.json +9 -14
- package/{index.cjs → src/index.cjs} +1 -1
- /package/{npm-package.cjs → src/npm-package.cjs} +0 -0
- /package/{prettier.cjs → src/prettier.cjs} +0 -0
- /package/{react-native.cjs → src/react-native.cjs} +0 -0
- /package/{server.cjs → src/server.cjs} +0 -0
- /package/{vue.cjs → src/vue.cjs} +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Shared ESLint (flat config) and Prettier rules for InfiniteToken TypeScript pack
|
|
|
6
6
|
|
|
7
7
|
| Export | Use for |
|
|
8
8
|
| --- | --- |
|
|
9
|
-
| `@infinitetoken/eslint-config` | Universal core (TS recommended, prettier, import sort); rarely used directly. Always ignores `dist/**`, `node_modules/**`, `lib/**`, `coverage/**`, `**/*.js`, `**/*.mjs`,
|
|
9
|
+
| `@infinitetoken/eslint-config` | Universal core (TS recommended, prettier, import sort); rarely used directly. Always ignores `dist/**`, `node_modules/**`, `lib/**`, `coverage/**`, `**/*.js`, `**/*.mjs`, `.claude/worktrees/**` (a Claude Code artifact directory present across the whole fleet), and `.yalc/**` (yalc-linked packages snapshot their `.d.ts`/`.d.mts` output too, not just compiled JS — those crash the type-aware parser the same as any other out-of-project `.ts` file if not ignored) |
|
|
10
10
|
| `@infinitetoken/eslint-config/npm-package` | Any published npm package with no React Native or server specifics (kits, Node plugins). Also ignores `tsup.config.ts` (a no-op if the package doesn't have one — it sits outside the rootDir-scoped tsconfig most kit packages use, which trips the type-aware parser if linted) and turns off `no-explicit-any` under `**/__tests__/**` and `**/__mocks__/**` — those directories are linted like anywhere else (formatting, import sort, unused vars), not excluded; `any` is just a reasonable choice there for casting fixtures and mocking modules |
|
|
11
11
|
| `@infinitetoken/eslint-config/react-native` | React Native packages; adds `eslint-plugin-react-hooks` and `eslint-plugin-react-native` |
|
|
12
12
|
| `@infinitetoken/eslint-config/server` | Express/server apps; relaxed `no-unused-vars` (`^_` ignore pattern), `no-explicit-any: warn`, skips the `package.json` plugin since these aren't published |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infinitetoken/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Shared ESLint and Prettier configuration for InfiniteToken TypeScript packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -21,20 +21,15 @@
|
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"type": "commonjs",
|
|
23
23
|
"exports": {
|
|
24
|
-
".": "./index.cjs",
|
|
25
|
-
"./npm-package": "./npm-package.cjs",
|
|
26
|
-
"./prettier": "./prettier.cjs",
|
|
27
|
-
"./react-native": "./react-native.cjs",
|
|
28
|
-
"./server": "./server.cjs",
|
|
29
|
-
"./vue": "./vue.cjs"
|
|
24
|
+
".": "./src/index.cjs",
|
|
25
|
+
"./npm-package": "./src/npm-package.cjs",
|
|
26
|
+
"./prettier": "./src/prettier.cjs",
|
|
27
|
+
"./react-native": "./src/react-native.cjs",
|
|
28
|
+
"./server": "./src/server.cjs",
|
|
29
|
+
"./vue": "./src/vue.cjs"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
|
-
"
|
|
33
|
-
"npm-package.cjs",
|
|
34
|
-
"react-native.cjs",
|
|
35
|
-
"server.cjs",
|
|
36
|
-
"vue.cjs",
|
|
37
|
-
"prettier.cjs"
|
|
32
|
+
"src"
|
|
38
33
|
],
|
|
39
34
|
"scripts": {
|
|
40
35
|
"fix": "eslint . --fix",
|
|
@@ -47,7 +42,7 @@
|
|
|
47
42
|
"verify": "npm run lint && npm test",
|
|
48
43
|
"preversion": "npm run verify"
|
|
49
44
|
},
|
|
50
|
-
"prettier": "./prettier.cjs",
|
|
45
|
+
"prettier": "./src/prettier.cjs",
|
|
51
46
|
"dependencies": {
|
|
52
47
|
"@infinitetoken/eslint-config": "^0.1.5",
|
|
53
48
|
"@typescript-eslint/parser": "^8.59.3",
|
|
@@ -15,7 +15,7 @@ module.exports = defineConfig([
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
ignores: ['dist/**', 'node_modules/**', 'lib/**', 'coverage/**', '**/*.js', '**/*.mjs', '.claude/worktrees/**']
|
|
18
|
+
ignores: ['dist/**', 'node_modules/**', 'lib/**', 'coverage/**', '**/*.js', '**/*.mjs', '.claude/worktrees/**', '.yalc/**']
|
|
19
19
|
},
|
|
20
20
|
...tsEslint.configs.recommended,
|
|
21
21
|
prettierRecommended,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{vue.cjs → src/vue.cjs}
RENAMED
|
File without changes
|