0.6.3 • Published 4 months ago

@apitree.cz/eslint-config v0.6.3

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

ESLint Config

NPM Version

ESLint configuration for ApiTree projects

Installation

pnpm add --save-dev @apitree.cz/eslint-config eslint

Monorepos

Prior to the installation, add the following to your repository root .npmrc:

public-hoist-pattern[]=*eslint*

Install and use the package in the root only.

Usage

Use one of the following configurations in your repository's root eslint.config.js file.

Base

Suitable for general TypeScript projects.

export { base as default } from '@apitree.cz/eslint-config';

React

Necessary for React (JSX/MDX) projects.

import { base, react } from '@apitree.cz/eslint-config';
import { defineConfig } from 'eslint/config';

export default defineConfig(base, react);

Next.js

Next.js configuration requires to specify the path to the app(s).

import { base, react, nextjs } from '@apitree.cz/eslint-config';
import { defineConfig } from 'eslint/config';

export default defineConfig(base, react, nextjs(['apps/<nextjs-app>']));

Omit the apps array if you have a single Next.js app repository (no monorepo).

Nest.js

Nest.js configuration requires to specify the path to the app(s).

import { base, nestjs } from '@apitree.cz/eslint-config';
import { defineConfig } from 'eslint/config';

export default defineConfig(base, nestjs(['apps/<nestjs-app>']));

Omit the apps array if you have a single Nest.js app repository (no monorepo).

Storybook

Necessary for projects containing Storybook instance.

import { base, react, storybook } from '@apitree.cz/eslint-config';
import { defineConfig } from 'eslint/config';

export default defineConfig(base, react, storybook);

IntelliJ IDE Setup

Following IntelliJ IDEs setup is recommended for the best developer experience:

Recommended Values

Run for files

{**/*,*}.{js,mdx,ts,tsx}
0.3.6

9 months ago

0.5.8

6 months ago

0.5.7

6 months ago

0.5.9

5 months ago

0.4.1

9 months ago

0.4.0

9 months ago

0.4.2

9 months ago

0.5.4

9 months ago

0.5.3

9 months ago

0.5.6

9 months ago

0.5.5

9 months ago

0.5.0

9 months ago

0.5.2

9 months ago

0.5.1

9 months ago

0.6.3

4 months ago

0.6.2

5 months ago

0.6.1

5 months ago

0.6.0

5 months ago

0.3.0

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago