@esfront/eslint-config

0.1.0 • Public • Published

@esfront/eslint-config

Installation

Install the correct versions of each package, which are listed by the command:

npm info "@esfront/eslint-config@latest" peerDependencies

If using npm 5+, use this shortcut:

npx install-peerdeps --dev @esfront/eslint-config

Usage

Create a .eslintrc.json file with the following contents:

{
  "extends": ["@esfront/eslint-config"]
}

You may want to override the default import sort order:

{
  "extends": ["@esfront/eslint-config"],
  "rules": {
    "simple-import-sort/imports": [
      "error",
      {
        "groups": [
          ["^react"],
          ["^@mui/base", "^@mui/material/styles", "^@mui/system", "^@mui/material", "^@mui/utils"],
          ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
          ["^\\.\\.(?!/?$)", "^\\.\\./?$"]
        ]
      }
    ]
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @esfront/eslint-config

Weekly Downloads

16

Version

0.1.0

License

MIT

Unpacked Size

14.2 kB

Total Files

5

Last publish

Collaborators

  • elonsoftllc