eslint-config-sk-browser

production ready eslint config using es6 prettier jest codemod browserlist flow ...

Usage no npm install needed!

<script type="module">
  import eslintConfigSkBrowser from 'https://cdn.skypack.dev/eslint-config-sk-browser';
</script>

README

eslint-config-sk-browser

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-browser -D -E

npm

npm i -D eslint eslint-config-sk-browser

Usage

create a eslint config file type of your choice

.eslintrc.js

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

.eslintrc.json

{
  "extends": ["sk-browser"]
}

.eslintrc

  extends: 'sk-browser'

.eslintrc.yml

  extends: 'sk-browser'

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.