@7174n/eslint-config

1.1.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @7174n/eslint-config

Weekly Downloads

3

Version

1.1.0

License

ISC

Unpacked Size

4.05 kB

Total Files

4

Last publish

Collaborators

  • 7174n