@7174n/eslint-config

Lint for 7174n projects

Usage no npm install needed!

<script type="module">
  import 7174nEslintConfig from 'https://cdn.skypack.dev/@7174n/eslint-config';
</script>

README

@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