A set of eslint rules for performant JS
MIT License
A set of eslint rules for performant JS
Works with [email protected]
Use like so:
// .eslintrc
{
"extends": "perf-standard",
"rules": {
"max-len": [0]
}
}
Also configure your package.json like so:
{
"scripts": {
"lint": "eslint $(git ls-files | grep '.js$')"
}
}
There are a lot of rules in this project; I will explain a few of them here for the ones that are non-trivial
no-restricted-modules
There are a few modules that are banned and there are alternatives available.
lodash
, underscore
. These modules come with a few downsides. Namelymap()
and friends.async
. Async is a kitchen sink and not performant. Favor a library thatnpm install eslint-config-perf-standard
npm test