@@ -11,7 +11,12 @@ extends:
11
11
- plugin:import/errors
12
12
- plugin:import/warnings
13
13
- prettier
14
- parser : " @babel/eslint-parser"
14
+ overrides :
15
+ - files :
16
+ - ' *.yml'
17
+ - ' *.yaml'
18
+ parser : ' yaml-eslint-parser'
19
+ parser : ' @babel/eslint-parser'
15
20
parserOptions :
16
21
requireConfigFile : false
17
22
sourceType : module
@@ -20,36 +25,41 @@ plugins:
20
25
- lodash
21
26
- import
22
27
- prettier
28
+ - yml
23
29
rules :
24
- linebreak-style : [ error, unix ]
25
- semi : [ error, always ]
26
- quotes : [ error, single, { avoidEscape: true } ]
30
+ linebreak-style : [error, unix]
31
+ semi : [error, always]
32
+ quotes : [error, single, { avoidEscape: true }]
27
33
no-mixed-spaces-and-tabs : error
28
34
space-before-blocks : error
29
35
arrow-spacing : error
30
- key-spacing : [ error, { afterColon: true, mode: minimum } ]
31
- brace-style : [ error, '1tbs' ]
32
- comma-spacing : [ error, { before: false, after: true } ]
33
- comma-style : [ error, last, { exceptions: { VariableDeclaration: true } } ]
34
- computed-property-spacing : [ error, never ]
35
- object-curly-spacing : [ error, always ]
36
+ key-spacing : [error, { afterColon: true, mode: minimum }]
37
+ brace-style : [error, '1tbs']
38
+ comma-spacing : [error, { before: false, after: true }]
39
+ comma-style : [error, last, { exceptions: { VariableDeclaration: true } }]
40
+ computed-property-spacing : [error, never]
41
+ object-curly-spacing : [error, always]
36
42
prefer-const : error
37
43
no-var : error
38
44
promise/no-nesting : off
39
45
import/first : error
40
46
import/newline-after-import : error
41
47
import/no-named-as-default : off
42
- import/no-extraneous-dependencies : [ error, { devDependencies: true } ]
48
+ import/no-extraneous-dependencies : [error, { devDependencies: true }]
43
49
lodash/import-scope : off
44
50
lodash/preferred-alias : off
45
51
lodash/prop-shorthand : off
46
- lodash/prefer-lodash-method : [ error, { ignoreObjects: [ BbPromise, path ] } ]
47
- max-len : [ error, { code: 120, ignoreStrings: true, ignoreComments: true, ignoreTemplateLiterals: true } ]
48
- prettier/prettier : [ error, {
49
- printWidth : 120,
50
- arrowParens : ' avoid' ,
51
- bracketSpacing : true,
52
- semi : true,
53
- singleQuote : true,
54
- trailingComma : ' none' ,
55
- } ]
52
+ lodash/prefer-lodash-method : [error, { ignoreObjects: [BbPromise, path] }]
53
+ max-len : [error, { code: 120, ignoreStrings: true, ignoreComments: true, ignoreTemplateLiterals: true }]
54
+ prettier/prettier :
55
+ [
56
+ error,
57
+ {
58
+ printWidth : 120,
59
+ arrowParens : ' avoid' ,
60
+ bracketSpacing : true,
61
+ semi : true,
62
+ singleQuote : true,
63
+ trailingComma : ' none'
64
+ }
65
+ ]
0 commit comments