-
-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
21 lines (21 loc) · 607 Bytes
/
.eslintrc.cjs
File metadata and controls
21 lines (21 loc) · 607 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
extends: ["shellscape/typescript"],
parserOptions: {
project: ["./tsconfig.eslint.json"],
tsconfigRootDir: __dirname,
},
settings: {
// Ensure import/no-unresolved can resolve NodeNext + TS paths where source files
// use .js specifiers that map to .ts during authoring.
'import/resolver': {
typescript: {
// Use the ESLint tsconfig which includes tests
project: './tsconfig.eslint.json',
alwaysTryTypes: true
},
node: {
extensions: ['.js', '.mjs', '.cjs', '.ts', '.mts', '.cts', '.d.ts']
}
}
}
};