-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.cjs
38 lines (31 loc) · 912 Bytes
/
.eslintrc.cjs
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
module.exports = {
env: {
node: true,
},
extends: ['eslint:recommended', 'prettier', 'plugin:@typescript-eslint/recommended'],
plugins: ['prettier', '@typescript-eslint'],
ignorePatterns: [
// don't ignore dot files so config files get linted
'!.*.js',
'!.*.cjs',
'!.*.mjs',
// take the place of `.eslintignore`
'dist/',
'generated/',
'node_modules/',
],
// this is a hack to make sure eslint will look at all of the file extensions we
// care about without having to put it on the command line
overrides: [
{
files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs', '**/*.ts', '**/*.tsx'],
},
],
parser: '@typescript-eslint/parser',
rules: {
'prettier/prettier': ['error'],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/prefer-as-const': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
};