14.0.0 • Published 9 months ago

eslint-config-nikitarevenco v14.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

eslint-config-nikitarevenco

This is my personal config that I use in all of my projects. It has hundreds of eslint rules and is extremely strict.

pnpm add -D eslint-config-nikitarevenco

Usage

Most basic:

import nikitarevenco from "eslint-config-nikitarevenco";

export default nikitarevenco({
  project: "tsconfig.json",
  tsconfigRootDir: import.meta.dirname,
});

You can also override any rules, as well as disable an entire plugin by specifying false.

import nikitarevenco from "eslint-config-nikitarevenco";

const override = {
  "jsx-a11y": "off",
};

export default nikitarevenco(
  { project: "tsconfig.json", tsconfigRootDir: import.meta.dirname },
  { react: override, unicorn: false },
);

As well as pass in however many additional eslint configurations that you want:

import nikitarevenco from "eslint-config-nikitarevenco";

const override = {
  "jsx-a11y": "off"
}

export default nikitarevenco(
  { project: "tsconfig.json", tsconfigRootDir: import.meta.dirname },
  { react: override, unicorn: false },
  { plugins: /* ... */, rules: /* ... */ },
  { plugins: /* ... */, rules: /* ... */ }
  // ... etc
);

Rename the plugins

By default, none of the plugins are renamed.

You can override and specify your own custom names for each plugin.

import nikitarevenco from "eslint-config-nikitarevenco";

export default nikitarevenco({
  project: "tsconfig.json",
  tsconfigRootDir: import.meta.dirname,
  renames: {
    "@typescript-eslint": "typescript",
  },
});
10.0.0

9 months ago

6.0.0

9 months ago

14.0.0

9 months ago

13.0.0

9 months ago

7.0.0

9 months ago

12.0.0

9 months ago

8.0.0

9 months ago

12.0.1

9 months ago

9.0.0

9 months ago

11.0.0

9 months ago

5.0.0

9 months ago

3.1.3

10 months ago

3.1.2

10 months ago

3.0.2

10 months ago

3.0.1

10 months ago

3.1.7

10 months ago

3.1.6

10 months ago

3.1.5

10 months ago

3.1.4

10 months ago

3.0.0

10 months ago

4.0.0

10 months ago

3.1.8

10 months ago

2.3.0

11 months ago

2.2.0

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago