Issues (4)

src/overrides/tests.js (1 issue)

1 View Code Duplication
import testEnv from '../env/tests';
0 ignored issues
show
This code seems to be duplicated in your project.
Loading history...
2
3
export default {
4
    'files'   : [ '*.test.js', '**/tests/**' ],
5
    'env'     : testEnv,
6
    'extends' : [ 'plugin:mocha/recommended' ],
7
    'rules'   : {
8
        'prefer-arrow-callback' : 0,
9
        'no-magic-numbers'      : 0,
10
11
        'security/detect-non-literal-regexp'  : 0,
12
        'security/detect-non-literal-require' : 0,
13
14
        'import/named'   : 0,
15
        'import/default' : 0,
16
17
        'mocha/no-global-tests'          : 0,
18
        'mocha/no-top-level-hooks'       : 0,
19
        'mocha/no-exports'               : 0,
20
        'mocha/no-hooks-for-single-case' : 0,
21
22
        'unicorn/filename-case' : [ 'error', {
23
            'cases' : {
24
                'kebabCase'  : true,
25
                'pascalCase' : true,
26
                'camelCase'  : true // for testing camelCase utils
27
            }
28
        } ],
29
30
        'sonarjs/no-duplicate-string'    : 0,
31
        'sonarjs/no-identical-functions' : 0,
32
33
        'security/detect-unsafe-regex' : 0,
34
        'unicorn/no-unsafe-regex'      : 0,
35
36
        'node/no-unpublished-import'  : 0,
37
        'node/no-unpublished-require' : 0,
38
39
        'regexp/no-super-linear-backtracking' : 0
40
    }
41
};
42