1.0.37 • Published 10 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-badboykuoryarn add --dev eslint-config-badboykuCreate a file named
.eslintrc.jsat 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
10 months ago
1.0.36
1 year ago
1.0.35
2 years ago
1.0.34
2 years ago
1.0.33
2 years ago
1.0.32
2 years ago
1.0.31
2 years 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
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago