forked from regiomedia/bitrix-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.arclint
38 lines (38 loc) · 1.26 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
{
"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",
"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"
}
}
}