Code Duplication    Length = 25-41 lines in 2 locations

src/overrides/tests.js 1 location

@@ 1-41 (lines=41) @@
1
import testEnv from '../env/tests';
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

src/overrides/bin.js 1 location

@@ 1-25 (lines=25) @@
1
export default {
2
    'files'         : [ '**/bin/**', '**/cli/**' ],
3
    'excludedFiles' : [ '*.test.js', 'tests/**' ],
4
    'rules'         : {
5
        'import/no-commonjs' : [ 2, {
6
            'allowPrimitiveModules'   : true,
7
            'allowConditionalRequire' : true
8
        } ],
9
10
        'unicorn/no-process-exit' : 0,
11
        'unicorn/filename-case'   : [
12
            'error',
13
            {
14
                'cases' : {
15
                    'kebabCase' : true
16
                }
17
            }
18
        ],
19
20
        'no-process-exit' : 0,
21
22
        'node/no-process-exit' : 0,
23
        'node/shebang'         : 0
24
    }
25
};
26