0.3.11 • Published 8 months ago
@crossingminds/eslint-config v0.3.11
@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-configUsing yarn
yarn add --dev @crossingminds/eslint-configUsing pnpm
pnpm add --save-dev @crossingminds/eslint-configUsage
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:
eslinttypescript(for JavaScript projects when using Yarn)