We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@pota/lint-scripts
fix
fix:scripts
fix:style
lint
lint:scripts
lint:style
We have already been using a setup similar to this in most of our templates, for example the @pota/muban-template:
@pota/muban-template
package.json
"scripts": { "fix": "run-s fix:* && npm run format", "fix:eslint": "npm run lint:eslint -- --fix", "lint": "run-s lint:*", "lint:eslint": "eslint . --ext .ts,.tsx --cache --cache-location node_modules/.cache/.eslintcache" },
The fix and lint commands are implemented using npm-run-all, and fix:eslint is just running lint with an additional --fix argument for eslint.
fix:eslint
--fix
scripts linting can be implemented using eslint and style linting can be implemented using stylelint.
scripts
style
See #39 for context
The text was updated successfully, but these errors were encountered:
psimk
No branches or pull requests
@pota/lint-scripts
Commands
fix
- runs allfix
commands synchronously or in parallelfix:scripts
- runs a JavaScript/TypeScript code linter, with auto-fixingfix:style
- runs a CSS/SASS/Styled Components code linter, with auto-fixinglint
- runs alllint
commands synchronously or in parallellint:scripts
- runs a JavaScript/TypeScript code linterlint:style
- runs a CSS/SASS/Styled Components code linterDescription
We have already been using a setup similar to this in most of our templates, for example the
@pota/muban-template
:The
fix
andlint
commands are implemented using npm-run-all, andfix:eslint
is just runninglint
with an additional--fix
argument for eslint.scripts
linting can be implemented using eslint andstyle
linting can be implemented using stylelint.See #39 for context
The text was updated successfully, but these errors were encountered: