@form8ion/eslint
v7.0.1
Published
opinionated scaffolder for managing the ESLint configuration for a project
Readme
eslint
opinionated scaffolder for managing the ESLint configuration for a project
Table of Contents
Features
Scaffolder
- creates an initial
.eslintrc.ymlconfig file for the project - extends the base shareable eslint-config package defined by
config.scope - defines the lint and fix scripts
- ignores the cache file from the VCS
Lifter
- ignores linting of paths defined in
results.buildDirectoryresults.eslint.ignore.directories
- extends configs defined in
results.eslint.configs, using the scope of the base config already defined in the.eslintrc.yml
Usage
Installation
$ npm install @form8ion/eslint --saveExample
Import
import {lift, scaffold} from '@form8ion/eslint';Execute
(async () => {
await scaffold({projectRoot: process.cwd(), config: {scope: '@foo'}});
await lift({
projectRoot: process.cwd(),
results: {
eslint: {configs: ['mocha', 'react'], ignore: {directories: []}},
buildDirectory: 'lib'
}
});
})();Contributing
Dependencies
$ nvm install
$ npm installVerification
$ npm test