@estudio-cactus/eslint-config

1.0.4 • Public • Published

ESLint config for Estudio Cactus's projects

A TypeScript and ESLint v8 (legacy eslintrc) config for Estudio Cactus's projects using Prettier for code formatting inside eslintrc file.

NOTE: To format using Prettier, defined in eslintrc file, you need to default your formatter to use eslint in your editor.

Installation

This package requires Node.js greater than or equal to 18.20.0.

Package install

# use npm, yarn, pnpm
npm install --save-dev @estudio-cactus/eslint-config

NOTE: Yarn doesn't install peer dependencies, so you need to install them manually.

yarn add --dev \
  typescript@\* \
  eslint@^8.0.1 \
  eslint-config-sotecla

If you want to use the NextJS config, you need to install the following packages if they are not already installed:

# use npm, yarn, pnpm
npm install --save-dev @next/eslint-plugin-next

Usage

Add this to your .eslintrc.cjs file:

module.exports = {
  extends: ['@estudio-cactus/eslint-config'] // or '@estudio-cactus/eslint-config/nextjs' for NextJS projects
  // it can also be used as `'@estudio-cactus'` and `'@estudio-cactus/nextjs'` for NextJS projects
  // ...
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.41latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.41
1.0.31
1.0.20
0.0.0-development0

Package Sidebar

Install

npm i @estudio-cactus/eslint-config

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

34.5 kB

Total Files

12

Last publish

Collaborators

  • alejandrosuerosotecla
  • josegutierro