@mlaursen/eslint-config 6.0.0 → 6.1.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/README.md +1 -1
- package/dist/typescript.js +5 -2
- package/package.json +24 -23
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ export default config(gitignore(import.meta.url), ...configs.frontendTypeCheckin
|
|
|
31
31
|
// const strict = true || process.env.STRICT_TYPING === 'true';
|
|
32
32
|
const strict = process.env.STRICT_TYPING === 'true';
|
|
33
33
|
const frontend = strict ? configs.frontendTypeChecking(import.meta.dirname) : configs.frontend
|
|
34
|
-
export default (gitignore(import.meta.url), ...frontend);
|
|
34
|
+
export default config(gitignore(import.meta.url), ...frontend);
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
The `config` export is the `typescript-eslint.config()` function to provide type
|
package/dist/typescript.js
CHANGED
|
@@ -107,14 +107,17 @@ exports.typescript = __spreadArray(__spreadArray(__spreadArray([], __read(base_1
|
|
|
107
107
|
*/
|
|
108
108
|
var typescriptTypeChecking = function (tsconfigRootDir) { return __spreadArray(__spreadArray(__spreadArray([], __read(exports.typescript), false), __read(typescript_eslint_1.default.configs.strictTypeCheckedOnly), false), [
|
|
109
109
|
{
|
|
110
|
-
name: "".concat(constants_1.BASE_NAME, "/typescript-type-checking"),
|
|
111
|
-
files: constants_1.TS_FILES,
|
|
110
|
+
name: "".concat(constants_1.BASE_NAME, "/typescript-type-checking-language-options"),
|
|
112
111
|
languageOptions: {
|
|
113
112
|
parserOptions: {
|
|
114
113
|
projectService: true,
|
|
115
114
|
tsconfigRootDir: tsconfigRootDir,
|
|
116
115
|
},
|
|
117
116
|
},
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "".concat(constants_1.BASE_NAME, "/typescript-type-checking"),
|
|
120
|
+
files: constants_1.TS_FILES,
|
|
118
121
|
rules: {
|
|
119
122
|
// I do not enable the `noUncheckedIndexedAccess` tsconfig option, so I
|
|
120
123
|
// still need to verify that stuff exists. There are other cases where I
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlaursen/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "An eslint config used by mlaursen for most projects.",
|
|
5
5
|
"repository": "https://github.com/mlaursen/eslint-config.git",
|
|
6
6
|
"author": "Mikkel Laursen <mlaursen03@gmail.com>",
|
|
@@ -20,32 +20,31 @@
|
|
|
20
20
|
"typescript"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@eslint/compat": "^1.2.
|
|
24
|
-
"@eslint/js": "^9.
|
|
25
|
-
"@next/eslint-plugin-next": "^15.
|
|
26
|
-
"@
|
|
27
|
-
"
|
|
28
|
-
"eslint-plugin-jest": "^28.9.0",
|
|
23
|
+
"@eslint/compat": "^1.2.7",
|
|
24
|
+
"@eslint/js": "^9.22.0",
|
|
25
|
+
"@next/eslint-plugin-next": "^15.2.3",
|
|
26
|
+
"@typescript-eslint/utils": "^8.27.0",
|
|
27
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
29
28
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
30
29
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
31
|
-
"eslint-plugin-react": "^7.37.
|
|
32
|
-
"eslint-plugin-react-hooks": "^5.
|
|
33
|
-
"eslint-plugin-testing-library": "^7.1.
|
|
34
|
-
"typescript-eslint": "^8.
|
|
30
|
+
"eslint-plugin-react": "^7.37.4",
|
|
31
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
32
|
+
"eslint-plugin-testing-library": "^7.1.1",
|
|
33
|
+
"typescript-eslint": "^8.27.0"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
|
-
"@changesets/cli": "^2.
|
|
38
|
-
"@inquirer/prompts": "^7.
|
|
39
|
-
"@octokit/core": "^6.1.
|
|
40
|
-
"@types/node": "^22.10
|
|
36
|
+
"@changesets/cli": "^2.28.1",
|
|
37
|
+
"@inquirer/prompts": "^7.4.0",
|
|
38
|
+
"@octokit/core": "^6.1.4",
|
|
39
|
+
"@types/node": "^22.13.10",
|
|
41
40
|
"dotenv": "^16.4.7",
|
|
42
|
-
"eslint": "^9.
|
|
41
|
+
"eslint": "^9.22.0",
|
|
43
42
|
"husky": "^9.1.7",
|
|
44
|
-
"inquirer": "^12.
|
|
45
|
-
"lint-staged": "^15.
|
|
46
|
-
"prettier": "^3.
|
|
47
|
-
"tsx": "^4.19.
|
|
48
|
-
"typescript": "^5.
|
|
43
|
+
"inquirer": "^12.5.0",
|
|
44
|
+
"lint-staged": "^15.5.0",
|
|
45
|
+
"prettier": "^3.5.3",
|
|
46
|
+
"tsx": "^4.19.3",
|
|
47
|
+
"typescript": "^5.8.2"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
50
|
"eslint": ">= 9.0.0",
|
|
@@ -68,10 +67,12 @@
|
|
|
68
67
|
]
|
|
69
68
|
},
|
|
70
69
|
"volta": {
|
|
71
|
-
"node": "22.
|
|
72
|
-
"pnpm": "
|
|
70
|
+
"node": "22.14.0",
|
|
71
|
+
"pnpm": "10.6.5"
|
|
73
72
|
},
|
|
74
73
|
"scripts": {
|
|
74
|
+
"lint": "eslint .",
|
|
75
|
+
"format": "prettier --write .",
|
|
75
76
|
"clean": "rm -rf dist",
|
|
76
77
|
"build": "tsc -p tsconfig.build.json",
|
|
77
78
|
"run-script": "tsx --tsconfig scripts/tsconfig.json",
|