1.0.0 • Published 3 years ago
@piktew/eslint-config-node v1.0.0
TMoweS ESLint config
ESLint configuration used by Piktew.
Whats included?
- Airbnb config base
- SonarJS plugin
- Prettier
⚙️ Setup
Install the dependencies
npm i -D eslint @piktew/eslint-config-node
# Or Yarn
yarn add -D eslint @piktew/eslint-config-nodeCreate a .eslintrc file extending the config:
{
"extends": "@piktew/eslint-config-node"
}You can also use a
.eslintrc.jsinstead of JSON if you prefer.
📖 Usage
Add lint script to package.json file:
"scripts": {
...
"lint": "eslint src/**/*.ts* --fix"
}1.0.0
3 years ago