ESLint config files for Coremail (c)
Usage
This package exports a flat ESLint configuration
which is supported since eslint 8.21.0
npm install --save-dev eslint eslint-config-coremail
Example eslint.config.js
in esm:
import {configs} from 'eslint-config-coremail';
export default [
// default using browser & node env
configs.standard,
// for old IE compatible
{
files : ['path/to/legacy/**'],
...configs.legacy,
},
]
Example eslint.config.js
in commonjs:
module.export = import('eslint-config-coremail').then(({configs}) => [
// default using browser & node env
configs.standard,
// for old IE compatible
{
files : ['path/to/legacy/**'],
...configs.legacy,
},
]);
Learn more
For the full listing of rules that eslint supports, and more, visit For more information on the full listing of rules, editor plugins, FAQs, and more, visit the ESLint official site.
License
MIT. Copyright (c) Coremail.