This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
59 lines (52 loc) · 1.5 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'@monorepo-template/eslint-config/typescript',
'@monorepo-template/eslint-config/typescript-fixable',
'@monorepo-template/eslint-config/typescript-strict',
'prettier',
],
overrides: [
{
files: ['.eslintrc.cjs'],
extends: '@monorepo-template/eslint-config/typescript/eslint',
},
{
files: ['*.cjs', '*.js', '*.jsx'],
extends: '@monorepo-template/eslint-config/typescript/cjs',
},
{
files: ['*.cjs', '*.js', '*.jsx', '*.mjs'],
extends: [
'@monorepo-template/eslint-config/typescript/js',
'@monorepo-template/eslint-config/typescript-fixable/js',
],
},
{
files: ['*.json'],
extends: [
'@monorepo-template/eslint-config/typescript/json',
'@monorepo-template/eslint-config/typescript-fixable/json',
],
},
{
files: ['*.ts', '*.tsx'],
extends: ['@monorepo-template/eslint-config/typescript/ts'],
},
],
parserOptions: {
extraFileExtensions: ['.json'],
project: ['./tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
};