@esfront/eslint-config
v0.3.0
Published
Install the correct versions of each package, which are listed by the command:
Readme
@esfront/eslint-config
Installation
Install the correct versions of each package, which are listed by the command:
npm info "@esfront/eslint-config@latest" peerDependenciesIf using npm 5+, use this shortcut:
npx install-peerdeps --dev @esfront/eslint-configUsage
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'],
['^@esfront/react'],
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
],
},
],
},
},
{
ignores: ['node_modules/*'],
},
];