-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.eslintrc.js
More file actions
28 lines (28 loc) · 835 Bytes
/
.eslintrc.js
File metadata and controls
28 lines (28 loc) · 835 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
module.exports = {
env: {
'node': true,
'es6': true
},
extends: [
'plugin:@typescript-eslint/recommended'
],
ignorePatterns: ['*.js'],
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
'ecmaVersion': 6,
'sourceType': 'module'
},
rules: {
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'comma-dangle': ['error', 'always-multiline'],
'eqeqeq': 'error',
'max-len': ['warn', { code: 120, tabWidth: 2 }],
'no-implicit-globals': 'error',
'no-use-before-define': 'off',
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
'space-before-function-paren': ['error', 'never'],
}
}