@jarsec/eslint-config 5.0.0 → 5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @jarsec/eslint-config
2
2
 
3
+ ## 5.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c596d63: Add import-newlines plugin
8
+
9
+ ## 5.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 6dd6e99: Tweaks to unicorn and stylistic rules
14
+
3
15
  ## 5.0.0
4
16
 
5
17
  ### Major Changes
package/configs/style.js CHANGED
@@ -40,10 +40,8 @@ module.exports = {
40
40
  '@stylistic/keyword-spacing': 'error',
41
41
  '@stylistic/linebreak-style': ['error', 'unix'],
42
42
  '@stylistic/lines-around-comment': ['error', {
43
- afterHashbangComment: true,
44
- allowClassStart: true,
43
+ allowBlockStart: true,
45
44
  beforeBlockComment: true,
46
- beforeLineComment: true
47
45
  }],
48
46
  '@stylistic/lines-between-class-members': ['error', 'always'],
49
47
  '@stylistic/max-len': ['error', {
@@ -117,7 +115,11 @@ module.exports = {
117
115
  '@stylistic/semi-spacing': 'error',
118
116
  '@stylistic/semi-style': 'error',
119
117
  '@stylistic/space-before-blocks': 'error',
120
- '@stylistic/space-before-function-paren': ['error', 'never'],
118
+ '@stylistic/space-before-function-paren': ['error', {
119
+ anonymous: 'always',
120
+ asyncArrow: 'always',
121
+ named: 'never'
122
+ }],
121
123
  '@stylistic/space-in-parens': ['error', 'never'],
122
124
  '@stylistic/switch-colon-spacing': 'error',
123
125
  '@stylistic/template-curly-spacing': 'error',
package/index.js CHANGED
@@ -48,10 +48,26 @@ module.exports = {
48
48
  'import',
49
49
  'perfectionist',
50
50
  'unicorn',
51
- '@stylistic'
51
+ '@stylistic',
52
+ 'import-newlines'
52
53
  ],
53
54
  rules: {
54
- ...styleRules
55
+ ...styleRules,
56
+ 'import-newlines/enforce': ['error', {
57
+ 'items': 2,
58
+ 'max-len': 100,
59
+ 'semi': true
60
+ }],
61
+ 'multiline-comment-style': [
62
+ 'error',
63
+ 'separate-lines'
64
+ ],
65
+ 'n/no-missing-import': 'off',
66
+ 'n/no-process-exit': 'off',
67
+ 'unicorn/no-process-exit': 'off',
68
+ 'unicorn/prefer-module': 'off',
69
+ 'unicorn/prefer-top-level-await': 'off',
70
+ 'unicorn/prevent-abbreviations': 'off'
55
71
  }
56
72
  };
57
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jarsec/eslint-config",
3
- "version": "5.0.0",
3
+ "version": "5.2.0",
4
4
  "description": "jsec's eslint configurations",
5
5
  "author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
6
6
  "main": "index.js",
@@ -18,6 +18,7 @@
18
18
  "eslint": "^8.57.0",
19
19
  "eslint-import-resolver-typescript": "^3.6.1",
20
20
  "eslint-plugin-import": "^2.29.1",
21
+ "eslint-plugin-import-newlines": "^1.4.0",
21
22
  "eslint-plugin-n": "^16.6.2",
22
23
  "eslint-plugin-perfectionist": "^2.5.0",
23
24
  "eslint-plugin-promise": "^6.1.1",