Shared ESLint and Prettier configurations for Arstoien projects.
npm install --save-dev @arstoien/devtools
# or
yarn add -D @arstoien/devtoolsCreate an eslint.config.js file in your project root:
const { eslintrc } = require('@arstoien/devtools');
module.exports = eslintrc;Create a .prettierrc.js file in your project root:
const { prettierrc } = require('@arstoien/devtools');
module.exports = prettierrc;- TypeScript support with strict type checking
- React hooks linting
- Import organization and unused imports detection
- Lodash best practices
- Consistent code style enforcement
- Consistent formatting with 2-space indentation
- Single quotes for strings
- Trailing commas (ES5)
- 100 character line width
- Tailwind CSS class sorting support
This package requires the following peer dependencies:
eslint^9.0.0prettier^3.0.0typescript^5.0.0
MIT