eslint-config-sk

1.1.5 • Public • Published

eslint-config-sk

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 add eslint eslint-config-sk-sk -D -E
npm i -D eslint eslint-config-sk-sk

Usage

create a eslint config file type of your choice

.eslintrc.js

module.exports = {
  extends: ['sk'],
};

.eslintrc.json

{
  "extends": ["sk"]
}

.eslintrc

  extends: 'sk'

.eslintrc.yml

  extends: 'sk'

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.

Related

/eslint-config-sk/

    Package Sidebar

    Install

    npm i eslint-config-sk

    Weekly Downloads

    37

    Version

    1.1.5

    License

    MIT

    Unpacked Size

    10.2 kB

    Total Files

    11

    Last publish

    Collaborators

    • soenkekluth