@moser-inc/eslint-config
v1.18.4
Published
This is the core set of rules to for use in each variation and in isolation when using an alternate library or framework.
Downloads
933
Readme
Moser ESLint Config Core
This is the core set of rules to for use in each variation and in isolation when using an alternate library or framework.
Installation
npm i -D eslint prettier @moser-inc/eslint-config
Usage (Flat)
Export the config from your eslint.config.mjs
file. The config exports a function that returns a composer
instance (see here) that can prepend/append/override rules and configuration.
import moserConfig from '@moser-inc/eslint-config/flat';
export default moserConfig().append(...);
Usage (Legacy)
Add the config to the extends
option in your .eslintrc.cjs
file.
module.exports = {
extends: ['@moser-inc']
}