eslint-config-interfaced
v2.1.3
Published
ESLint config for the approaches adopted by Interfaced company
Downloads
477
Readme
eslint-config-interfaced
This package provides extendable shared ESLint config for the approaches adopted by Interfaced company.
Config's target environment leverages ECMAScript 6 with Closure Compiler.
Also there is a few sub configs:
interfaced/node
- for Node.jsinterfaced/esm
- for ECMAScript modulesinterfaced/externs
- for Closure Compiler Externsinterfaced/mocha-chai
- for Mocha + Chai
Usage
- Install the package and the required plugins:
npm info "eslint-config-interfaced@latest" peerDependencies
npm i \
eslint-config-interfaced@latest \
eslint-plugin-interfaced@<versionFromPeerDependencies> \
eslint-plugin-node@<versionFromPeerDependencies> \
eslint-plugin-import@<versionFromPeerDependencies> \
eslint-plugin-jsdoc@<versionFromPeerDependencies>
--save-dev
Or using npx
's shortcut:
npx install-peerdeps eslint-config-interfaced@latest --dev
Note: eslint-plugin-node
and eslint-plugin-import
are required only for
interafced/node
and interfaced/esm
respectively, so if you are not going to use one of these sub configs you can omit them.
- Add
"extends": "interfaced"
(or one of the sub configs) to your.eslintrc
file.
{
"extends": "interfaced",
"overrides": [{
"files": "scripts/**",
"extends": "interfaced/node"
}]
}