This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.46 KB
/
.eslintrc.js
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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin', 'header'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'header/header': [
2,
'block',
[
'',
' This file is part of Nest GraphQL Fastify Template',
'',
' This project is dual-licensed under the Mozilla Public License 2.0 (MPLv2) and the',
' GNU General Public License version 3 (GPLv3).',
'',
' You may use, distribute, and modify this file under the terms of either the MPLv2',
' or GPLv3, at your option. If a copy of these licenses was not distributed with this',
' file. You may obtain a copy of the licenses at https://www.mozilla.org/en-US/MPL/2.0/',
' and https://www.gnu.org/licenses/gpl-3.0.en.html respectively.',
'',
` Copyright © ${new Date().getFullYear()}`,
' Afonso Barracha',
'',
],
2,
],
},
};