You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-23Lines changed: 11 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,35 +5,23 @@ SublimeLinter-json
5
5
6
6
This linter plugin for [SublimeLinter](http://sublimelinter.readthedocs.org) provides an interface to the [JSON parser](http://docs.python.org/3/library/json.html?highlight=json.loads#json.loads) built into Sublime Text. It will be used with files that have the “JSON” syntax.
7
7
8
-
To facilitate editing Sublime Text settings files, which may contain comments, this linter allows line comments (//) and multiline block comments (/**/), but they may not appear at the end of a line (after JSON data).
8
+
To facilitate editing Sublime Text settings files, which may contain comments, this linter allows line comments (//) and multiline block comments (`/* */`), but they may not appear at the end of a line (after JSON data).
9
9
10
10
## Installation
11
11
SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions [here](http://sublimelinter.readthedocs.org/en/latest/installation.html).
12
12
13
-
Please use [Package Control](https://sublime.wbond.net/installation) to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.
14
-
15
-
To install via Package Control, do the following:
16
-
17
-
1. Within Sublime Text, bring up the [Command Palette](http://docs.sublimetext.info/en/sublime-text-3/extensibility/command_palette.html) and type `install`. Among the commands you should see `Package Control: Install Package`. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.
18
-
19
-
1. When the plugin list appears, type `json`. Among the entries you should see `SublimeLinter-json`. If that entry is not highlighted, use the keyboard or mouse to select it.
13
+
Please use [Package Control](https://sublime.wbond.net/installation) to install the linter plugin.
20
14
21
15
## Settings
22
-
For general information on how SublimeLinter works with settings, please see [Settings](http://sublimelinter.readthedocs.org/en/latest/settings.html). For information on generic linter settings, please see [Linter Settings](http://sublimelinter.readthedocs.org/en/latest/linter_settings.html).
23
16
24
-
## Contributing
25
-
If you would like to contribute enhancements or fixes, please do the following:
17
+
This linter accepts a `"strict"` setting, which if false uses Sublime Text's "loose" parser so that trailing comma's and comments are accepted.
26
18
27
-
1. Fork the plugin repository.
28
-
1. Hack on a separate topic branch created from the latest `master`.
29
-
1. Commit and push the topic branch.
30
-
1. Make a pull request.
31
-
1. Be patient. ;-)
19
+
```json
20
+
"linters": {
21
+
"json": {
22
+
"strict": false
23
+
}
24
+
}
25
+
```
32
26
33
-
Please note that modications should follow these coding guidelines:
34
-
35
-
- Indent is 4 spaces.
36
-
- Code should pass flake8 and pep257 linters.
37
-
- Vertical whitespace helps readability, don’t be afraid to use it.
38
-
39
-
Thank you for helping out!
27
+
For general information on how SublimeLinter works with settings, please see [Settings](http://sublimelinter.readthedocs.org/en/latest/settings.html). For information on generic linter settings, please see [Linter Settings](http://sublimelinter.readthedocs.org/en/latest/linter_settings.html).
0 commit comments