-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
32 lines (31 loc) · 918 Bytes
/
.eslintrc.js
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
module.exports = {
extends: [
'google',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
},
rules: {
indent: ['error', 4],
camelcase: 'off',
'max-len': ['warn', {code: 120}],
'require-jsdoc': 'warn',
'arrow-parens': ['warn', 'as-needed'],
'space-before-function-paren': ['error', {anonymous: 'always', named: 'never'}],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'prefer-const': ['error', {
'destructuring': 'all',
'ignoreReadBeforeAssign': false,
}],
// Doesn't work with TypeScript
'no-unused-vars': 'off',
},
};