-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
59 lines (59 loc) · 1.67 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
/* eslint-env node */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'simple-import-sort'],
reportUnusedDisableDirectives: true,
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
tsconfigRootDir: __dirname,
project: ['./tsconfig.base.json', './apps/*/tsconfig.json', './packages/*/tsconfig.json']
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:turbo/recommended',
'plugin:unicorn/recommended',
'plugin:prettier/recommended'
],
rules: {
'@typescript-eslint/no-unused-vars': 'error',
'tsdoc/syntax': [
'error',
{
ignoreMessageIds: ['tsdoc-characters-after-block-tag']
}
],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unicorn/filename-case': [
'error',
{
cases: {
camelCase: true,
kebabCase: true,
pascalCase: true
}
}
],
'unicorn/prevent-abbreviations': [
'error',
{
checkFilenames: false
}
],
'unicorn/no-array-for-each': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-for-loop': 'off'
},
settings: {
react: {
version: 'detect'
},
next: {
rootDir: ['apps/*/']
}
}
}