eslint-config-eiskaffee v1.1.20
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.
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
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago