Skip to content

bramkok/eslint-config-bramkok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-bramkok

eslint-config-bramkok is an Airbnb Style ESLint config with Prettier for code formatting.

Usage

  1. Add eslint-config-bramkok to your project: yarn add eslint-config-bramkok -D -E.
  2. Add peer dependencies: yarn add eslint babel-eslint eslint-config-airbnb-base eslint-plugin-import prettier eslint-config-prettier eslint-plugin-prettier -D -E. If using npm 5+, use this shortcut
npx install-peerdeps --dev eslint-config-bramkok
  1. Create .eslintrc.js configuration file:
module.exports = {
  extends: ['bramkok']
}
  1. Add lint scripts to package.json:
"scripts": {
  "lint": "yarn eslint .",
  "lint:fix": "yarn lint --fix"
}
  1. Run yarn lint to lint your code.
  2. Run yarn lint:fix to lint, format and fix your code.