@naturalcycles/dev-lib 13.55.0 → 13.56.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.
@@ -0,0 +1,8 @@
1
+ /*
2
+ This file has rules that has to go after `prettier` config, because they need to override it.
3
+ */
4
+ module.exports = {
5
+ rules: {
6
+ curly: [2, 'multi-line'],
7
+ },
8
+ }
@@ -153,7 +153,6 @@ module.exports = {
153
153
  },
154
154
  ],
155
155
  'constructor-super': 2,
156
- curly: [2, 'multi-line'],
157
156
  'eol-last': 2,
158
157
  eqeqeq: [2, 'smart'],
159
158
  'for-direction': 2,
@@ -171,8 +170,16 @@ module.exports = {
171
170
  'undefined',
172
171
  ],
173
172
  'id-match': 2,
174
- 'import/order': [
173
+ 'simple-import-sort/imports': [
175
174
  2,
175
+ {
176
+ // This is what "removes any newlines between imports":
177
+ groups: [['^\\u0000', '^node:', '^@?\\w', '^', '^\\.']],
178
+ },
179
+ ],
180
+ 'simple-import-sort/exports': 2,
181
+ 'import/order': [
182
+ 0, // disabled in favor of `simple-import-sort`
176
183
  {
177
184
  alphabetize: {
178
185
  order: 'asc',
@@ -40,6 +40,7 @@ module.exports = {
40
40
  hasJest && './eslint-jest-rules.js',
41
41
  './eslint-rules.js',
42
42
  'prettier', // must be last! it only turns off eslint rules that conflict with prettier
43
+ './eslint-rules-post-prettier.js', // ;)
43
44
  ].filter(Boolean),
44
45
  parser: '@typescript-eslint/parser',
45
46
  parserOptions: {
@@ -51,6 +52,7 @@ module.exports = {
51
52
  plugins: [
52
53
  'jsdoc',
53
54
  'import',
55
+ 'simple-import-sort',
54
56
  '@typescript-eslint',
55
57
  // https://github.com/sweepline/eslint-plugin-unused-imports
56
58
  'unused-imports',
@@ -5,4 +5,4 @@ export * from './expect.util';
5
5
  export * from './mockAllKindsOfThings';
6
6
  export * from './testing.util';
7
7
  export * from './time.util';
8
- export { timekeeper, expectTypeOf };
8
+ export { expectTypeOf, timekeeper };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.expectTypeOf = exports.timekeeper = void 0;
3
+ exports.timekeeper = exports.expectTypeOf = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const expect_type_1 = require("expect-type");
6
6
  Object.defineProperty(exports, "expectTypeOf", { enumerable: true, get: function () { return expect_type_1.expectTypeOf; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.55.0",
3
+ "version": "13.56.0",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -44,6 +44,7 @@
44
44
  "eslint-plugin-import": "^2.22.1",
45
45
  "eslint-plugin-jest": "^28.0.0",
46
46
  "eslint-plugin-jsdoc": "^48.0.1",
47
+ "eslint-plugin-simple-import-sort": "^12.1.1",
47
48
  "eslint-plugin-unicorn": "^54.0.0",
48
49
  "eslint-plugin-unused-imports": "^4.0.0",
49
50
  "eslint-plugin-vue": "^9.0.0",