eslint-config-instant 1.1.9 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend.js +16 -1
- package/package.json +1 -1
package/backend.js
CHANGED
|
@@ -63,7 +63,22 @@ module.exports = {
|
|
|
63
63
|
'no-param-reassign': 0,
|
|
64
64
|
'no-underscore-dangle': 0,
|
|
65
65
|
'no-use-before-define': 0,
|
|
66
|
-
'no-console':
|
|
66
|
+
'no-console': ['error', { allow: ['error'] }],
|
|
67
|
+
'padding-line-between-statements': 'off',
|
|
68
|
+
'@typescript-eslint/padding-line-between-statements': [
|
|
69
|
+
'error',
|
|
70
|
+
// blank line before return
|
|
71
|
+
{ blankLine: 'always', prev: '*', next: 'return' },
|
|
72
|
+
// blank line before and after block like statements
|
|
73
|
+
{ blankLine: 'always', prev: '*', next: 'block-like' },
|
|
74
|
+
{ blankLine: 'always', prev: 'block-like', next: '*' },
|
|
75
|
+
// blank line before and after function declarations
|
|
76
|
+
{ blankLine: 'always', prev: '*', next: 'function' },
|
|
77
|
+
{ blankLine: 'always', prev: 'function', next: '*' }
|
|
78
|
+
],
|
|
79
|
+
'spaced-comment': 'error',
|
|
80
|
+
// default case in a switch needs to be last
|
|
81
|
+
'default-case-last': 'error',
|
|
67
82
|
|
|
68
83
|
'import/order': [
|
|
69
84
|
'error',
|