ESLint rules for Kaola.
Type | Extends |
---|---|
Default | kaola |
ES2015+ | kaola/esnext |
vue | kaola/vue |
react | kaola/react |
weex | kaola/weex |
$ npm i eslint eslint-config-kaola -D
{
"extends": "kaola"
}
Add npm scripts:
"scripts": {
"test": "npm run lint",
"lint": "eslint path/to/file"
}
After that, simply run
$ npm t
MIT