0.0.7 • Published 1 year ago

@ocupop/setup-eslint v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Ocupop Linter Setup @ocupop/setup-eslint

Sets up Ocupops Eslint config within npx. This will set you up with a .eslintrc file that extends @ocupop/eslint-config

Setup

Run the following npx command to install ESLint

npx @ocupop/setup-eslint

Options

  --version        Show version number                                 [boolean]
  -h, --help       Show help                                           [boolean]
  --remove, --rm   Remove eslint from application   [boolean] [default: false]
  --upgrade, --up  Upgrade eslint config            [boolean] [default: false]

Using

Files

Once installed, the package will add a new file .eslintrc where we can add additional rules, or override rules values.

Scripts

Within package.json two new scrips are installed.

$ yarn lint       # will run eslint and validate files
$ yarn checkLint  # formats all files (with specified extensions) 

ESLint Extension

By default we do not require that the eslint extension be installed. Simply running yarn lint will run eslint within our code base. We can install the eslint extension which will help format and point out errors as you develop.

Publishing

$ npm login <login with ocupop creds>
# [ ] Make sure to push changes to git first
# [ ] Make sure to bump the version number
$ npm publish
0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago