1.1.5 • Published 6 years ago
eslint-config-sk-common v1.1.5
eslint-config-sk-common
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-common -D -E
npm
npm i -D eslint eslint-config-sk-common
Usage
create a eslint config file type of your choice
.eslintrc.js
module.exports = {
extends: ['sk-common'],
};
.eslintrc.json
{
"extends": ["sk-common"]
}
.eslintrc
extends: 'sk-common'
.eslintrc.yml
extends: 'sk-common'
Add lint scripts
Add scripts to package.json
:
"scripts": {
"lint": "yarn eslint .",
"lint:fix": "yarn lint --fix"
}
Lint manually
- Run
yarn lint
to lint your code. - Run
yarn lint:fix
to lint, format and fix your code.
1.1.5
6 years ago
1.1.3
6 years ago
1.1.0
6 years ago
1.0.4
6 years ago
1.0.2
6 years ago
1.0.0
6 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.6.0
6 years ago
0.5.8
6 years ago
0.5.7
6 years ago
0.5.6
6 years ago
0.4.0
6 years ago
0.3.2
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago