eslint-config-badboyku
v1.0.46
Published
Shared eslint+prettier configuration with react/jest/typescript support.
Readme
eslint-config-badboyku
Shared eslint+prettier configuration with react/jest/typescript support.
NOTE:
08-30-2025: Unable to update eslint v9 until eslint-config-airbnb gets support for v9.
https://github.com/airbnb/javascript/issues/2961
11-16-2025: Unable to update eslint-plugin-react-hooks v7 until eslint-config-airbnb gets support for v7.
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',
},See https://eslint.org/docs/user-guide/configuring/rules
