Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

My config with a lot of different rules (very strict)

License

Notifications You must be signed in to change notification settings

nik-rev/eslint-config-nikitarevenco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-nikitarevenco

Note

Not used anymore

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",
  },
});

About

My config with a lot of different rules (very strict)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published