@ms-cloudpack/eslint-plugin 0.5.0 → 0.6.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/README.md CHANGED
@@ -14,6 +14,7 @@ This plugin includes the following configs:
14
14
  - All `recommended` rules
15
15
  - [`@typescript-eslint/consistent-type-exports`](https://typescript-eslint.io/rules/consistent-type-exports)
16
16
  - [`@typescript-eslint/consistent-type-imports`](https://typescript-eslint.io/rules/consistent-type-imports)
17
+ - [`@typescript-eslint/no-import-type-side-effects`](https://typescript-eslint.io/rules/no-import-type-side-effects)
17
18
  - `onboarding`: Includes the same rules as `recommended`, but at warn level.
18
19
  - `onboarding-requiring-type-checking`: As above.
19
20
 
@@ -1 +1 @@
1
- {"version":3,"file":"classic.d.ts","sourceRoot":"","sources":["../../src/configs/classic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;AAyBxG,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC"}
1
+ {"version":3,"file":"classic.d.ts","sourceRoot":"","sources":["../../src/configs/classic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;AA0BxG,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC"}
@@ -19,6 +19,7 @@ function makeTypeCheckedConfig(level) {
19
19
  ...baseConfig.rules,
20
20
  '@typescript-eslint/consistent-type-imports': level,
21
21
  '@typescript-eslint/consistent-type-exports': level,
22
+ '@typescript-eslint/no-import-type-side-effects': level,
22
23
  },
23
24
  };
24
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"classic.js","sourceRoot":"","sources":["../../src/configs/classic.ts"],"names":[],"mappings":";;;AAIA,SAAS,UAAU,CAAC,KAAuB;IACzC,OAAO;QACL,OAAO,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,oBAAoB,CAAC;QAC5D,KAAK,EAAE;YACL,sCAAsC,EAAE,KAAK;YAC7C,wBAAwB,EAAE,KAAK;YAC/B,wBAAwB,EAAE,KAAK;SAChC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAuB;IACpD,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO;QACL,GAAG,UAAU;QACb,KAAK,EAAE;YACL,GAAG,UAAU,CAAC,KAAK;YACnB,4CAA4C,EAAE,KAAK;YACnD,4CAA4C,EAAE,KAAK;SACpD;KACF,CAAC;AACJ,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC;IAChC,qCAAqC,EAAE,qBAAqB,CAAC,OAAO,CAAC;IACrE,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC9B,oCAAoC,EAAE,qBAAqB,CAAC,MAAM,CAAC;CACpE,CAAC","sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\n\nexport type CloudpackClassicConfig = Required<Pick<TSESLint.ClassicConfig.Config, 'plugins' | 'rules'>>;\n\nfunction makeConfig(level: 'error' | 'warn'): CloudpackClassicConfig {\n return {\n plugins: ['@ms-cloudpack', '@rnx-kit', '@typescript-eslint'],\n rules: {\n '@ms-cloudpack/no-unsupported-imports': level,\n '@rnx-kit/no-const-enum': level,\n '@rnx-kit/no-export-all': level,\n },\n };\n}\n\nfunction makeTypeCheckedConfig(level: 'error' | 'warn'): CloudpackClassicConfig {\n const baseConfig = makeConfig(level);\n return {\n ...baseConfig,\n rules: {\n ...baseConfig.rules,\n '@typescript-eslint/consistent-type-imports': level,\n '@typescript-eslint/consistent-type-exports': level,\n },\n };\n}\n\nexport const configs = {\n recommended: makeConfig('error'),\n 'recommended-requiring-type-checking': makeTypeCheckedConfig('error'),\n onboarding: makeConfig('warn'),\n 'onboarding-requiring-type-checking': makeTypeCheckedConfig('warn'),\n};\n"]}
1
+ {"version":3,"file":"classic.js","sourceRoot":"","sources":["../../src/configs/classic.ts"],"names":[],"mappings":";;;AAIA,SAAS,UAAU,CAAC,KAAuB;IACzC,OAAO;QACL,OAAO,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,oBAAoB,CAAC;QAC5D,KAAK,EAAE;YACL,sCAAsC,EAAE,KAAK;YAC7C,wBAAwB,EAAE,KAAK;YAC/B,wBAAwB,EAAE,KAAK;SAChC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAuB;IACpD,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO;QACL,GAAG,UAAU;QACb,KAAK,EAAE;YACL,GAAG,UAAU,CAAC,KAAK;YACnB,4CAA4C,EAAE,KAAK;YACnD,4CAA4C,EAAE,KAAK;YACnD,gDAAgD,EAAE,KAAK;SACxD;KACF,CAAC;AACJ,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC;IAChC,qCAAqC,EAAE,qBAAqB,CAAC,OAAO,CAAC;IACrE,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC9B,oCAAoC,EAAE,qBAAqB,CAAC,MAAM,CAAC;CACpE,CAAC","sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\n\nexport type CloudpackClassicConfig = Required<Pick<TSESLint.ClassicConfig.Config, 'plugins' | 'rules'>>;\n\nfunction makeConfig(level: 'error' | 'warn'): CloudpackClassicConfig {\n return {\n plugins: ['@ms-cloudpack', '@rnx-kit', '@typescript-eslint'],\n rules: {\n '@ms-cloudpack/no-unsupported-imports': level,\n '@rnx-kit/no-const-enum': level,\n '@rnx-kit/no-export-all': level,\n },\n };\n}\n\nfunction makeTypeCheckedConfig(level: 'error' | 'warn'): CloudpackClassicConfig {\n const baseConfig = makeConfig(level);\n return {\n ...baseConfig,\n rules: {\n ...baseConfig.rules,\n '@typescript-eslint/consistent-type-imports': level,\n '@typescript-eslint/consistent-type-exports': level,\n '@typescript-eslint/no-import-type-side-effects': level,\n },\n };\n}\n\nexport const configs = {\n recommended: makeConfig('error'),\n 'recommended-requiring-type-checking': makeTypeCheckedConfig('error'),\n onboarding: makeConfig('warn'),\n 'onboarding-requiring-type-checking': makeTypeCheckedConfig('warn'),\n};\n"]}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/eslint-plugin",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "A set of ESLint rules for Cloudpack",
5
5
  "license": "MIT",
6
- "main": "lib/index.js",
7
6
  "type": "commonjs",
7
+ "main": "lib/index.js",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./lib/index.d.ts",