Skip to content

Commit

Permalink
docs: add disable files
Browse files Browse the repository at this point in the history
  • Loading branch information
mstruebing committed Aug 20, 2018
1 parent 080fdc9 commit 06ecb53
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,28 @@ available options:

It is possible to disable single lines with placing a comment - or theoretically
any other string which includes `editorconfig-disable-line` on that line.
It is planned in future releases to also have the possibility to disable single
rules and also blocks of codes.

Example as it is working now:

```
const x = 'this constant is indented false' // editorconfig-disable-line
const x = 'this constant is indented false'; // editorconfig-disable-line
```

### Disabling files

It is possible to disable files with placing a comment - or theoretically
any other string which includes `editorconfig-disable-file` on the *first line*.

Example as it is working now:

```
// editorconfig-disable-file
const x = 'this constant is indented false';
...
const y = 'everything is indented false';
```


## Default ignores:

```
Expand Down

0 comments on commit 06ecb53

Please sign in to comment.