@lorenzogm/eslint-config-react

ESLint configuration file containing rules for React projects using TypeScript

Usage no npm install needed!

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

README

eslint-config-react

Add this package

yarn add -D @lorenzogm/eslint-config-react

Add peer dependencies

npx install-peerdeps -D @lorenzogm/eslint-config-react

Config eslint: .eslintrc.js and .eslintignore,

echo 'module.exports = {extends: "@lorenzogm/eslint-config-react"}' >> .eslintrc.js
echo '.eslintrc.js' >> .eslintignore
echo 'prettier.config.js' >> .eslintignore

Config prettier: prettier.config.js

echo 'module.exports = require("@lorenzogm/eslint-config-react/prettier.config")' >> prettier.config.js

Config typescript: tsconfig.json

echo '{"extends": "@lorenzogm/eslint-config-react/tsconfig"}' >> tsconfig.json