1.1.0 • Published 5 years ago

@7174n/eslint-config v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

@7174n/eslint-config

Installation: npm i -D @7174n/eslint-config

JavaScript/TypeScript

--ext flag needs to be set with .ts or .tsx to airbnb-typescript config be injected.

By default eslint-config-airbnb-base config is injected.

React

--ext flag needs to be set with .jsx or .tsx to eslint react plugins be injected.

Example of use:

Create a .eslintrc.json file.

{
  "extends": [
    "@7174n/eslint-config"
  ],
  "rules": {
    "global-require": [0]
  }
}

Update your package.json file.

{
  "scripts": {
    ...
    "lint": "eslint --ext .js,.jsx,.ts,.tsx ./ --fix"
  },
}

Optional you can create a .eslintignore file.

.circleci
.next
assets
dist
node_modules
static