@formsort/eslint-config

1.4.7 • Public • Published

@formsort/eslint-config

Shared ESLint configuration for use across all projects

Usage

  1. Install this project and its peerDependencies in your respository:
yarn add --dev @formsort/eslint-config eslint-plugin-prefer-arrow eslint-plugin-jsdoc@24 eslint-plugin-prettier eslint-config-prettier eslint-plugin-import prettier eslint-plugin-react @typescript-eslint/eslint-plugin
  1. Ensure that your project has a tsconfig.json in the root. If you want, use the formsort common tsconfig.
  2. Create a .eslintrc.js in the root with the following content:
module.exports = {
  extends: "@formsort/eslint-config"
};
  1. For convenience, you may want to add the following scripts to your package.json
{
  "scripts": {
    "format": "eslint --ext .ts,.tsx src --fix",
    "lint": "eslint --ext .ts,.tsx src"
  }
}

/@formsort/eslint-config/

    Package Sidebar

    Install

    npm i @formsort/eslint-config

    Weekly Downloads

    54

    Version

    1.4.7

    License

    MIT

    Unpacked Size

    9.34 kB

    Total Files

    6

    Last publish

    Collaborators

    • bartha.attila
    • peterlada
    • lev-formsort
    • fzembow
    • alikirec
    • formsort-release