0.1.1 • Published 4 years ago

@fundamend/config-eslint v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

config-eslint

config-eslint is a configuration preset for ESLint used by the fundamend.dev ecosystem.

Installation

Use your favorite Node.js package manager, for example npm, like so:

npm install --save-dev @fundamend/config-eslint

... or yarn, like so:

yarn add --dev @fundamend/config-eslint

Usage

In your .eslintrc.js, import config-eslint and spread it into the exported object, like so:

const config = require('@fundamend/config-eslint');

module.exports = {
	...config
};

You can extend the imported preset by adding additional configuration options to the exported configuration object, for example like this:

const config = require('@fundamend/config-eslint');

module.exports = {
	...config,
	rules: {
		'no-console': 1
	}
};

Settings that already exist in the configuration preset will be overwritten.

License

MIT