A tool for easily installing front end language lint and formatting standards to projects.
| Command | Description |
|---|---|
standards [keywords...] |
Add standards for given standard keywords |
| Standard | Keyword | Standard | Lint Tool | Formatting Tool |
|---|---|---|---|---|
| JavaScript | js |
@geekhive/eslint-config-standard | ESlint | Prettier |
| TypeScript | ts |
@geekhive/tslint-config-standard | TSLint | Prettier |
| SCSS | scss |
@geekhive/stylelint-config-standard | stylelint | Prettier |
Run with npx:
# Run the CLI tool, installing JavaScript, TypeScript, and SCSS standards
npx @geekhive/gh-cli standards js ts scssInstall the CLI tool globally and use:
# Install globally with npm
npm install -g @geekhive/gh-cli
# Install globally with yarn
yarn add -g @geekhive/gh-cli
# Run the CLI tool, installing JavaScript, TypeScript, and SCSS standards
gh standards js ts scssMake sure to commit the build files as this allows running npx directly against a branch.
Run the watch task:
yarn run devRun a build:
yarn run buildExecute the CLI tool:
node dist/gh.js standards js ts scssDebug the CLI tool:
node --inspect-brk dist/gh.js standards js ts scss