5.0.0 • Published 1 year ago

@maxxxxxdlp/eslint-config v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.