-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestutils.js
56 lines (55 loc) · 1.64 KB
/
testutils.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'use strict';
module.exports = {
eslintConfigKeys: {
global: 'global',
single: 'single'
},
eslintRuleNames: {
arrayBracketNewline: 'array-bracket-newline',
capitalizedComments: 'capitalized-comments',
eolLast: 'eol-last',
linebreakStlye: 'linebreak-style',
maxLen: 'max-len',
maxLinesPerFunction: 'max-lines-per-function',
maxStatements: 'max-statements',
multilineCommentStyle: 'multiline-comment-style',
noConsole: 'no-console',
noMagicNumbers: 'no-magic-numbers',
noTrailingSpaces: 'no-trailing-spaces',
noUnusedVars: 'no-unused-vars',
objectCurlyNewline: 'object-curly-newline',
oneVar: 'one-var',
paddedBlocks: 'padded-blocks',
preferDestructuring: 'prefer-destructuring',
preferTemplate: 'prefer-template',
quoteProps: 'quote-props',
requireYield: 'require-yield',
sortKeys: 'sort-keys'
},
eslintRuleOptions: {
always: 'always',
asNeeded: 'as-needed',
consistent: 'consistent',
consistentAsNeeded: 'consistent-as-needed',
never: 'never'
},
eslintRuleOverrides: {
maxStatementsTestFilesOverride: {
testFiles: [
'**/*-tests.js',
'**/*-test.js',
'**/*.tests.js',
'**/*.test.js',
'**/*-spec.js',
'**/*.spec.js',
'**/test/**/*.js',
'**/tests/**/*.js'
]
}
},
eslintRuleSettings: {
error: 'error',
off: 'off',
warn: 'warn'
}
};