@clipboard-health/eslint-config 2.2.0 → 2.2.2

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.2.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.1...eslint-config-2.2.2) (2023-04-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * enable @typescript-eslint/consistent-type-imports ([2937f19](https://github.com/ClipboardHealth/cbh-core/commit/2937f19d51306374d5fa4f7bbdda8f5a74857896))
11
+
12
+ ## [2.2.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.0...eslint-config-2.2.1) (2023-04-28)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * ts tests ([d560e82](https://github.com/ClipboardHealth/cbh-core/commit/d560e82adde30430ad72aca087d205771ae86044))
18
+
5
19
  ## [2.2.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.1.2...eslint-config-2.2.0) (2023-04-27)
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.0",
3
+ "version": "2.2.2",
4
4
  "main": "./src/index.js",
5
5
  "scripts": {
6
6
  "build": "nx build eslint-config",
@@ -0,0 +1,7 @@
1
+ declare const _extends: string[];
2
+ export { _extends as extends };
3
+ export declare namespace parserOptions {
4
+ const project: string[];
5
+ const tsconfigRootDir: string;
6
+ }
7
+ //# sourceMappingURL=xo-react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xo-react.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo-react.js"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ module.exports = {
3
+ extends: ["./xo", "xo-react/space"],
4
+ parserOptions: {
5
+ project: ["tsconfig.json"],
6
+ tsconfigRootDir: __dirname,
7
+ },
8
+ };
9
+ //# sourceMappingURL=xo-react.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xo-react.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/xo-react.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC;IACnC,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,eAAe,EAAE,SAAS;KAC3B;CACF,CAAC"}
package/src/xo.d.ts CHANGED
@@ -8,14 +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/no-unsafe-assignment": string;
12
- "@typescript-eslint/no-unsafe-call": string;
13
- "@typescript-eslint/consistent-type-imports": string;
14
11
  "@typescript-eslint/no-unused-vars": (string | {
15
12
  argsIgnorePattern: string;
16
13
  })[];
17
14
  "capitalized-comments": string;
18
- "import/order": string;
15
+ "import/no-unresolved": string;
16
+ "n/no-missing-import": string;
17
+ "n/no-unpublished-import": string;
19
18
  "new-cap": (string | {
20
19
  newIsCap: boolean;
21
20
  capIsNew: boolean;
@@ -23,5 +22,12 @@ export declare const rules: {
23
22
  "no-only-tests/no-only-tests": string;
24
23
  "simple-import-sort/imports": string;
25
24
  "simple-import-sort/exports": string;
25
+ "unicorn/no-array-for-each": string;
26
+ "unicorn/prefer-module": string;
26
27
  };
28
+ export declare namespace settings {
29
+ namespace node {
30
+ const version: string;
31
+ }
32
+ }
27
33
  //# sourceMappingURL=xo.d.ts.map
package/src/xo.js CHANGED
@@ -1,6 +1,15 @@
1
1
  "use strict";
2
2
  module.exports = {
3
- extends: ["prettier", "xo", "xo-react/space", "xo-typescript/space"],
3
+ extends: [
4
+ "plugin:eslint-comments/recommended",
5
+ "plugin:import/recommended",
6
+ "plugin:n/recommended",
7
+ "plugin:no-use-extend-native/recommended",
8
+ "plugin:unicorn/recommended",
9
+ "prettier",
10
+ "xo",
11
+ "xo-typescript/space",
12
+ ],
4
13
  parser: "@typescript-eslint/parser",
5
14
  parserOptions: {
6
15
  project: ["tsconfig.json"],
@@ -9,16 +18,18 @@ module.exports = {
9
18
  plugins: ["no-only-tests", "simple-import-sort"],
10
19
  rules: {
11
20
  "@typescript-eslint/naming-convention": "off",
12
- "@typescript-eslint/no-unsafe-assignment": "off",
13
- "@typescript-eslint/no-unsafe-call": "off",
14
- "@typescript-eslint/consistent-type-imports": "off",
15
21
  "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
16
22
  "capitalized-comments": "off",
17
- "import/order": "off",
23
+ "import/no-unresolved": "off",
24
+ "n/no-missing-import": "off",
25
+ "n/no-unpublished-import": "off",
18
26
  "new-cap": ["warn", { newIsCap: true, capIsNew: false }],
19
27
  "no-only-tests/no-only-tests": "error",
20
28
  "simple-import-sort/imports": "warn",
21
29
  "simple-import-sort/exports": "warn",
30
+ "unicorn/no-array-for-each": "off",
31
+ "unicorn/prefer-module": "off",
22
32
  },
33
+ settings: { node: { version: ">=18.15.0" } },
23
34
  };
24
35
  //# sourceMappingURL=xo.js.map
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,CAAC,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,qBAAqB,CAAC;IACpE,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,yCAAyC,EAAE,KAAK;QAChD,m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