yujinakayama / atom-lint

Obsolete: Generic code linting support for Atom
https://atom.io/packages/atom-lint
MIT License
111 stars 33 forks source link

CSSLint does not read csslintrc file, can only use command-line flags. #54

Closed elrolito closed 10 years ago

elrolito commented 10 years ago

This seems to be an issue with CSSLint itself. There currently isn't a way to set this up.

yujinakayama commented 10 years ago

Though I haven't confirmed yet, I guess the cause that csslint does not read .csslintrc is that currently atom-lint runs csslint in the root directory rather than the project root directory. I'll try later.

The CSS Lint CLI always checks the current working directory to see if there is a .csslintrc file present.

elrolito commented 10 years ago

Yeah, just did a quick test. the .csslintrc file needs to be in the same directory csslint is called, which is a pain. Also, there is conflicting info about the format of the file; I read somewhere that it needed to be a json file, but in the wiki it apparently needs to be plain text and like the CLI options.

My code should allow the options to apply to the linting of any css file in any directory.

yujinakayama commented 10 years ago

Closing according to #55.