-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (32 loc) · 792 Bytes
/
.eslintrc.js
File metadata and controls
32 lines (32 loc) · 792 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
module.exports = {
env: {
node: true,
es6: true,
jest: true,
},
extends: ['eslint:recommended', 'plugin:flowtype/recommended'],
plugins: ['flowtype', 'jest'],
rules: {
'linebreak-style': ['warn', 'unix'],
'valid-jsdoc': 'error',
'require-jsdoc': [
'error',
{
require: {
FunctionDeclaration: true,
MethodDefinition: true,
ClassDeclaration: true,
ArrowFunctionExpression: true,
FunctionExpression: true,
},
},
],
quotes: ['warn', 'single'],
semi: ['warn', 'always'],
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'warn',
'jest/no-identical-title': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'warn',
},
};