forked from kaogeek/kaogeek-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
43 lines (41 loc) · 923 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
37
38
39
40
41
42
43
// @ts-check
/** @satisfies {import('eslint').Linter.Config} */
const config = {
root: true,
env: {
node: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint/eslint-plugin', 'import', 'unicorn'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:unicorn/recommended',
'plugin:prettier/recommended',
],
rules: {
eqeqeq: 'error',
'no-constant-binary-expression': 'error',
'import/no-cycle': 'warn',
'import/no-duplicates': 'warn',
'prettier/prettier': 'warn',
'unicorn/filename-case': [
'error',
{
cases: {
camelCase: true,
pascalCase: true,
},
},
],
'unicorn/no-null': 'off',
'unicorn/prevent-abbreviations': [
'error',
{
ignore: ['\\.e2e\\.'],
},
],
},
ignorePatterns: ['dist'],
}
module.exports = config