1.0.37 • Published 5 months ago
eslint-config-badboyku v1.0.37
eslint-config-badboyku
Shared eslint+prettier configuration with react/jest/typescript support.
Setup
Install the package:
npm install --save-dev eslint-config-badboyku
oryarn add --dev eslint-config-badboyku
Create a file named
.eslintrc.js
at the root and add the following:module.exports = { extends: ['badboyku'], rules: {}, };
Add the following to your package.json scripts:
"scripts": { "lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint \"./src/**/*.{js,jsx,ts,tsx}\" --fix", "prettier": "prettier --check \"./src/**/*.{css,scss,json}\"", "prettier:fix": "prettier --write \"./src/**/*.{css,scss,json}\"" },
Configure Rules (optional)
If you would like to configure a rule, then you can add to the rules
object inside the .eslintrc.js
file (from setup step 2).
Example:
rules: {
'no-console': 'error',
},
1.0.37
5 months ago
1.0.36
12 months ago
1.0.35
1 year ago
1.0.34
1 year ago
1.0.33
1 year ago
1.0.32
1 year ago
1.0.31
1 year ago
1.0.30
2 years ago
1.0.29
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.26
2 years ago
1.0.22
2 years ago
1.0.25
2 years ago
1.0.24
2 years ago
1.0.23
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago