forked from cerinoligutom/GraphQL-Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
35 lines (33 loc) · 948 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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 'latest',
project: ['./tsconfig.eslint.json'],
},
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
rules: {
'no-console': ['warn', { allow: ['info', 'error'] }],
quotes: ['error', 'single'],
'arrow-body-style': ['error', 'as-needed'],
'no-underscore-dangle': 'off',
'no-restricted-syntax': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: 'ctx|args|req|res|next|^_',
},
],
'@typescript-eslint/no-empty-interface': 'off',
},
overrides: [
{
files: ['./src/**/*.error.ts', './src/**/*.handler.ts', './src/**/*.factory.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
],
};