eslint-config-tamia 9.6.2 → 9.6.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-config-tamia",
3
3
  "description": "Tâmia ESLint config",
4
- "version": "9.6.2",
4
+ "version": "9.6.4",
5
5
  "engines": {
6
6
  "node": ">=22"
7
7
  },
@@ -21,11 +21,15 @@ export default [
21
21
  // Only apply to files with TypeScript
22
22
  files: ['**/*.{ts,tsx,mts,mtsx,astro}'],
23
23
 
24
- // Apply default TypeScript options and enable type checking
24
+ // Extend default TypeScript options
25
25
  languageOptions: {
26
26
  ...baseConfig.languageOptions,
27
27
  parserOptions: {
28
+ // Enable type support for rule that use types
28
29
  projectService: true,
30
+ // Extra configuration for Astro
31
+ extraFileExtensions: ['.astro'],
32
+ sourceType: 'module',
29
33
  },
30
34
  },
31
35
  plugins: baseConfig.plugins,
@@ -134,9 +138,6 @@ export default [
134
138
  // Enforce using the nullish coalescing operator instead of logical
135
139
  // assignments or chaining
136
140
  '@typescript-eslint/prefer-nullish-coalescing': 'error',
137
- // Require function parameters to be typed as readonly to prevent accidental
138
- // mutation of inputs
139
- '@typescript-eslint/prefer-readonly-parameter-types': 'error',
140
141
  // Enforce using type parameter when calling `Array.reduce()` instead of
141
142
  // using a type assertion
142
143
  '@typescript-eslint/prefer-reduce-type-parameter': 'error',