-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.63 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
53
54
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
env: {
node: true,
es2022: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier',
],
rules: {
'no-multi-spaces': 2,
'@typescript-eslint/explicit-function-return-type': 0, // Temporary, until code violations are fixed
'@typescript-eslint/no-explicit-any': 0, // Temporary, until code violations are fixed
'@typescript-eslint/no-parameter-properties': 0,
'@typescript-eslint/explicit-member-accessibility': [
2,
{
accessibility: 'explicit',
overrides: {
accessors: 'off', // Same as methods
constructors: 'no-public', // Just don't care, avoid bloat
methods: 'off', // We want to be able to use a 'no access', to show it's used by the template but not meant to be used by outside callers
properties: 'off',
// parameterProperties: 'explicit'
},
},
],
'@typescript-eslint/no-object-literal-type-assertion': [
0,
{
// Ideally would like to enable this, but I can't make the allow-arguments option to work
'allow-arguments': true,
},
],
'@typescript-eslint/no-unused-vars': [
1,
{
vars: 'all',
args: 'none', // When implementing interfaces, I find it's easier to read if all parameters are always declared
ignoreRestSiblings: false,
},
],
'@typescript-eslint/no-use-before-define': 0,
'no-extra-boolean-cast': 0,
'@typescript-eslint/no-empty-function': 0,
},
};