1.0.5 • Published 10 months ago
@hodfords/reactjs-codelint-config v1.0.5
Hodfords ReactJS Codelint Config
Installation 🤖
npm install @hodfords/reactjs-codelint-config --save- with PNPM:
pnpm install @hodfords/reactjs-codelint-configConfiguration 🚀
- 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 eslintEslint 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