@byndyusoft/eslint-config

ESLint config for Byndyusoft projects

Usage no npm install needed!

<script type="module">
  import byndyusoftEslintConfig from 'https://cdn.skypack.dev/@byndyusoft/eslint-config';
</script>

README

eslint-config

requires ESLint >=7.10.0

Install

$ npm i eslint --save-dev
$ npm i eslint @byndyusoft/eslint-config --save-dev

Note: If you have React project created with create-react-app, then you haven't install eslint manually, because it comes with react-scripts. Otherwise it won't let you run eslint until you remove it from package.json.

Usage

Node + Jest

{
  "extends": [
    "@byndyusoft/eslint-config/javascript",
    "@byndyusoft/eslint-config/jest",
    "@byndyusoft/eslint-config/node"
  ]
}

package.json

{
  "engines": {
    "node": ">=8.10.0"
  }
}

Node + Typescript + Jest

{
  "extends": [
    "@byndyusoft/eslint-config/typescript",
    "@byndyusoft/eslint-config/jest",
    "@byndyusoft/eslint-config/node"
  ],
  "parserOptions": {
    "project": "tsconfig.json"
  }
}

package.json

{
  "engines": {
    "node": ">=8.10.0"
  }
}

Flow + React + Jest

{
  "extends": [
    "@byndyusoft/eslint-config/javascript",
    "@byndyusoft/eslint-config/flow",
    "@byndyusoft/eslint-config/jest",
    "@byndyusoft/eslint-config/react",
    "@byndyusoft/eslint-config/react-testing"
  ]
}

Typescript + React + Jest

{
  "extends": [
    "@byndyusoft/eslint-config/typescript",
    "@byndyusoft/eslint-config/jest",
    "@byndyusoft/eslint-config/react",
    "@byndyusoft/eslint-config/react-testing"
  ],
  "parserOptions": {
    "project": "tsconfig.json"
  }
}

TODO

  • flowtype
  • node