eslint-config-dolmios 2.0.11 → 2.0.13

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/eslint.config.js +10 -1
  2. package/package.json +15 -15
package/eslint.config.js CHANGED
@@ -1,4 +1,6 @@
1
1
  // eslint.config.js
2
+ // ESLint v9 Flat Config for TypeScript, React, Next.js projects
3
+ // Updated for ESLint 9.39, TypeScript ESLint 8.50, React Hooks 7.0, Next.js 16
2
4
  import js from '@eslint/js';
3
5
  import tseslint from '@typescript-eslint/eslint-plugin';
4
6
  import tsParser from '@typescript-eslint/parser';
@@ -11,7 +13,10 @@ import customRules from './rules.js';
11
13
  import globals from 'globals';
12
14
 
13
15
  export default [
16
+ // Base JavaScript recommended rules
14
17
  js.configs.recommended,
18
+
19
+ // Global ignores
15
20
  {
16
21
  ignores: [
17
22
  '**/node_modules/**',
@@ -31,6 +36,8 @@ export default [
31
36
  '**/next.config.js'
32
37
  ],
33
38
  },
39
+
40
+ // Main configuration for all file types
34
41
  {
35
42
  files: ['**/*.js', '**/*.jsx', '**/*.mjs', '**/*.cjs', '**/*.ts', '**/*.tsx'],
36
43
  languageOptions: {
@@ -63,12 +70,14 @@ export default [
63
70
  },
64
71
  rules: customRules,
65
72
  },
73
+
74
+ // TypeScript-specific configuration with project references
66
75
  {
67
76
  files: ['**/*.ts', '**/*.tsx'],
68
77
  languageOptions: {
69
78
  parserOptions: {
70
79
  project: './tsconfig.json',
71
- tsconfigRootDir: '.',
80
+ tsconfigRootDir: process.cwd(),
72
81
  },
73
82
  },
74
83
  rules: {
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "eslint-config-dolmios",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "A simple ESLint config with Prettier and a couple TSConfig setups",
5
5
  "author": "Jackson Dolman <mail@dolmios.com>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/dolmios/eslint-config-dolmios/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@eslint/js": "^9.34.0",
11
- "@next/eslint-plugin-next": "^15.5.2",
12
- "@typescript-eslint/eslint-plugin": "^8.41.0",
13
- "@typescript-eslint/parser": "^8.41.0",
10
+ "@eslint/js": "^9.39.2",
11
+ "@next/eslint-plugin-next": "^16.0.10",
12
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
13
+ "@typescript-eslint/parser": "^8.50.0",
14
14
  "eslint-plugin-jsx-a11y": "^6.10.2",
15
- "eslint-plugin-perfectionist": "^4.15.0",
15
+ "eslint-plugin-perfectionist": "^4.15.1",
16
16
  "eslint-plugin-react": "^7.37.5",
17
- "eslint-plugin-react-hooks": "^5.2.0",
18
- "globals": "^16.3.0"
17
+ "eslint-plugin-react-hooks": "^7.0.1",
18
+ "globals": "^16.5.0"
19
19
  },
20
20
  "devDependencies": {
21
- "eslint": "^9.34.0",
22
- "next": "^15.5.2",
23
- "prettier": "^3.6.2",
24
- "typescript": "^5.9.2"
21
+ "eslint": "^9.39.2",
22
+ "next": "^16.0.10",
23
+ "prettier": "^3.7.4",
24
+ "typescript": "^5.9.3"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "eslint": "^9.0.0",
@@ -47,11 +47,11 @@
47
47
  "type": "git",
48
48
  "url": "git+https://github.com/dolmios/eslint-config-dolmios.git"
49
49
  },
50
- "type": "module",
51
50
  "scripts": {
52
51
  "lint": "eslint ./test.js",
53
52
  "prettier": "prettier --write ./test.js",
54
53
  "print": "eslint --print-config ./test.js > reference.txt",
55
54
  "tidy": "pnpm lint && pnpm prettier"
56
- }
57
- }
55
+ },
56
+ "type": "module"
57
+ }