-
Notifications
You must be signed in to change notification settings - Fork 58
/
.arclint
44 lines (44 loc) · 1.52 KB
/
.arclint
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
{
"linters": {
"phpSyntax": {
"type": "php",
"include": "(\\.php$)"
},
"phpcs": {
"type": "phpcs",
"include": "/local\\/(classes|components)\\/.*\\.php/i",
"exclude": "/local\\/components\\/.*\\/templates\\/.*\\.php/i",
"phpcs.standard": "ruleset.xml",
"flags": ["--encoding=utf-8"],
"severity": {
"PHPCS.W.Generic.Files.LineLength.TooLong": "advice",
"PHPCS.E.Generic.Files.LineLength.MaxExceeded": "advice",
"PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbols": "advice"
},
"bin": ["./vendor/bin/phpcs"]
},
"json": {
"type": "json",
"include": [
"(^\\.arcconfig$)",
"(^\\.arclint$)",
"(\\.json$)"
]
},
"merge-conflict": {
"type": "merge-conflict"
},
"eslint": {
"type": "script-and-regex",
"script-and-regex.script": "sh -c 'node ./node_modules/eslint/bin/eslint.js \"$0\" || true'",
"script-and-regex.regex": "/^(\\h+)(?P<line>\\d+):(?P<char>\\d+)(\\h+)(?P<severity>warning|error)(\\h+)(?P<message>.*)(\\h{2,})(?P<code>.*)$/m",
"include": "/local\\/assets\\/scripts\\/.*\\.(js|vue)/i"
},
"stylelint": {
"type": "script-and-regex",
"script-and-regex.script": "sh -c 'node ./node_modules/stylelint/bin/stylelint.js \"$0\" || true'",
"script-and-regex.regex": "/^(\\h+)(?P<line>\\d+):(?P<char>\\d+)(\\h+)(?P<error>✖)(\\h+)(?P<message>.*)(\\h{1,})(?P<code>.*)$/m",
"include": "/local\\/assets\\/styles\\/.*\\.scss/i"
}
}
}