@maxxxxxdlp/eslint-config

5.0.0 • Public • Published

ESLint Configuration

A very strict configuration for ESLint with support for TypeScript and Prettier.

NOTE: This config does not provide React rules. There is a separate configuration that complements this one with React-specific rules

Usage

Install dependencies:

npm install --save-dev @maxxxxxdlp/eslintrc globals

Then, create eslint.config.js at the root directory of your project:

import eslintConfig from '@maxxxxxdlp/eslint-config';
import globals from 'globals';

export default [
  ...eslintConfig,
  {
    languageOptions: {
      parserOptions: {
        project: './tsconfig.json',
      },
      globals: {
        ...globals.browser,
        ...globals.node,
      },
    },
    rules: {
      // Example of overriding the configuration:
      '@typescript-eslint/no-empty-interface': 'off',
    },
  },
];

The config is using Flat Config style.

Package Sidebar

Install

npm i @maxxxxxdlp/eslint-config

Weekly Downloads

89

Version

5.0.0

License

MIT

Unpacked Size

33.7 kB

Total Files

4

Last publish

Collaborators

  • maxxxxxdlp