activescott / activescott/eslint-config
feat: provide intrinsic executable to run app scripts like lint, lint-fix
- Langage dominant
- TypeScript
- Étoiles
- 2
- Forks
- 1
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Instead of asking apps to add custom scripts to their package.json like this:
```
{
"scripts": {
"eslint": "./node_modules/.bin/eslint . --ext ts,tsx,js,jsx",
"lint": "./node_modules/.bin/prettier -l \"{,!(node_modules)/**/}*.{ts,tsx,md,yml,json,html}\" && npm run eslint",
"lint-fix": "./node_modules/.bin/prettier --write \"{,!(node_modules)/**/}*.{ts,tsx,md,yml,json,html}\" && npm run eslint --fix"
}
}
```
...this package should provide a `react-scripts` style executable that can be invoked from the app. This way future changes can be intgrated more gracefully.
Resolve the app path like [this](https://github.com/facebook/create-react-app/blob/282c03f9525fdf8061ffa1ec50dce89296d916bd/packages/react-scripts/config/paths.js#L18).
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.