@acrontum/eslint-config
v2.0.1
Published
ACR recommended typescript + prettier + eslint rules based off a strict ruleset, specifically: - [plugin:prettier/recommended](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/strict-type-checked.ts). - [
Readme
ACR eslint config
ACR recommended typescript + prettier + eslint rules based off a strict ruleset, specifically:
Because eslint is annoying to configure, this package aims to provide some sane defaults without all the fiddly bits.
Table of Contents
Install
npm install --save-dev @acrontum/eslint-configUsage
Configure
Version 2+ supports only flat config:
// eslint.config.mjs
import acrLint from '@acrontum/eslint-config';
import { defineConfig } from "eslint/config";
export default defineConfig(
// your rules here
acrLint,
// or here, if you think you're more special
);For angular (also npm i -D angular-eslint):
// eslint.config.mjs
import acrLint from '@acrontum/eslint-config/angular-recommended.mjs';
import { defineConfig } from "eslint/config";
export default defineConfig(
// your rules here
acrLint,
// or here, if you think you're more special
);Run
npx eslint src