lint-suite 0.0.9 → 0.0.11

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.
@@ -0,0 +1,23 @@
1
+ export declare const angularTemplate: (import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
2
+ files: string[];
3
+ rules: {
4
+ '@angular-eslint/template/button-has-type': string;
5
+ '@angular-eslint/template/no-positive-tabindex': string;
6
+ '@angular-eslint/template/valid-aria': string;
7
+ '@angular-eslint/template/alt-text': string;
8
+ '@angular-eslint/template/elements-content': string;
9
+ '@angular-eslint/template/click-events-have-key-events': string;
10
+ '@angular-eslint/template/mouse-events-have-key-events': string;
11
+ '@angular-eslint/template/table-scope': string;
12
+ '@angular-eslint/template/no-autofocus': string;
13
+ '@angular-eslint/template/no-distracting-elements': string;
14
+ '@angular-eslint/template/prefer-control-flow': string;
15
+ '@angular-eslint/template/prefer-self-closing-tags': string;
16
+ '@angular-eslint/template/prefer-ngsrc': string;
17
+ '@angular-eslint/template/attributes-order': (string | {
18
+ alphabetical: boolean;
19
+ order: string[];
20
+ })[];
21
+ };
22
+ })[];
23
+ //# sourceMappingURL=angular-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular-template.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;IAkC3B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const angular: (import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
2
+ files: string[];
3
+ rules: {
4
+ '@angular-eslint/prefer-on-push-component-change-detection': string;
5
+ };
6
+ })[];
7
+ //# sourceMappingURL=angular.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;IAQnB,CAAC"}
package/lib/base.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const base: Linter.Config[];
3
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/base.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EA0D/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const javascript: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config[];
2
+ //# sourceMappingURL=javascript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/javascript.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,kEAAqC,CAAC"}
package/lib/jest.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const jest: Linter.Config[];
3
+ //# sourceMappingURL=jest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/jest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAU/B,CAAC"}
package/lib/json.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const json: Linter.Config[];
3
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/json.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAK/B,CAAC"}
package/lib/rxjs.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const rxjs: Linter.Config[];
3
+ //# sourceMappingURL=rxjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxjs.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/rxjs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAwB/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const storybook: Linter.Config[];
3
+ //# sourceMappingURL=storybook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/storybook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAMpC,CAAC"}
@@ -0,0 +1,76 @@
1
+ export declare const typescript: (import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | import("eslint").Linter.FlatConfig | {
2
+ files: string[];
3
+ languageOptions: {
4
+ parserOptions: {
5
+ projectService: boolean;
6
+ };
7
+ };
8
+ rules: {
9
+ '@typescript-eslint/explicit-member-accessibility': string;
10
+ '@typescript-eslint/consistent-type-imports': string;
11
+ '@typescript-eslint/explicit-function-return-type': string;
12
+ '@typescript-eslint/prefer-readonly': string;
13
+ '@typescript-eslint/no-empty-function': string;
14
+ 'sort-imports': (string | {
15
+ ignoreCase: boolean;
16
+ ignoreDeclarationSort: boolean;
17
+ ignoreMemberSort: boolean;
18
+ memberSyntaxSortOrder: string[];
19
+ allowSeparatedGroups: boolean;
20
+ })[];
21
+ 'class-methods-use-this': string;
22
+ 'max-classes-per-file'?: undefined;
23
+ '@typescript-eslint/dot-notation'?: undefined;
24
+ 'max-lines'?: undefined;
25
+ };
26
+ } | {
27
+ files: string[];
28
+ rules: {
29
+ 'max-classes-per-file': string;
30
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
31
+ '@typescript-eslint/consistent-type-imports'?: undefined;
32
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
33
+ '@typescript-eslint/prefer-readonly'?: undefined;
34
+ '@typescript-eslint/no-empty-function'?: undefined;
35
+ 'sort-imports'?: undefined;
36
+ 'class-methods-use-this'?: undefined;
37
+ '@typescript-eslint/dot-notation'?: undefined;
38
+ 'max-lines'?: undefined;
39
+ };
40
+ languageOptions?: undefined;
41
+ } | {
42
+ files: string[];
43
+ rules: {
44
+ 'class-methods-use-this': string;
45
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
46
+ '@typescript-eslint/consistent-type-imports'?: undefined;
47
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
48
+ '@typescript-eslint/prefer-readonly'?: undefined;
49
+ '@typescript-eslint/no-empty-function'?: undefined;
50
+ 'sort-imports'?: undefined;
51
+ 'max-classes-per-file'?: undefined;
52
+ '@typescript-eslint/dot-notation'?: undefined;
53
+ 'max-lines'?: undefined;
54
+ };
55
+ languageOptions?: undefined;
56
+ } | {
57
+ files: string[];
58
+ rules: {
59
+ '@typescript-eslint/dot-notation': string;
60
+ 'max-lines': (string | {
61
+ max: number;
62
+ skipBlankLines: boolean;
63
+ skipComments: boolean;
64
+ })[];
65
+ '@typescript-eslint/explicit-member-accessibility'?: undefined;
66
+ '@typescript-eslint/consistent-type-imports'?: undefined;
67
+ '@typescript-eslint/explicit-function-return-type'?: undefined;
68
+ '@typescript-eslint/prefer-readonly'?: undefined;
69
+ '@typescript-eslint/no-empty-function'?: undefined;
70
+ 'sort-imports'?: undefined;
71
+ 'class-methods-use-this'?: undefined;
72
+ 'max-classes-per-file'?: undefined;
73
+ };
74
+ languageOptions?: undefined;
75
+ })[];
76
+ //# sourceMappingURL=typescript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/typescript.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuDtB,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "lint-suite",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Reusable ESLint configurations",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/F0rty-Tw0/lint-suite.git",
8
- "directory": "./"
8
+ "directory": "packages/lint-suite"
9
9
  },
10
10
  "keywords": [
11
11
  "eslint",
@@ -23,6 +23,16 @@
23
23
  "main": "./index.cjs",
24
24
  "module": "./index.js",
25
25
  "types": "./index.d.ts",
26
+ "dependencies": {
27
+ "eslint": "^9.23.0",
28
+ "@nx/eslint-plugin": "^20.6.4",
29
+ "eslint-plugin-jest": "^28.11.0",
30
+ "eslint-plugin-json": "^4.0.1",
31
+ "@smarttools/eslint-plugin-rxjs": "^1.0.18",
32
+ "eslint-plugin-storybook": "^0.12.0",
33
+ "eslint-plugin-import": "^2.31.0",
34
+ "@stylistic/eslint-plugin": "^4.2.0"
35
+ },
26
36
  "scripts": {
27
37
  "build": "nx build lint-suite",
28
38
  "patch": "npm version patch",
@@ -44,88 +54,5 @@
44
54
  ],
45
55
  "publishConfig": {
46
56
  "access": "public"
47
- },
48
- "dependencies": {},
49
- "peerDependencies": {
50
- "@nx/eslint-plugin": "^20.6.4"
51
- },
52
- "devDependencies": {
53
- "@eslint/js": "^9.8.0",
54
- "@nx/esbuild": "^20.6.4",
55
- "@nx/eslint": "20.6.4",
56
- "@nx/js": "20.6.4",
57
- "@swc-node/register": "~1.9.1",
58
- "@swc/core": "~1.5.7",
59
- "@swc/helpers": "~0.5.11",
60
- "@types/node": "18.16.9",
61
- "esbuild": "^0.19.2",
62
- "eslint": "^9.8.0",
63
- "eslint-config-prettier": "^9.0.0",
64
- "jsonc-eslint-parser": "^2.1.0",
65
- "nx": "20.6.4",
66
- "prettier": "^2.6.2",
67
- "tslib": "^2.3.0",
68
- "typescript": "~5.7.2",
69
- "typescript-eslint": "^8.19.0",
70
- "verdaccio": "^6.0.5"
71
- },
72
- "nx": {
73
- "name": "lint-suite",
74
- "$schema": "node_modules/nx/schemas/project-schema.json",
75
- "sourceRoot": "src",
76
- "projectType": "library",
77
- "targets": {
78
- "local-registry": {
79
- "executor": "@nx/js:verdaccio",
80
- "options": {
81
- "port": 4873,
82
- "config": ".verdaccio/config.yml",
83
- "storage": "tmp/local-registry/storage"
84
- }
85
- },
86
- "build": {
87
- "executor": "@nx/esbuild:esbuild",
88
- "outputs": [
89
- "{options.outputPath}"
90
- ],
91
- "defaultConfiguration": "production",
92
- "options": {
93
- "main": "src/index.ts",
94
- "outputPath": "./dist",
95
- "outputFileName": "index.js",
96
- "tsConfig": "tsconfig.lib.json",
97
- "platform": "node",
98
- "format": [
99
- "esm",
100
- "cjs"
101
- ],
102
- "assets": [
103
- {
104
- "input": ".",
105
- "glob": "README.md",
106
- "output": "."
107
- },
108
- {
109
- "input": ".",
110
- "glob": "LICENSE",
111
- "output": "."
112
- },
113
- {
114
- "input": "src/lib",
115
- "glob": "**/*.ts",
116
- "output": "lib"
117
- }
118
- ],
119
- "minify": false,
120
- "sourcemap": true,
121
- "dependenciesFieldType": "peerDependencies",
122
- "bundle": true,
123
- "external": [
124
- "@nx/eslint-plugin"
125
- ],
126
- "thirdParty": false
127
- }
128
- }
129
- }
130
57
  }
131
58
  }
package/lib/base.ts DELETED
@@ -1,5 +0,0 @@
1
- import nx from '@nx/eslint-plugin';
2
-
3
- export const base = {
4
- ...nx.configs['flat/base'],
5
- };
package/lib/javascript.ts DELETED
@@ -1,5 +0,0 @@
1
- import nx from '@nx/eslint-plugin';
2
-
3
- export const javascript = {
4
- ...nx.configs['flat/javascript'],
5
- };
package/lib/typescript.ts DELETED
@@ -1,5 +0,0 @@
1
- import nx from '@nx/eslint-plugin';
2
-
3
- export const typescript = {
4
- ...nx.configs['flat/typescript'],
5
- };
package/src/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { base } from './lib/base.js';
2
- export { typescript } from './lib/typescript.js';
3
- export { javascript } from './lib/javascript.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}