Skip to content

Commit 7e712f3

Browse files
committed
Making minimal system that works, but if you change eslint.config.mjs:12 and uncommented it fails
Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
1 parent 57a1ef7 commit 7e712f3

File tree

5 files changed

+1394
-24
lines changed

5 files changed

+1394
-24
lines changed

.eslintignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
!*.js
2+
!*.mjs
3+
!*.cjs
4+
!*.ts
5+
lib/
6+
build/
7+
build-*/
8+
dist/
9+
.vscode/
10+
!.vscode/*.json
11+
12+
node_modules/
13+
coverage/
14+
report/
15+
package-lock.json
16+
.pre-commit-cache
17+
18+
openapi.*
19+
*codequality.json
20+
# **/metadata.* # if linting becomes slow, remove all metadata files

eslint.config.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import eslintPluginAstro from 'eslint-plugin-astro';
2+
import tseslint from "typescript-eslint";
3+
4+
export default [
5+
...tseslint.configs.recommended,
6+
// First issue, eslintPluginAstro MUST be defined after, since it overrides the typescript parser
7+
...eslintPluginAstro.configs['flat/all'],
8+
{
9+
rules: {
10+
// If this is turned on, it fails.
11+
'@typescript-eslint/await-thenable': "off",
12+
// '@typescript-eslint/await-thenable': "error",
13+
// Error: Error while loading rule '@typescript-eslint/await-thenable': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
14+
"@typescript-eslint/no-explicit-any": "error",
15+
},
16+
},
17+
];

0 commit comments

Comments
 (0)