-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
58 lines (56 loc) · 1.94 KB
/
eslint.config.js
File metadata and controls
58 lines (56 loc) · 1.94 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// @ts-check
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');
const prettier = require('eslint-plugin-prettier');
const prettierConfig = require('eslint-config-prettier');
module.exports = tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 2020,
sourceType: 'module',
},
},
plugins: {
prettier: prettier,
},
rules: {
...prettierConfig.rules,
'@typescript-eslint/no-explicit-any': 'off', // Many any types in codebase, will fix incrementally
'@typescript-eslint/no-unsafe-assignment': 'off', // Will fix incrementally
'@typescript-eslint/no-unsafe-member-access': 'off', // Will fix incrementally
'@typescript-eslint/no-unsafe-call': 'off', // Will fix incrementally
'@typescript-eslint/no-unsafe-return': 'off', // Will fix incrementally
'@typescript-eslint/no-unsafe-argument': 'off', // Will fix incrementally
'@typescript-eslint/restrict-template-expressions': 'off', // Will fix incrementally
'@typescript-eslint/unbound-method': 'off', // Will fix incrementally
'@typescript-eslint/require-await': 'warn', // Allow async without await
'@typescript-eslint/no-misused-promises': 'warn', // Allow promises in callbacks
'@typescript-eslint/explicit-function-return-type': 'off',
'no-case-declarations': 'off', // Allow declarations in case blocks
'@typescript-eslint/no-unused-vars': [
'warn', // Changed to warn for now
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'prettier/prettier': 'error',
},
},
{
ignores: [
'dist/**',
'node_modules/**',
'*.js',
'src/extension/**',
'compat/**',
'examples/**',
'tests/**',
],
}
);