This ESLint configuration package enforces a consistent coding style and best practices for JavaScript and TypeScript projects, supporting both regular and React projects.
Choose one of the following methods to install the package in your project:
npm install --save-dev @crossingminds/eslint-config
yarn add --dev @crossingminds/eslint-config
pnpm add --save-dev @crossingminds/eslint-config
Example .eslintrc.js
file for non-React projects:
module.exports = {
extends: ['@crossingminds/eslint-config'],
};
Example .eslintrc.js
file for React projects:
module.exports = {
extends: ['@crossingminds/eslint-config/react'],
};
In addition to the configuration package, you will need to install the following dev dependencies:
eslint
-
typescript
(for JavaScript projects when using Yarn)