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
28
+
'@typescript-eslint/explicit-member-accessibility': 'error',// Enforce explicit accessibility modifiers on class properties and methods (public, private, protected)
'@typescript-eslint/no-explicit-any': 'error',// Disallow usage of the any type
49
+
'@typescript-eslint/no-unused-vars': ['error',{argsIgnorePattern: '^_'}],// Disallow unused variables, except for variables starting with an underscore
50
+
'@typescript-eslint/no-use-before-define': ['off'],// Check if this rule is needed
51
+
'no-unused-vars': 'off',// Disable eslint core rule, since it's replaced by @typescript-eslint/no-unused-vars
52
+
// Rules from eslint core https://eslint.org/docs/latest/rules/
53
+
'array-bracket-spacing': ['error','never'],// Disallow spaces inside of array brackets
54
+
'computed-property-spacing': ['error','never'],// Disallow spaces inside of computed properties
55
+
'func-style': ['warn','expression'],// Enforce function expressions instead of function declarations
56
+
'keyword-spacing': 'error',// Enforce spaces after keywords and before parenthesis, e.g. if (condition) instead of if(condition)
57
+
'padding-line-between-statements': [
58
+
// Require an empty line before return statements
59
+
'error',
60
+
{blankLine: 'always',prev: '*',next: 'return'},
61
+
],
62
+
'no-console': 0,// Allow console.log statements
63
+
'no-multi-spaces': ['error',{ignoreEOLComments: false}],// Disallow multiple spaces except for comments
64
+
'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
65
+
'no-throw-literal': 'error',// Disallow throwing literals as exceptions, e.g. throw 'error' instead of throw new Error('error')
66
+
'object-curly-spacing': ['error','always'],// Enforce spaces inside of curly braces in objects
67
+
'prefer-arrow-callback': 'error',// Enforce arrow functions instead of anonymous functions for callbacks
68
+
quotes: ['error','single',{allowTemplateLiterals: true}],// Enforce single quotes except for template strings
69
+
semi: ['error','always'],// Require semicolons instead of ASI (automatic semicolon insertion) at the end of statements
0 commit comments