-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
31 lines (30 loc) · 897 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const typescript = require("@typescript-eslint/eslint-plugin");
const typescriptParser = require("@typescript-eslint/parser");
module.exports = [
{
files: ["**/*.js", "**/*.ts"], // This replaces the --ext option
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": typescript,
},
rules: {
// Your TypeScript-specific rules here
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-explicit-any": "error",
// ... other rules
},
ignores: [
// Add your ignore patterns here, for example:
'**/node_modules/**',
'build/**',
// ... other patterns from your .eslintignore file
],
},
// You can add more configurations for other file types if needed
];