Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Docs: update examples on how to disable
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Aug 26, 2015
1 parent 30a8299 commit 502497d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OVERVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Note: the easiest way to use a preset is with the [preset](#preset) option descr
* [WordPress](https://github.com/jscs-dev/node-jscs/blob/master/presets/wordpress.json)https://make.wordpress.org/core/handbook/coding-standards/javascript/
* [Yandex](https://github.com/jscs-dev/node-jscs/blob/master/presets/yandex.json)https://github.com/yandex/codestyle/blob/master/javascript.md

You can specifically disable any preset rule by creating a `.jscsrc` config file and assigning it to null, like so:
You can specifically disable any preset rule by creating a `.jscsrc` config file and assigning it to null or false, like so:
```json
{
"preset": "jquery",
"requireCurlyBraces": null
"requireCurlyBraces": null // or false
}
```

Expand Down Expand Up @@ -90,7 +90,7 @@ checker.configure({
// Use the Google preset, but override or remove some options
checker.configure({
preset: "google",
disallowMultipleLineBreaks: null,
disallowMultipleLineBreaks: null, // or false
validateIndentation: "\t"
});
```
Expand Down Expand Up @@ -236,11 +236,11 @@ Or you can load from it local path or as node module
"preset": "your-preset-node_modules-path"
```

You can specifically disable any preset rule by assigning it to null, like so:
You can specifically disable any preset rule by assigning it to null or false, like so:
```json
{
"preset": "jquery",
"requireCurlyBraces": null
"requireCurlyBraces": null // or false
}
```

Expand Down

0 comments on commit 502497d

Please sign in to comment.