This package provides Extension Engine's extensible ESLint config.
Package contains two shared ESLint configs:
This is default configuration supporting both server & Vue powered client codebases.
This is base configuration without Vue specific rules.
Use install-peerdeps
npx install-peerdeps --dev @extensionengine/eslint-config
or the classic way:
npm install --save-dev eslint @extensionengine/eslint-config babel-eslint eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard eslint-plugin-vue eslint-config-standard eslint-config-semistandard
In your local .eslintrc.*
extend this configuration
'use strict';
module.exports = {
root: true,
extends: '@extensionengine'
};
If you don't need Vue you can use base configuration:
'use strict';
module.exports = {
root: true,
extends: '@extensionengine/eslint-config/base'
};
Check ESlint documentation for rules explanation.
If you are using this config in your project you can include this badge in a readme to let people know that your code is using it.
[![js @extensionengine style](https://badgen.net/badge/code%20style/@extensionengine/black)](https://github.com/ExtensionEngine/eslint-config)