1.0.2 • Published 8 months ago

eslint-config-coremail v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 months ago

eslint-config-email npm downloads

The eslint config for Coremail (c)

This module exports a flat ESLint configuration which is supported since eslint 8.21.0, basing eslint-config-standard.

Notes that eslint-config-standard is likely deprecated and stop maintaining. It's encouraged to switch to neo-standard for standard users.

This project is only focus on eslint config, and not providing framework tooling like neo-standard.

Quick start

  1. npm install --save-dev eslint eslint-config-coremail

  2. For projects using esm, add eslint.config.js as:

    import {configs} from 'eslint-config-coremail';
    
    export default [
        // default enables browser & node env, you can change to `configs.node` for server side project
        configs.standard, {
            // your overrides here
        }, {
            // for legacy codes compliant with old IE
            ...configs.legacy,
            files : ['path/to/legacy/codes/**'],
        },
    ]
  3. For projects using commonjs, add eslint.config.js as:

    module.exports = import('eslint-config-coremail').then(({configs}) => [
        // default enables browser & node env, you can change to `configs.node` for server side project
        configs.standard, {
            // your overrides here
        }, {
            // for legacy codes compliant with old IE
            ...configs.legacy,
            files : ['path/to/legacy/codes/**'],
        },
    ]);

Migrating from eslint-config-coremail 0.x / eslint-config-standard 17.x

  1. Read this article for ESLint 9 migration
  2. Migrate deprecated ESLint style rules with eslint-stylistic rules following this guide

Learn more

For more information on the full listing of rules that eslint supports, and more, visit

License

MIT. Copyright (c) Coremail.

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.99.0

2 years ago

0.99.1

2 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago