-
Notifications
You must be signed in to change notification settings - Fork 20
/
ESLint-Formatter.sublime-settings
65 lines (57 loc) · 2.22 KB
/
ESLint-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
{
// Simply using `node` without specifying a path sometimes doesn't work :(
// If these are false, we'll invoke the eslint 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 eslint 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 'eslint_path' below)
"local_eslint_path": {
"windows": "node_modules/eslint/bin/eslint.js",
"linux": "node_modules/.bin/eslint",
"osx": "node_modules/.bin/eslint"
},
// The location of the globally installed eslint package to use as a fallback
"eslint_path": {
"windows": "%APPDATA%/npm/node_modules/eslint/bin/eslint",
"linux": "/usr/bin/eslint",
"osx": "/usr/local/bin/eslint"
},
// Specify this path to an eslint config file to override the default behavior.
// Passed to eslint as --config. Read more here:
// http://eslint.org/docs/user-guide/command-line-interface#c---config
// 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 eslint.
//
// Each command should be a string where it supports the following replacements:
// $project_path - The path to the projects root folder
//
// Example:
// ["--parser-options={\"tsconfigRootDir\": \"$project_path\"}"]
"extra_args": [],
// Automatically format when a file is saved.
"format_on_save": false,
// Use --fix-to-stdout, --stdin, and --stdin-filename to update the file if using eslint_d.
// See https://github.com/mantoni/eslint_d.js#automatic-fixing
"fix_to_stdout": false,
// Only attempt to format files with whitelisted extensions on save.
// Leave empty to disable the check
"format_on_save_extensions": [
"js",
"jsx",
"es",
"es6",
"babel"
],
// logs eslint output messages to console when set to true
"debug": false
}