Skip to content

ActiveCampaign/stylelint-config-postmark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylelint-config-postmark

Postmark-specific config for Stylelint.

How to use

Adding Stylelint to the project:

  1. npm install -D stylelint ActiveCampaign/stylelint-config-postmark
  2. Add following code to your package.json:
"stylelint": {
  "extends": "stylelint-config-postmark"
},
"scripts": {
  "lint:css": "stylelint --syntax scss ./**/*.scss",
  "fix:css": "stylelint --fix ./**/*.scss",
}

Now you can lint your CSS by running npm run lint:css and fix with npm run fix:css.

Adding a pre-commit hook

Linting makes more sense when running before committing the code.

To add a pre-commit task:

  1. npm install -D pre-commit lint-staged
  2. Add "stylelint-staged": "stylelint-staged" to scripts section of package.json
  3. Add "pre-commit": [ "stylelint-staged" ] to package.json

About

Postmark-specific config for Stylelint

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%