@wildpastry/eslint-config 1.8.2 → 1.8.3

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.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -68,6 +68,27 @@ import wildpastryConfig from '@wildpastry/eslint-config';
68
68
  export default defineConfig([globalIgnores(['dist']), ...wildpastryConfig]);
69
69
  ```
70
70
 
71
+ **For TypeScript projects with type-aware rules:**
72
+
73
+ If you want to use TypeScript type-aware rules, add parser configuration:
74
+
75
+ ```javascript
76
+ import { defineConfig, globalIgnores } from 'eslint/config';
77
+ import wildpastryConfig from '@wildpastry/eslint-config';
78
+
79
+ export default defineConfig([
80
+ globalIgnores(['dist']),
81
+ ...wildpastryConfig,
82
+ {
83
+ languageOptions: {
84
+ parserOptions: {
85
+ project: ['./tsconfig.node.json', './tsconfig.app.json']
86
+ }
87
+ }
88
+ }
89
+ ]);
90
+ ```
91
+
71
92
  ### 6. Add optional scripts to package.json
72
93
 
73
94
  Add these scripts inside `"scripts": { ... }` in your package.json:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildpastry/eslint-config",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "ESLint configuration file",
5
5
  "main": "index.js",
6
6
  "types": "types.d.ts",