-
-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy patheslint.config.js
More file actions
31 lines (30 loc) · 853 Bytes
/
eslint.config.js
File metadata and controls
31 lines (30 loc) · 853 Bytes
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
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';
/** @type {import('@types/eslint').Linter.Config[]} */
export default tseslint.config(
js.configs.recommended,
tseslint.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.jest,
...globals.node,
...globals.es6,
globalThis: false,
TemplateStringsArray: true,
}
},
rules: {
"no-unexpected-multiline": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/ban-ts-comment": "warn"
},
}
);