@esfront/eslint-config

0.1.2 • 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.config.js file with the following contents:

import config from '@esfront/eslint-config';

export default [
  ...config,
  {
    ignores: ['node_modules/*'],
  },
];

You may want to override the default import sort order:

import config from '@esfront/eslint-config';

export default [
  ...config,
  {
    rules: {
      'simple-import-sort/imports': [
        'error',
        {
          groups: [
            ['^react'],
            ['^@mui/base', '^@mui/material/styles', '^@mui/system', '^@mui/material', '^@mui/utils'],
            ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
            ['^\\.\\.(?!/?$)', '^\\.\\./?$'],
          ],
        },
      ],
    },
  },
  {
    ignores: ['node_modules/*'],
  },
];

Readme

Keywords

none

Package Sidebar

Install

npm i @esfront/eslint-config

Weekly Downloads

5

Version

0.1.2

License

MIT

Unpacked Size

16 kB

Total Files

5

Last publish

Collaborators

  • elonsoftllc