eslint-config-coremail
v1.1.3
Published
Javascript Standard Style - ESLint Shareable Config for coremail.cn
Readme
eslint-config-coremail

The ESLint config for Coremail (c)
This module exports a flat ESLint configuration that is
supported since eslint 8.21.0, based on eslint-config-standard.
Note that eslint-config-standard is deprecated and no longer maintained. It's encouraged to switch to neo-standard for standard users.
This project focuses solely on ESLint config and does not provide framework tooling like neo-standard.
Quick Start
npm install --save-dev eslint eslint-config-coremailFor projects using ESM, add
eslint.config.jsas:import {configs} from 'eslint-config-coremail'; export default [ // default enables browser & node env; you can change to `configs.node` for server side projects configs.standard, { // your overrides here }, { // for legacy code compliant with old IE ...configs.legacy, files : ['path/to/legacy/codes/**'], }, ]For projects using CommonJS, add
eslint.config.jsas:module.exports = import('eslint-config-coremail').then(({configs}) => [ // default enables browser & node env; you can change to `configs.node` for server side projects configs.standard, { // your overrides here }, { // for legacy code compliant with old IE ...configs.legacy, files : ['path/to/legacy/codes/**'], }, ]);
Migrating from eslint-config-coremail 0.x / eslint-config-standard 17.x
- Read this article for ESLint 9 migration
- 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.
