1.0.35 • Published 3 days ago
eslint-config-badboyku v1.0.35
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.35
3 days ago
1.0.34
4 days ago
1.0.33
2 months ago
1.0.32
2 months ago
1.0.31
4 months ago
1.0.30
5 months ago
1.0.29
6 months ago
1.0.28
7 months ago
1.0.27
7 months ago
1.0.26
11 months ago
1.0.22
1 year ago
1.0.25
11 months ago
1.0.24
11 months ago
1.0.23
11 months ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.19
1 year ago
1.0.18
1 year ago
1.0.17
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago