Repository navigation
Expand file tree
/
Copy patheslint.shared.js
More file actions
65 lines (65 loc) · 1.6 KB
/
Copy patheslint.shared.js
File metadata and controls
65 lines (65 loc) · 1.6 KB
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
57
58
59
60
61
62
63
64
65
module.exports = {
rules: {
'arrow-spacing': 'error',
'comma-spacing': [
'error',
{
after: true,
before: false
}
],
'comma-style': [
'error',
'last'
],
'computed-property-spacing': [
'error',
'never'
],
indent: [
'error',
4
],
'linebreak-style': [
'error',
'unix'
],
'no-array-constructor': 'error',
'no-duplicate-imports': 'error',
'no-mixed-spaces-and-tabs': [
'error',
'smart-tabs'
],
'no-multi-spaces': 'error',
'no-restricted-syntax': [
'error',
{
selector: "VariableDeclaration[kind='const'] > VariableDeclarator[id.name=/^[A-Z][A-Z0-9_]*$/]",
message: 'Constants should use lower camelCase to match the Threat Dragon code style.'
}
],
'no-var': 'error',
'no-whitespace-before-property': 'error',
'prefer-const': 'error',
quotes: [
'error',
'single',
{
allowTemplateLiterals: true,
avoidEscape: true
}
],
semi: 'error',
'semi-spacing': 'error',
'semi-style': [
'error',
'last'
],
'space-in-parens': [
'error',
'never'
],
'space-unary-ops': 'error',
'template-curly-spacing': 'error'
}
};