jednano / eclint

Validate or fix code that doesn't adhere to EditorConfig settings or infer settings from existing code.
MIT License
307 stars 28 forks source link

.eclintignore? #80

Closed jonathanong closed 7 years ago

jonathanong commented 7 years ago

i would like to do eclint fix . and use a .eclintignore to ignore node modules, etc. this is similar to how i use eslint.

jednano commented 7 years ago

The only way to ignore things with .editorconfig is like this:

root = true

[*]
indent_size = 4

[*.md]
indent_size = unset

In the example above, Markdown files would be "ignored" like you were hoping.

jonathanong commented 7 years ago

no, i am asking to ignore files checked by this tool. for example, i don't want to check anything in the node_modules folder

jednano commented 7 years ago

Duplicate of #47

gucong3000 commented 7 years ago

use command eclint fix, do not need ., and edit .gitignore. eclint will ignore files defined in here.

silverwind commented 7 years ago

There are examples for when you want to include files in git but want to exclude them from eclint.

I think this is best solved in Editorconfig as oppsed to introducing a separate ignore pattern configuration for eclint, e.g. https://github.com/editorconfig/editorconfig/issues/228.

Kristinita commented 6 years ago

use command eclint fix, do not need ., and edit .gitignore. eclint will ignore files defined in here.

@gucong3000 , I think, it must be in README. Users can long search for how to ignore files.

Thanks.