Skip to content

Mailtech/eslint-config-coremail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint config files for Coremail (c)

npm

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.

About

Common shared eslint config files for projects of Coremail © Mailtech Ltd.

Resources

License

Stars

Watchers

Forks

Packages

No packages published