Hodfords ReactJS Codelint Config
reactjs-codelint-config include eslint, stylelint, tslint configs help you to maintain the code quality of your project.
Installation 🤖
npm install @hodfords/reactjs-codelint-config --save
- with PNPM:
pnpm install @hodfords/reactjs-codelint-config
Configuration 🚀
- To activate eslint, create a
eslint.config.jsfile in the root of your project and add the following configuration:
import { eslintConfig } from '@hodfords/reactjs-codelint-config';
export default eslintConfig;
- To activate stylelint, create a
.stylelintrc.jsfile in the root of your project and add the following configuration:
import { stylelintConfig } from '@hodfords/reactjs-codelint-config';
export default stylelintConfig;
Usage 🚀
Run the following command to lint your project:
npx eslint
Eslint Config Details
This configuration extends the @hodfords/reactjs-codelint-config package. It includes the following plugins:
@typescript-eslint/parsereslint-plugin-prettiereslint-plugin-reacteslint-plugin-react-hooks@typescript-eslint/eslint-plugineslint-plugin-unused-importseslint-plugin-importeslint-plugin-react-func@tanstack/eslint-plugin-query
Stylelint Config Details
This configuration extends the @hodfords/reactjs-codelint-config package. It includes the following plugins:
postcss-styled-syntaxstylelint-config-standard,stylelint-config-recommended
License 📝
This project is licensed under the MIT License