@maxxxxxdlp/eslint-config
v5.0.0
Published
A very strict ESLint config with support for TypeScript and Prettier
Downloads
664
Maintainers
Readme
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.