eslint-config-sk-node
v1.1.5
Published
production ready eslint config using es6 prettier jest codemod browserlist flow ...
Maintainers
Readme
eslint-config-sk-node
production ready es6 ESLint configs using Prettier and sort-class-members for code formatting and unification, compat and browserslist to make use of caniuse and @kangax's compat table for determining coverage and
jest for testing.
Install
yarn
yarn add eslint eslint-config-sk-node -D -Enpm
npm i -D eslint eslint-config-sk-nodeUsage
create a eslint config file type of your choice
.eslintrc.js
module.exports = {
extends: ['sk-node'],
};.eslintrc.json
{
"extends": ["sk-node"]
}.eslintrc
extends: 'sk-node'.eslintrc.yml
extends: 'sk-node'Add lint scripts
Add scripts to package.json:
"scripts": {
"lint": "yarn eslint .",
"lint:fix": "yarn lint --fix"
}Lint manually
- Run
yarn lintto lint your code. - Run
yarn lint:fixto lint, format and fix your code.
