@aneuhold/eslint-config 1.1.1 → 1.2.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,14 +1,15 @@
1
1
  {
2
2
  "name": "@aneuhold/eslint-config",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Main ESLint Configuration for personal projects",
5
5
  "main": "./src/ts-lib-config.js",
6
- "packageManager": "yarn@4.9.4",
6
+ "packageManager": "pnpm@10.15.0",
7
7
  "scripts": {
8
8
  "dev": "nodemon -e js --exec \"local-npm publish\"",
9
- "pushpub": "npm version patch && git push",
10
- "upgrade:all": "yarn upgrade --latest",
11
- "lint": "yarn eslint"
9
+ "unpub": "local-npm unpublish",
10
+ "pushpub": "pnpm version patch && git push",
11
+ "upgrade:all": "pnpm update --latest",
12
+ "lint": "pnpm eslint"
12
13
  },
13
14
  "type": "module",
14
15
  "repository": {
@@ -58,7 +59,7 @@
58
59
  "@types/node": "^22.18.0",
59
60
  "eslint": "^9.34.0",
60
61
  "prettier": "^3.6.2",
61
- "svelte": "^5.38.1",
62
+ "svelte": "^5.38.3",
62
63
  "typescript": "^5.9.2"
63
64
  }
64
65
  }
@@ -2,26 +2,21 @@ import js from '@eslint/js';
2
2
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
3
3
  import reactHooks from 'eslint-plugin-react-hooks';
4
4
  import reactRefresh from 'eslint-plugin-react-refresh';
5
- import { defineConfig } from 'eslint/config';
6
5
  import globals from 'globals';
7
6
  import tseslint from 'typescript-eslint';
8
7
 
9
- export default defineConfig([
8
+ export default tseslint.config([
10
9
  {
11
10
  files: ['**/*.{js,jsx,ts,tsx}'],
12
11
  extends: [
13
12
  js.configs.recommended,
14
- tseslint.configs.recommended,
15
13
  reactHooks.configs['recommended-latest'],
16
14
  reactRefresh.configs.vite,
17
15
  eslintPluginPrettierRecommended
18
16
  ],
19
17
  languageOptions: {
20
- ecmaVersion: 2020,
21
18
  globals: globals.browser,
22
19
  parserOptions: {
23
- ecmaVersion: 'latest',
24
- ecmaFeatures: { jsx: true },
25
20
  sourceType: 'module'
26
21
  }
27
22
  },
@@ -29,6 +24,20 @@ export default defineConfig([
29
24
  'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }]
30
25
  }
31
26
  },
27
+ {
28
+ files: ['**/*.{ts,tsx}'],
29
+ extends: [tseslint.configs.strictTypeChecked],
30
+ languageOptions: {
31
+ parser: tseslint.parser,
32
+ globals: globals.browser,
33
+ parserOptions: {
34
+ sourceType: 'module',
35
+ // "project" looks to be deprecated, so use "projectService" instead.
36
+ // See https://typescript-eslint.io/getting-started/typed-linting
37
+ projectService: true
38
+ }
39
+ }
40
+ },
32
41
  {
33
42
  ignores: ['.yarn', 'build', 'dist', 'node_modules', '**/.DS_Store']
34
43
  }
@@ -99,7 +99,6 @@ const svelteConfig = tseslint.config({
99
99
  }
100
100
  },
101
101
  // Svelte Rules
102
- /** @type {import('eslint').Linter.RulesRecord} */
103
102
  rules: {
104
103
  // 'svelte/valid-compile': ['warn']
105
104
  }