@clipboard-health/eslint-config 2.2.1 → 2.3.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
@@ -2,6 +2,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.3.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.2...eslint-config-2.3.0) (2023-05-09)
6
+
7
+
8
+ ### Features
9
+
10
+ * allow `message-producer` clients to pass arbitrary message attributes ([#43](https://github.com/ClipboardHealth/cbh-core/issues/43)) ([2e94876](https://github.com/ClipboardHealth/cbh-core/commit/2e94876e286da9bcf08b0345bd36316538843178))
11
+
12
+ ## [2.2.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.1...eslint-config-2.2.2) (2023-04-28)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * enable @typescript-eslint/consistent-type-imports ([2937f19](https://github.com/ClipboardHealth/cbh-core/commit/2937f19d51306374d5fa4f7bbdda8f5a74857896))
18
+
5
19
  ## [2.2.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.0...eslint-config-2.2.1) (2023-04-28)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/eslint-config",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "main": "./src/index.js",
5
5
  "scripts": {
6
6
  "build": "nx build eslint-config",
package/src/xo.d.ts CHANGED
@@ -8,12 +8,13 @@ export declare namespace parserOptions {
8
8
  export declare const plugins: string[];
9
9
  export declare const rules: {
10
10
  "@typescript-eslint/naming-convention": string;
11
- "@typescript-eslint/consistent-type-imports": string;
12
11
  "@typescript-eslint/no-unused-vars": (string | {
13
12
  argsIgnorePattern: string;
14
13
  })[];
15
14
  "capitalized-comments": string;
15
+ "import/extensions": string;
16
16
  "import/no-unresolved": string;
17
+ "import/prefer-default-export": string;
17
18
  "n/no-missing-import": string;
18
19
  "n/no-unpublished-import": string;
19
20
  "new-cap": (string | {
@@ -21,9 +22,11 @@ export declare const rules: {
21
22
  capIsNew: boolean;
22
23
  })[];
23
24
  "no-only-tests/no-only-tests": string;
25
+ "no-use-before-define": string;
24
26
  "simple-import-sort/imports": string;
25
27
  "simple-import-sort/exports": string;
26
28
  "unicorn/no-array-for-each": string;
29
+ "unicorn/no-array-reduce": string;
27
30
  "unicorn/prefer-module": string;
28
31
  };
29
32
  export declare namespace settings {
package/src/xo.js CHANGED
@@ -2,6 +2,8 @@
2
2
  module.exports = {
3
3
  extends: [
4
4
  "plugin:eslint-comments/recommended",
5
+ "plugin:jest/recommended",
6
+ "plugin:jest/style",
5
7
  "plugin:import/recommended",
6
8
  "plugin:n/recommended",
7
9
  "plugin:no-use-extend-native/recommended",
@@ -15,20 +17,23 @@ module.exports = {
15
17
  project: ["tsconfig.json"],
16
18
  tsconfigRootDir: __dirname,
17
19
  },
18
- plugins: ["no-only-tests", "simple-import-sort"],
20
+ plugins: ["jest", "no-only-tests", "simple-import-sort"],
19
21
  rules: {
20
22
  "@typescript-eslint/naming-convention": "off",
21
- "@typescript-eslint/consistent-type-imports": "off",
22
23
  "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
23
24
  "capitalized-comments": "off",
25
+ "import/extensions": "off",
24
26
  "import/no-unresolved": "off",
27
+ "import/prefer-default-export": "off",
25
28
  "n/no-missing-import": "off",
26
29
  "n/no-unpublished-import": "off",
27
30
  "new-cap": ["warn", { newIsCap: true, capIsNew: false }],
28
31
  "no-only-tests/no-only-tests": "error",
32
+ "no-use-before-define": "off",
29
33
  "simple-import-sort/imports": "warn",
30
34
  "simple-import-sort/exports": "warn",
31
35
  "unicorn/no-array-for-each": "off",
36
+ "unicorn/no-array-reduce": "off",
32
37
  "unicorn/prefer-module": "off",
33
38
  },
34
39
  settings: { node: { version: ">=18.15.0" } },
package/src/xo.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"xo.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE;QACP,oCAAoC;QACpC,2BAA2B;QAC3B,sBAAsB;QACtB,yCAAyC;QACzC,4BAA4B;QAC5B,UAAU;QACV,IAAI;QACJ,qBAAqB;KACtB;IACD,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,eAAe,EAAE,SAAS;KAC3B;IACD,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB,CAAC;IAChD,KAAK,EAAE;QACL,sCAAsC,EAAE,KAAK;QAC7C,4CAA4C,EAAE,KAAK;QACnD,mCAAmC,EAAE,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC;QAC1E,sBAAsB,EAAE,KAAK;QAC7B,sBAAsB,EAAE,KAAK;QAC7B,qBAAqB,EAAE,KAAK;QAC5B,yBAAyB,EAAE,KAAK;QAChC,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACxD,6BAA6B,EAAE,OAAO;QACtC,4BAA4B,EAAE,MAAM;QACpC,4BAA4B,EAAE,MAAM;QACpC,2BAA2B,EAAE,KAAK;QAClC,uBAAuB,EAAE,KAAK;KAC/B;IACD,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;CAC7C,CAAC"}
1
+ {"version":3,"file":"xo.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE;QACP,oCAAoC;QACpC,yBAAyB;QACzB,mBAAmB;QACnB,2BAA2B;QAC3B,sBAAsB;QACtB,yCAAyC;QACzC,4BAA4B;QAC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