Skip to content

In The Pocket's configuration for Stylelint.

License

Notifications You must be signed in to change notification settings

inthepocket/stylelint-config-itp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylelint-config-itp

NPM version MIT License

In The Pocket's default configuration for Stylelint.

The current configuration is a hard copy of Bootstrap's latest Stylelint configuration. We didn't make any changes to it and like to keep it that way to avoid any discussions and keep this maintainable. Whenever Bootstrap decides to make changes, we need to make changes, that's the idea.

PR with more info.

Extends stylelint-config-standard and stylelint-config-recommended-scss

Plugins used: stylelint-order

Usage

Install the following packages in your project:

npm install stylelint-config-itp stylelint husky lint-staged --save-dev

Add .stylelintrc to the root of your project:

{
  "extends": "stylelint-config-itp"
}

Add .stylelintignore (if you need one) to the root of your project:

**/*.min.css
**/dist/
**/vendor/
/_gh_pages/

Update your package.json:

{
  "scripts": {
+   "precommit": "lint-staged"
  },
+ "lint-staged": {
+   "*.{css,scss}": ["stylelint --fix", "git add"]
+ }
}

About

In The Pocket's configuration for Stylelint.

Resources

License

Stars

Watchers

Forks

Packages

No packages published