@1f8/eslint-config-react

1F8 ReactJS Linter

Usage no npm install needed!

<script type="module">
  import 1f8EslintConfigReact from 'https://cdn.skypack.dev/@1f8/eslint-config-react';
</script>

README

ESlint Setup for 1F8

Helps you with styling your code. Don't believe there's any correct way, but this way fits our style.

NPM Github

Instructions

# Gatsby
yarn add -D @1f8/eslint-config-react
cp node_modules/@1f8/eslint-config-react/.eslintignore .eslintignore

# React
cp node_modules/@1f8/eslint-config-react/.eslintignore .eslintignore
npx install-peerdeps -D @1f8/eslint-config-react
touch .eslintrc
/** .eslintrc */
{
  "extends": ["@1f8/eslint-config-react"]
}

Debug

  • If you have any typescript files that isn't being ignored, an error will be thrown if you dont have a typescript linter