0.0.1-32 • Published 7 years ago
@pismo/eslint-config-bolt v0.0.1-32
Pismo Bolt eslint config
Pismo Bolt's eslint shareable configuration.
Installation
> yarn add @pismo/eslint-config-bolt --dev
Then, in your .eslintrc
:
{
"extends": "@pismo/eslint-config-bolt"
}
Auto linting
You can use husky along with lint-staged and eslint to set up a precommit
hook that runs eslint to automatically fix all linting-related issues.
> yarn add husky lint-staged eslint --dev
package.json
file:
"scripts": {
"lint": "node_modules/.bin/eslint --fix",
"precommit": "lint-staged"
}
.lintstagedrc
file:
{
"linters": {
"*.js": ["yarn lint", "git add"]
}
}
That's it. It should automatically format all .js files you git add
and try to git commit
, then add them back for you.
0.0.1-32
7 years ago
0.0.1-31
7 years ago
0.0.1-30
7 years ago
0.0.1-29
7 years ago
0.0.1-28
7 years ago
0.0.1-27
7 years ago
0.0.1-26
7 years ago
0.0.1-25
7 years ago
0.0.1-24
7 years ago
0.0.1-23
7 years ago
0.0.1-22
7 years ago
0.0.1-21
7 years ago
0.0.1-20
7 years ago
0.0.1-19
7 years ago
0.0.1-18
7 years ago
0.0.1-17
7 years ago
0.0.1-16
7 years ago
0.0.1-15
7 years ago
0.0.1-14
7 years ago
0.0.1-13
7 years ago
0.0.1-12
7 years ago
0.0.1-11
7 years ago
0.0.1-10
7 years ago
0.0.1-9
8 years ago
0.0.1-8
8 years ago
0.0.1-7
8 years ago
0.0.1-6
8 years ago
0.0.1-5
8 years ago
0.0.1-4
8 years ago
0.0.1-3
8 years ago
0.0.1-2
8 years ago
0.0.1-1
8 years ago
0.0.1-0
8 years ago
1.0.0
8 years ago