generated from mizdra/npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
36 lines (35 loc) · 832 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict';
/** @type {import('eslint').Linter.BaseConfig} */
module.exports = {
root: true,
extends: ['@mizdra/mizdra', '@mizdra/mizdra/+node', '@mizdra/mizdra/+prettier'],
parserOptions: {
ecmaVersion: 2022,
},
reportUnusedDisableDirectives: true,
env: {
es2022: true,
node: true,
},
rules: {
'no-use-before-define': 'off',
'import/no-extraneous-dependencies': 'off', // false positive
},
overrides: [
{
files: ['*.ts', '*.tsx', '*.cts', '*.mts'],
extends: ['@mizdra/mizdra/+typescript', '@mizdra/mizdra/+prettier'],
rules: {
'@typescript-eslint/ban-types': [
'error',
{
types: {
'{}': false,
},
},
],
'@typescript-eslint/naming-convention': 'off',
},
},
],
};