-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
33 lines (32 loc) · 739 Bytes
/
.eslintrc.cjs
File metadata and controls
33 lines (32 loc) · 739 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
32
33
const eslintConfig = {
extends: ['eslint:recommended', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
env: {
es6: true,
node: true,
},
rules: {
'no-console': 0,
strict: 'error',
'import/enforce-node-protocol-usage': ['error', 'always'],
},
overrides: [
{
files: ['**/*.ts'],
extends: [
'eslint:recommended',
'plugin:promise/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/warnings',
'plugin:import/typescript',
'prettier',
],
parser: '@typescript-eslint/parser',
},
],
};
module.exports = eslintConfig;