@ms-cloudpack/eslint-plugin-deprecated 0.1.4 → 0.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/lib/index.d.ts CHANGED
@@ -10,7 +10,7 @@ declare const plugin: {
10
10
  namespace: string;
11
11
  };
12
12
  rules: {
13
- '@ms-cloudpack/no-deprecated': TSESLint.RuleModule<"forbidden", [({
13
+ 'no-deprecated': TSESLint.RuleModule<"forbidden", [({
14
14
  ignoredSelectors?: string[];
15
15
  } | undefined)?], unknown, TSESLint.RuleListener>;
16
16
  };
@@ -26,7 +26,7 @@ declare const plugin: {
26
26
  namespace: string;
27
27
  };
28
28
  rules: {
29
- '@ms-cloudpack/no-deprecated': TSESLint.RuleModule<"forbidden", [({
29
+ 'no-deprecated': TSESLint.RuleModule<"forbidden", [({
30
30
  ignoredSelectors?: string[];
31
31
  } | undefined)?], unknown, TSESLint.RuleListener>;
32
32
  };
@@ -43,7 +43,7 @@ declare const plugin: {
43
43
  namespace: string;
44
44
  };
45
45
  rules: {
46
- '@ms-cloudpack/no-deprecated': TSESLint.RuleModule<"forbidden", [({
46
+ 'no-deprecated': TSESLint.RuleModule<"forbidden", [({
47
47
  ignoredSelectors?: string[];
48
48
  } | undefined)?], unknown, TSESLint.RuleListener>;
49
49
  };
package/lib/index.js CHANGED
@@ -5,7 +5,7 @@ const { name, version } = JSON.parse(fs.readFileSync(path.resolve(import.meta.di
5
5
  const basePlugin = {
6
6
  meta: { name, version, namespace: '@ms-cloudpack' },
7
7
  rules: {
8
- '@ms-cloudpack/no-deprecated': noDeprecated,
8
+ 'no-deprecated': noDeprecated,
9
9
  },
10
10
  // Use `satisfies` to preserve the original property names
11
11
  };
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAGjH,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE;IACnD,KAAK,EAAE;QACL,6BAA6B,EAAE,YAAY;KAC5C;IACD,0DAA0D;CACtB,CAAC;AAEvC,MAAM,OAAO,GAAG;IACd,eAAe,EAAE,UAAU;CAC5B,CAAC;AAEF,MAAM,MAAM,GAAG;IACb,GAAG,UAAU;IACb,OAAO,EAAE;QACP,IAAI,EAAE,EAAE,OAAO,EAAE;QACjB,WAAW,EAAE;YACX,OAAO;YACP,KAAK,EAAE,EAAE,6BAA6B,EAAE,OAAO,EAAE;SAClD;KACF;IACD,0DAA0D;CACtB,CAAC;AAEvC,eAAe,MAAM,CAAC","sourcesContent":["import fs from 'fs';\nimport path from 'path';\nimport type { TSESLint } from '@typescript-eslint/utils';\nimport noDeprecated from './rules/no-deprecated.ts';\n\nconst { name, version } = JSON.parse(fs.readFileSync(path.resolve(import.meta.dirname, '../package.json'), 'utf8')) as {\n name: string;\n version: string;\n};\n\nconst basePlugin = {\n meta: { name, version, namespace: '@ms-cloudpack' },\n rules: {\n '@ms-cloudpack/no-deprecated': noDeprecated,\n },\n // Use `satisfies` to preserve the original property names\n} satisfies TSESLint.FlatConfig.Plugin;\n\nconst plugins = {\n '@ms-cloudpack': basePlugin,\n};\n\nconst plugin = {\n ...basePlugin,\n configs: {\n base: { plugins },\n recommended: {\n plugins,\n rules: { '@ms-cloudpack/no-deprecated': 'error' },\n },\n },\n // Use `satisfies` to preserve the original property names\n} satisfies TSESLint.FlatConfig.Plugin;\n\nexport default plugin;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAGjH,CAAC;AAEF,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE;IACnD,KAAK,EAAE;QACL,eAAe,EAAE,YAAY;KAC9B;IACD,0DAA0D;CACtB,CAAC;AAEvC,MAAM,OAAO,GAAG;IACd,eAAe,EAAE,UAAU;CAC5B,CAAC;AAEF,MAAM,MAAM,GAAG;IACb,GAAG,UAAU;IACb,OAAO,EAAE;QACP,IAAI,EAAE,EAAE,OAAO,EAAE;QACjB,WAAW,EAAE;YACX,OAAO;YACP,KAAK,EAAE,EAAE,6BAA6B,EAAE,OAAO,EAAE;SAClD;KACF;IACD,0DAA0D;CACtB,CAAC;AAEvC,eAAe,MAAM,CAAC","sourcesContent":["import fs from 'fs';\nimport path from 'path';\nimport type { TSESLint } from '@typescript-eslint/utils';\nimport noDeprecated from './rules/no-deprecated.ts';\n\nconst { name, version } = JSON.parse(fs.readFileSync(path.resolve(import.meta.dirname, '../package.json'), 'utf8')) as {\n name: string;\n version: string;\n};\n\nconst basePlugin = {\n meta: { name, version, namespace: '@ms-cloudpack' },\n rules: {\n 'no-deprecated': noDeprecated,\n },\n // Use `satisfies` to preserve the original property names\n} satisfies TSESLint.FlatConfig.Plugin;\n\nconst plugins = {\n '@ms-cloudpack': basePlugin,\n};\n\nconst plugin = {\n ...basePlugin,\n configs: {\n base: { plugins },\n recommended: {\n plugins,\n rules: { '@ms-cloudpack/no-deprecated': 'error' },\n },\n },\n // Use `satisfies` to preserve the original property names\n} satisfies TSESLint.FlatConfig.Plugin;\n\nexport default plugin;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/eslint-plugin-deprecated",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "ESLint rule banning usage of deprecated APIs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "tsutils": "^3.21.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "eslint": "^8.0.0 || ^9.0.0 || ^10.0.0",
28
+ "eslint": "^9.0.0 || ^10.0.0",
29
29
  "typescript": ">=5.0.0",
30
30
  "typescript-eslint": "^8.0.0"
31
31
  },