Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Move to using mainline CSSLint #170

Merged
merged 7 commits into from
Aug 26, 2017
Merged

Conversation

Arcanemagus
Copy link
Member

@Arcanemagus Arcanemagus commented Aug 26, 2017

Rewrite the provider to use mainline csslint instead of the custom fork.

Includes:

  • BREAKING: Disabling of linting on changes.
    • Unfortunately in over two years CSSLint has yet to merge Read from stdin CSSLint/csslint#605, so for now we are stuck disabling linting on change as we have no way of sending the content to csslint as it changes.
  • Updating to Linter v2 API.
  • Allowing users to specify the path to CSSLint. Uses project local csslint if it exists first, and uses the bundled copy second if this option is not specified.
  • Use a unique key for execution, and enforce a 30 second timeout.
    • As duplicate calls to the same key will cancel each other, there shouldn't be a need for the disableTimeout option any longer.
  • Asyncify the specs using jasmine-fix.
  • Update to ESLint v4.
  • Update Travis CI configuration.

Fixes #67.
Fixes #91.
Fixes #105.
Closes #165.
Fixes #166.

Updates the Travis CI configuration:
* Use Trusty based builds
* Remove OS X builds as they are unusably long to queue
* Update dependent APT packages
This code is now linted using ESLint not CoffeeLint.
Bring in `jasmine-fix` to allow the use of `async`/`await` in the specs,
and refactor them to take advantage of this.
Rewrite the provider to use mainline csslint instead of the custom fork.

Includes:
* BREAKING: Disabling of linting on changes
* Updating to Linter v2 API
* Allowing users to specify the path to CSSLint. Uses project local
first, bundled second if not specified.
This no longer needs to load on package load, defer to loading in
loadDeps().
const exec = path.join(__dirname, '..', 'node_modules', 'atomlinter-csslint', 'cli.js');

const parameters = [
'--format=json',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, requires CSSLint v1.0.0 minimum for this functionality. We might need a check for this if users start filing many support requests about broken versions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant