Created
July 29, 2021 13:36
-
-
Save CroModder/d484ad4a5bbea198bed9a731d90bf032 to your computer and use it in GitHub Desktop.
Linter(eslint and stylelint) with Prettier config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
trailingComma: "es5", | |
semi: true, | |
singleQuote: true, | |
useTabs: true, | |
printWidth: 120 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": ["stylelint-config-standard", "stylelint-config-prettier"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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