0.3.10 • Published 12 months ago
@crossingminds/eslint-config v0.3.10
@crossingminds/eslint-config
This ESLint configuration package enforces a consistent coding style and best practices for JavaScript and TypeScript projects, supporting both regular and React projects.
Type Documentation
For the most up-to-date information on exports and interfaces, please visit TS Docs.
Note: This documentation is currently in beta and works most of the time.
Installation
Choose one of the following methods to install the package in your project:
Using npm
npm install --save-dev @crossingminds/eslint-config
Using yarn
yarn add --dev @crossingminds/eslint-config
Using pnpm
pnpm add --save-dev @crossingminds/eslint-config
Usage
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'],
};
Additional Dependencies
In addition to the configuration package, you will need to install the following dev dependencies:
eslint
typescript
(for JavaScript projects when using Yarn)