@pixeloven-tooling/linter
Pixel Oven tooling linter
See our website PixelOven for more information or our issues board to report issues associated with this package.
Install
Using npm:
npm install --save-dev @pixeloven-tooling/linter
or using yarn:
yarn add --dev @pixeloven-tooling/linter
Usage
Note this package was originally created to encapsulate common dependencies and scripts used during the development of PixelOven. For a full public CLI experience please see our website pixeloven.
This simple package wraps tslint and stylelint and a few other dependencies used throughout our workflow. We often use this package side by side with lint-staged to help improve our code quality.
Example of usage in package.json
{
"devDependencies": {
"@pixeloven-tooling/linter": "6.2.0",
"lint-staged": "10.0.7"
},
"scripts": {
"lint": "yarn lint:ts && yarn lint:scss",
"lint:ts": "pixeloven-linter ts src/**/*.{ts,tsx}",
"lint:scss": "pixeloven-linter scss src/**/*.{scss}"
},
"lint-staged": {
"src/**/*.{scss}": [
"pixeloven-linter scss"
],
"src/**/*.{ts,tsx}": [
"pixeloven-linter ts"
]
}
}