Skip to content

Instantly share code, notes, and snippets.

@CroModder
Created July 29, 2021 13:36
Show Gist options
  • Save CroModder/d484ad4a5bbea198bed9a731d90bf032 to your computer and use it in GitHub Desktop.
Save CroModder/d484ad4a5bbea198bed9a731d90bf032 to your computer and use it in GitHub Desktop.
Linter(eslint and stylelint) with Prettier config
module.exports = {
trailingComma: "es5",
semi: true,
singleQuote: true,
useTabs: true,
printWidth: 120
};
{
"extends": ["stylelint-config-standard", "stylelint-config-prettier"]
}
"scripts": {
"lint": "eslint './packages/**/*.{js,ts,tsx}'",
"lint:fix": "eslint './packages/**/*.{js,ts,tsx}' --fix",
"stylelint": "stylelint './packages/**/*.{css,scss,less}' ",
"stylelint:fix": "stylelint './packages/**/*.{css,scss,less}' --fix",
"stylelint:config": "stylelint-config-prettier-check",
"prettier": "prettier './packages/**/*.{js,ts,tsx,less}' --check",
"prettier:fix": "prettier './packages/**/*.{js,ts,tsx,less}' --write"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment