@progressive-victory/eslint-plugin-index-file 0.0.11 → 0.0.12

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/dist/index.d.ts CHANGED
@@ -10,8 +10,100 @@ declare const plugin: {
10
10
  };
11
11
  };
12
12
  meta: {
13
- name: string;
14
- version: string;
13
+ name: {
14
+ name: string;
15
+ version: string;
16
+ description: string;
17
+ homepage: string;
18
+ private: boolean;
19
+ bugs: {
20
+ url: string;
21
+ };
22
+ repository: {
23
+ type: string;
24
+ url: string;
25
+ };
26
+ license: string;
27
+ author: string;
28
+ type: string;
29
+ packageManager: string;
30
+ main: string;
31
+ exports: {
32
+ ".": {
33
+ types: string;
34
+ default: string;
35
+ };
36
+ "./package.json": string;
37
+ };
38
+ scripts: {
39
+ build: string;
40
+ pushlish: string;
41
+ test: string;
42
+ };
43
+ devDependencies: {
44
+ "@types/node": string;
45
+ "@typescript-eslint/rule-tester": string;
46
+ esbuild: string;
47
+ globals: string;
48
+ prettier: string;
49
+ typescript: string;
50
+ "typescript-eslint": string;
51
+ vitest: string;
52
+ };
53
+ dependencies: {
54
+ "@typescript-eslint/eslint-plugin": string;
55
+ "@typescript-eslint/parser": string;
56
+ "@typescript-eslint/utils": string;
57
+ eslint: string;
58
+ };
59
+ };
60
+ version: {
61
+ name: string;
62
+ version: string;
63
+ description: string;
64
+ homepage: string;
65
+ private: boolean;
66
+ bugs: {
67
+ url: string;
68
+ };
69
+ repository: {
70
+ type: string;
71
+ url: string;
72
+ };
73
+ license: string;
74
+ author: string;
75
+ type: string;
76
+ packageManager: string;
77
+ main: string;
78
+ exports: {
79
+ ".": {
80
+ types: string;
81
+ default: string;
82
+ };
83
+ "./package.json": string;
84
+ };
85
+ scripts: {
86
+ build: string;
87
+ pushlish: string;
88
+ test: string;
89
+ };
90
+ devDependencies: {
91
+ "@types/node": string;
92
+ "@typescript-eslint/rule-tester": string;
93
+ esbuild: string;
94
+ globals: string;
95
+ prettier: string;
96
+ typescript: string;
97
+ "typescript-eslint": string;
98
+ vitest: string;
99
+ };
100
+ dependencies: {
101
+ "@typescript-eslint/eslint-plugin": string;
102
+ "@typescript-eslint/parser": string;
103
+ "@typescript-eslint/utils": string;
104
+ eslint: string;
105
+ };
106
+ };
15
107
  };
16
108
  enforceIndexUsageRule: import("@typescript-eslint/utils/ts-eslint").RuleModule<"notExportedInIndex" | "noIndexPresent", [], import("./utils.js").IndexFileDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
17
109
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAQX,CAAA;AASD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQX,CAAA;AASD,eAAe,MAAM,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { enforceIndexUsageRule } from "./rules/index.js";
2
- const { name, version } =
3
- // eslint-diable-next-line @typescript-eslint/no-require-imports
4
- require("../package.json");
2
+ import name from "../package.json" with { type: "json" };
3
+ import version from "../package.json" with { type: "json" };
5
4
  const plugin = {
6
5
  configs: {
7
6
  get recommended() {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAA;AAEtD,MAAM,EAAC,IAAI,EAAE,OAAO,EAAC;AACjB,gEAAgE;AAChE,OAAO,CAAC,iBAAiB,CAAqC,CAAA;AAElE,MAAM,MAAM,GAAG;IACX,OAAO,EAAE;QACL,IAAI,WAAW;YACX,OAAO,WAAW,CAAA;QACtB,CAAC;KACJ;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACvB,qBAAqB;CACxB,CAAA;AAED,MAAM,WAAW,GAAG;IAChB,OAAO,EAAE;QACL,0BAA0B,EAAE,MAAM;KACrC;IACD,qBAAqB;CACxB,CAAA;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAA;AACtD,OAAO,IAAI,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACzD,OAAO,OAAO,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAE5D,MAAM,MAAM,GAAG;IACX,OAAO,EAAE;QACL,IAAI,WAAW;YACX,OAAO,WAAW,CAAA;QACtB,CAAC;KACJ;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACvB,qBAAqB;CACxB,CAAA;AAED,MAAM,WAAW,GAAG;IAChB,OAAO,EAAE;QACL,0BAA0B,EAAE,MAAM;KACrC;IACD,qBAAqB;CACxB,CAAA;AAED,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progressive-victory/eslint-plugin-index-file",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Plugin that enforces the use of index files with eslint.",
5
5
  "homepage": "https://github.com/Progressive-Victory/eslint-index-file-plugin#readme",
6
6
  "private": false,
package/eslint.config.js DELETED
@@ -1,37 +0,0 @@
1
- import js from '@eslint/js'
2
- import { defineConfig } from 'eslint/config'
3
- import globals from 'globals'
4
- import tseslint from 'typescript-eslint'
5
-
6
- export default defineConfig([
7
- {
8
- ignores: ['dist/**'],
9
- },
10
- {
11
- files: ['**/*.ts,mts,cts,jsx,tsx'],
12
- plugins: { js, index },
13
- extends: ['js/recommended'],
14
- languageOptions: { globals: { ...globals.browser, ...globals.node } },
15
- },
16
- tseslint.configs.recommendedTypeChecked,
17
- tseslint.configs.stylisticTypeChecked,
18
- {
19
- languageOptions: {
20
- parserOptions: {
21
- projectService: {
22
- allowDefaultProject: ['*.js']
23
- },
24
- tsconfigRootDir: import.meta.dirname,
25
- },
26
- },
27
- rules: {
28
- 'object-shorthand': 'warn',
29
- '@typescript-eslint/no-unsafe-assignment': 'warn',
30
- '@typescript-eslint/no-unsafe-member-access': 'warn',
31
- '@typescript-eslint/no-unsafe-argument': 'warn',
32
- '@typescript-eslint/no-unsafe-enum-comparison': 'off',
33
- '@typescript-eslint/no-unsafe-call': 'warn',
34
- '@typescript-eslint/no-unsafe-return': 'warn',
35
- },
36
- },
37
- ])