8.1.2 • Published 4 months ago
@form8ion/eslint-config-extender v8.1.2
eslint-config-extender
shareable ESLint config scaffolder for extending another config
Table of Contents
Usage
Installation
$ npm install @form8ion/eslint-config-extender --save-prod
Example
Import
const {packageManagers} = await import('@form8ion/javascript-core');
const {questionNames: projectQuestionNames} = await import('@form8ion/project');
const {scaffold: javascriptScaffolder, questionNames: jsQuestionNames} = await import('@form8ion/javascript');
const {scaffold, extendEslintConfig} = await import('./lib/index.mjs');
Execute
Scaffolder Plugin
(async () => {
await scaffold({
projectRoot: process.cwd(),
projectName: 'eslint-config-foo',
scope: 'bar'
});
})();
High-Level Scaffolder
(async () => {
await extendEslintConfig(
{
decisions: {
[projectQuestionNames.PROJECT_NAME]: 'eslint-config-foo',
[projectQuestionNames.DESCRIPTION]: 'a description of the project',
[projectQuestionNames.VISIBILITY]: 'Public',
[projectQuestionNames.LICENSE]: 'MIT',
[projectQuestionNames.COPYRIGHT_HOLDER]: 'John Smith',
[projectQuestionNames.COPYRIGHT_YEAR]: '2022',
[projectQuestionNames.GIT_REPO]: true,
[projectQuestionNames.REPO_HOST]: 'GitHub',
[projectQuestionNames.REPO_OWNER]: 'org-name',
[jsQuestionNames.AUTHOR_NAME]: 'John Smith',
[jsQuestionNames.AUTHOR_EMAIL]: 'john@smith.org',
[jsQuestionNames.AUTHOR_URL]: 'https://smith.org',
[jsQuestionNames.SCOPE]: 'org-name',
[jsQuestionNames.PACKAGE_MANAGER]: packageManagers.NPM,
[jsQuestionNames.NODE_VERSION_CATEGORY]: 'LTS',
[jsQuestionNames.CI_SERVICE]: 'Other',
[jsQuestionNames.PROVIDE_EXAMPLE]: false
},
vcsHosts: {
GitHub: {
scaffolder: options => options,
prompt: ({decisions}) => ({[projectQuestionNames.REPO_OWNER]: decisions[projectQuestionNames.REPO_OWNER]})
}
}
},
decisions => options => javascriptScaffolder({...options, decisions, unitTestFrameworks: {}})
);
})();
Contributing
Dependencies
$ nvm install
$ npm install
Verification
$ npm test
8.1.2
4 months ago
8.1.1
4 months ago
8.1.0
5 months ago
8.0.3
9 months ago
8.0.2
10 months ago
7.0.1
1 year ago
8.0.1
12 months ago
8.0.0
12 months ago
7.0.0
1 year ago
6.1.0
1 year ago
6.0.2
1 year ago
6.0.1
2 years ago
6.0.0
2 years ago
5.0.2
2 years ago
4.0.1
2 years ago
4.0.0
2 years ago
4.0.2
2 years ago
5.0.1
2 years ago
5.0.0
2 years ago
3.1.2
2 years ago
3.1.1
2 years ago
3.1.0
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
2.0.0-alpha.1
2 years ago
2.0.0-alpha.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.1.19
2 years ago
1.1.18
2 years ago
1.1.17
2 years ago
1.1.16
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.13
3 years ago
1.1.12
3 years ago
1.1.11
3 years ago
1.1.10
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
4 years ago
1.1.0-beta.5
4 years ago
1.1.0-beta.4
4 years ago
1.1.0-beta.2
4 years ago
1.1.0-beta.3
4 years ago
1.1.0-beta.1
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
1.0.0-alpha.6
4 years ago
1.0.0-alpha.5
4 years ago
1.0.0-alpha.4
4 years ago
1.0.0-alpha.3
4 years ago
1.0.0-alpha.2
4 years ago
1.0.0-alpha.1
4 years ago