-
Notifications
You must be signed in to change notification settings - Fork 1
/
StyleLint-Formatter.sublime-settings
86 lines (79 loc) · 2.83 KB
/
StyleLint-Formatter.sublime-settings
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
/**
* Simply using `node` without specifying a path sometimes doesn't work :(
* If these are false, we'll invoke the stylelint binary directly.
* https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
* http://nodejs.org/#download
*/
"node_path": {
"windows": "node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node",
},
/**
* The location to search for a locally installed stylelint package
* These are all relative paths to a project's directory
* If this is not found or are false, it will try to fallback to a global package
* (see "stylelint_path" below)
*/
"local_stylelint_path": {
"windows": "${project_path}/node_modules/stylelint/bin/stylelint.js",
"linux": "${project_path}/node_modules/.bin/stylelint",
"osx": "${project_path}/node_modules/.bin/stylelint",
},
/**
* The location of the user/global installed stylelint package to use as a fallback
*/
"stylelint_path": {
"windows": "%APPDATA%/npm/node_modules/stylelint/bin/stylelint",
"linux": "/usr/bin/stylelint",
"osx": "/usr/local/bin/stylelint",
},
/**
* Specify this path to an stylelint config file to override the default behavior
* Passed to stylelint as --config. Read more here:
* - https://stylelint.io/user-guide/configuration
* If an absolute path is provided, it will use as is.
* Else, it will look for the file in the root of the project directory.
* Failing either, it will skip the config file
*/
"config_path": "",
/**
* Pass additional arguments to stylelint.
* Read more here: https://stylelint.io/user-guide/cli
* Please note that "-q | --quiet | --quiet-deprecation-warnings | --report-descriptionless-disables | --rdd | --report-invalid-scope-disables | --risd | --report-needless-disables | --rd" in `extra_args` will be filtered out (see `debug` below)
*/
"extra_args": [],
/**
* Automatically format when a file is saved
*/
"format_on_save": false,
/**
* Only attempt to format files with whitelisted extensions on save.
* Leave empty to disable the check
*/
"format_on_save_extensions": [
"css",
"sass",
"scss",
"less",
"styl",
],
/**
* Logs stylelint output messages to console when set to true
* Options below will be added to `extra_args` based on `debug` value:
* - false:
* - "--quiet" will be added
* - "--quiet-deprecation-warnings" will be added
* - "--report-descriptionless-disables | --rdd" will be removed
* - "--report-invalid-scope-disables | --risd" will be removed
* - "--report-needless-disables | --rd" will be removed
* - true:
* - "-q | --quiet" will be removed
* - "--quiet-deprecation-warnings" will be removed
* - "--report-descriptionless-disables" will be added
* - "--report-invalid-scope-disables" will be added
* - "--report-needless-disables" will be added
*/
"debug": false,
}