Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

It is just a simple styleguide

License

Notifications You must be signed in to change notification settings

brunomacedo/eslint-config-eiskaffee

Repository files navigation

Styleguide project rules

It is just a simple styleguide, so If you prefer indentation with tabs and if you would like to contribute to the project, be free.

project-version downloads

Installation

npm install -D eslint eslint-plugin-import eslint-plugin-react
npm install -D eslint-config-eiskaffee

Usage

Create the file .eslintrc.

{
  "extends": "eiskaffee"
}

Fix little bugs

Create this command in your package.json to fix automatically litte bugs like breaklines and convert quotes.

"scripts": {
  "esfix": "./node_modules/.bin/eslint --fix \"**/*.{js,jsx}\" || ECHO."
}
npm run esfix

VS Code ESLint extension

You have to install ESLint Extension into VS Code first.

Auto fix on save

If you've been using VS Code, try this config below in your vscode-settings. It should be fix your code from the ESLint config. If you know how to configure it in another editors, just contribute with this project ;)

"eslint.autoFixOnSave": true

eslint-magic