@pengzhanbo/eslint-config-angular 1.48.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 pengzhanbo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @pengzhanbo/eslint-config-angular
2
+
3
+ ## Documentation
4
+
5
+ [Document](https://github.com/pengzhanbo/configs/tree/main/docs/eslint.md)
6
+
7
+ ## Usage
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ pnpm add @pengzhanbo/eslint-config-angular
13
+ ```
14
+
15
+ ## Configuration
16
+
17
+ `eslint.config.js`
18
+
19
+ ```js
20
+ import eslintConfig from '@pengzhanbo/eslint-config-angular'
21
+
22
+ export default eslintConfig()
23
+ ```
24
+
25
+ ## vs Code support
26
+
27
+ ```json
28
+ {
29
+ "eslint.validate": [
30
+ // add "angular"
31
+ "angular"
32
+ ]
33
+ }
34
+ ```
35
+
36
+ ## 相关资源
37
+
38
+ - [@pengzhanbo/eslint-config](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config)
39
+ - [@pengzhanbo/eslint-config-vue](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-vue)
40
+ - [@pengzhanbo/eslint-config-react](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-react)
41
+ - [@pengzhanbo/eslint-config-svelte](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-svelte)
42
+ - [@pengzhanbo/eslint-config-solid](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-solid)
43
+ - [@pengzhanbo/eslint-config-angular](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-angular)
44
+ - [@pengzhanbo/eslint-config-astro](https://github.com/pengzhanbo/configs/tree/main/packages/eslint-config-astro)
45
+ - [@pengzhanbo/prettier-config](https://github.com/pengzhanbo/configs/tree/main/packages/prettier-config)
46
+ - [@pengzhanbo/stylelint-config](https://github.com/pengzhanbo/configs/tree/main/packages/stylelint-config)
47
+ - [@pengzhanbo/tsconfig](https://github.com/pengzhanbo/configs/tree/main/packages/tsconfig)
@@ -0,0 +1,7 @@
1
+ import { EslintConfigOptions, EslintConfigReturn, UserConfig } from "@pengzhanbo/eslint-config";
2
+ export * from "@pengzhanbo/eslint-config";
3
+
4
+ //#region src/index.d.ts
5
+ declare function angularEslintFlatConfig(options: EslintConfigOptions, ...userConfigs: UserConfig[]): EslintConfigReturn;
6
+ //#endregion
7
+ export { angularEslintFlatConfig, angularEslintFlatConfig as default };
package/dist/index.mjs ADDED
@@ -0,0 +1,14 @@
1
+ import { eslintFlatConfig } from "@pengzhanbo/eslint-config";
2
+
3
+ export * from "@pengzhanbo/eslint-config"
4
+
5
+ //#region src/index.ts
6
+ function angularEslintFlatConfig(options, ...userConfigs) {
7
+ return eslintFlatConfig({
8
+ angular: true,
9
+ ...options
10
+ }, ...userConfigs);
11
+ }
12
+
13
+ //#endregion
14
+ export { angularEslintFlatConfig, angularEslintFlatConfig as default };
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@pengzhanbo/eslint-config-angular",
3
+ "type": "module",
4
+ "version": "1.48.0",
5
+ "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/pengzhanbo/configs#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git@github.com:pengzhanbo/configs.git",
11
+ "directory": "packages/eslint-config-angular"
12
+ },
13
+ "keywords": [
14
+ "eslint-config",
15
+ "angular"
16
+ ],
17
+ "exports": {
18
+ ".": "./dist/index.mjs",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "types": "./dist/index.d.mts",
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "peerDependencies": {
26
+ "@prettier/plugin-xml": "^3.4.2",
27
+ "@unocss/eslint-plugin": "^66.6.0",
28
+ "eslint": "^10.0.0",
29
+ "eslint-plugin-format": "^1.4.0",
30
+ "eslint-plugin-tailwindcss": "^3.18.2"
31
+ },
32
+ "peerDependenciesMeta": {
33
+ "@prettier/plugin-xml": {
34
+ "optional": true
35
+ },
36
+ "@unocss/eslint-plugin": {
37
+ "optional": true
38
+ },
39
+ "eslint-plugin-format": {
40
+ "optional": true
41
+ },
42
+ "eslint-plugin-tailwindcss": {
43
+ "optional": true
44
+ }
45
+ },
46
+ "dependencies": {
47
+ "@angular-eslint/eslint-plugin": "^21.2.0",
48
+ "@angular-eslint/eslint-plugin-template": "^21.2.0",
49
+ "@angular-eslint/template-parser": "^21.2.0",
50
+ "@pengzhanbo/eslint-config": "1.48.0"
51
+ },
52
+ "devDependencies": {
53
+ "@unocss/eslint-plugin": "^66.6.0",
54
+ "eslint": "^10.0.0",
55
+ "eslint-plugin-format": "^1.4.0",
56
+ "eslint-plugin-tailwindcss": "^3.18.2"
57
+ },
58
+ "publishConfig": {
59
+ "access": "public"
60
+ },
61
+ "scripts": {
62
+ "build": "tsdown src/index.ts --format esm --dts --exports",
63
+ "stub": "tsdown src/index.ts --format esm"
64
+ }
65
+ }