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.
Files changed (2) hide show
  1. package/backend.js +16 -1
  2. 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': 0,
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-instant",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",