You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
],// Enforce return type definitions for functions
32
29
'@typescript-eslint/explicit-member-accessibility': 'error',// Enforce explicit accessibility modifiers on class properties and methods (public, private, protected)
33
-
// '@typescript-eslint/indent': [ 'error', 2, { SwitchCase: 1 } ], // Rule is already defined in eslint core, also not recommended by typescript-eslint - prettier could be used instead
34
-
// '@typescript-eslint/interface-name-prefix': ['off'], // Probably not needed
35
-
// '@typescript-eslint/member-delimiter-style': [ 'error', { multiline: { delimiter: 'none' }} ], // Propose to disable this rule in favor of prettier as recommended here https://typescript-eslint.io/rules/member-delimiter-style/
'@typescript-eslint/no-explicit-any': 'error',// Disallow usage of the any type
56
-
// '@typescript-eslint/no-inferrable-types': ['off'], // Propose to disable this rule - read here why https://typescript-eslint.io/rules/no-inferrable-types/
57
50
'@typescript-eslint/no-unused-vars': ['error',{argsIgnorePattern: '^_'}],// Disallow unused variables, except for variables starting with an underscore
58
51
'@typescript-eslint/no-use-before-define': ['off'],// Check if this rule is needed
59
-
// '@typescript-eslint/semi': [ 'error', 'always' ], Rule is already defined in eslint core, and also not recommended by typescript-eslint - prettier could be used instead
60
52
'no-unused-vars': 'off',// Disable eslint core rule, since it's replaced by @typescript-eslint/no-unused-vars
61
53
// Rules from eslint core https://eslint.org/docs/latest/rules/
62
54
'array-bracket-spacing': ['error','never'],// Disallow spaces inside of array brackets
63
-
// 'arrow-body-style': [ 'error', 'as-needed' ], Default is already 'as-needed'
64
55
'computed-property-spacing': ['error','never'],// Disallow spaces inside of computed properties
65
56
'func-style': ['warn','expression'],// Enforce function expressions instead of function declarations
66
-
// indent: ['error', 2, { SwitchCase: 1 }],
67
57
'keyword-spacing': 'error',// Enforce spaces after keywords and before parenthesis, e.g. if (condition) instead of if(condition)
68
58
'padding-line-between-statements': [
69
59
// Require an empty line before return statements
70
60
'error',
71
61
{blankLine: 'always',prev: '*',next: 'return'},
72
62
],
73
-
// 'newline-before-return': 2, // Deprecated in favor of padding-line-between-statements
74
63
'no-console': 0,// Allow console.log statements
75
64
'no-multi-spaces': ['error',{ignoreEOLComments: false}],// Disallow multiple spaces except for comments
76
65
'no-multiple-empty-lines': ['error',{max: 1,maxBOF: 0,maxEOF: 0}],// Enforce no empty line at the beginning & end of files and max 1 empty line between consecutive statements
0 commit comments