forked from gajus/eslint-config-canonical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyaml.js
54 lines (54 loc) · 1.29 KB
/
yaml.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
module.exports.recommended = {
files: ['**/*.yaml'],
languageOptions: {
parser: require('yaml-eslint-parser'),
},
plugins: {
yml: require('eslint-plugin-yml'),
},
rules: {
'yml/block-mapping': 2,
'yml/block-mapping-question-indicator-newline': 2,
'yml/block-sequence': [2, 'always'],
'yml/block-sequence-hyphen-indicator-newline': 2,
'yml/flow-mapping-curly-newline': 2,
'yml/flow-mapping-curly-spacing': 2,
'yml/flow-sequence-bracket-newline': 2,
'yml/flow-sequence-bracket-spacing': 2,
'yml/indent': [2, 2],
'yml/key-name-casing': 0,
'yml/key-spacing': 2,
'yml/no-empty-document': 2,
'yml/no-empty-key': 2,
'yml/no-empty-mapping-value': 2,
'yml/no-empty-sequence-entry': 2,
'yml/no-irregular-whitespace': 2,
'yml/no-multiple-empty-lines': [
2,
{
max: 0,
},
],
'yml/no-tab-indent': 2,
'yml/plain-scalar': 0,
'yml/quotes': [
2,
{
avoidEscape: true,
prefer: 'single',
},
],
'yml/require-string-key': 2,
'yml/sort-keys': [
2,
'asc',
{
caseSensitive: false,
natural: true,
},
],
'yml/sort-sequence-values': 0,
'yml/spaced-comment': 2,
'yml/vue-custom-block/no-parsing-error': 2,
},
};