-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
52 lines (52 loc) · 1.43 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
47
48
49
50
51
52
module.exports = {
root: true,
env: {
es2022: true,
node: true,
mocha: true,
},
parserOptions: {
ecmaVersion: 13,
project: ['tsconfig.json'],
sourceType: 'module',
tsconfigRootDir: __dirname,
},
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
ignorePatterns: [
'/lib/**/*', // Ignore built files.
],
plugins: [
'@typescript-eslint',
'import',
],
rules: {
// Basic ES6
indent: [
'error', 4, { // use 4 spaces for indents
'SwitchCase': 1, // indent case within switch
}
],
'linebreak-style': 0, // mixed environment let git config enforce line endings
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-var': 'error',
'no-console': 0, // allow use of console.log,
'arrow-body-style': [0, 'always'],
'max-len': 0,
'camelcase': 1,
'import/no-unresolved': [
'error', {
// https://github.com/firebase/firebase-admin-node/discussions/1359
ignore: ['^firebase-admin/.+'],
},
],
'@typescript-eslint/consistent-type-definitions': 'warn'
},
};