UNPKG

2.2 kBJavaScriptView Raw
1Object.defineProperty(exports, '__esModule', { value: true })
2
3exports.rules = {
4 'quotemark': {
5 'options': ['single']
6 },
7 'whitespace': [
8 true,
9 'check-branch',
10 'check-decl',
11 'check-operator',
12 'check-module',
13 'check-type',
14 'check-type-operator'
15 ],
16 'no-consecutive-blank-lines': true,
17 'one-variable-per-declaration': [true, 'ignore-for-loop'],
18 'no-conditional-assignment': true,
19 'trailing-comma': [true, { 'multiline': 'always', 'singleline': 'never' }],
20 'semicolon': [true, 'never', 'ignore-interfaces'],
21 'only-arrow-functions': [true, 'allow-named-functions'],
22 'space-before-function-paren': true,
23 'triple-equals': true,
24 'eofline': true,
25 'ter-func-call-spacing': [true, 'never'],
26 'new-parens': true,
27 'no-arg': true,
28 'no-constant-condition': true,
29 'no-control-regex': true,
30 'no-debugger': true,
31 'no-duplicate-case': true,
32 'no-eval': true,
33 'no-ex-assign': true,
34 'no-extra-boolean-cast': true,
35 'no-switch-case-fall-through': true,
36 'no-inner-declarations': [true, 'functions'],
37 'no-invalid-regexp': true,
38 'label-position': true,
39 'ter-no-mixed-spaces-and-tabs': { 'type': 'spaces' },
40 'no-multi-spaces': [true],
41 'ter-no-proto': true,
42 'no-duplicate-variable': [true, 'check-parameters'],
43 'no-regex-spaces': true,
44 'ter-no-self-compare': true,
45 'ter-no-sparse-arrays': [true],
46 'no-trailing-whitespace': true,
47 'no-unnecessary-initializer': true,
48 'no-unsafe-finally': true,
49 'ter-padded-blocks': [false, 'never'],
50 'space-in-parens': [true, 'never'],
51 'comment-format': [true, 'check-space'],
52 'use-isnan': true,
53 'valid-typeof': true,
54 'brace-style': [true, '1tbs'],
55 'curly': true,
56 'no-return-await': true,
57 'class-name': true,
58 'interface-name': [true, 'never-prefix'],
59 'handle-callback-err': [true, '^(err|error)$'],
60 'no-shadowed-variable': [ false ],
61 'ordered-imports': false,
62 'object-literal-sort-keys': false,
63 'member-access': [true],
64 'max-line-length': [true, { limit: 120, 'ignore-pattern': '^const\\s\\w+Regex\\s=' }],
65 'variable-name': [
66 true,
67 'check-format',
68 'allow-pascal-case',
69 'allow-leading-underscore'
70 ]
71}
72
73exports.extends = 'tslint-eslint-rules'