@santi020k/eslint-config-angular 0.8.1
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 +11 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/package.json +54 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# @santi020k/eslint-config-angular
|
|
2
|
+
|
|
3
|
+
Angular support as an optional framework package.
|
|
4
|
+
|
|
5
|
+
This package is part of the [`@santi020k/eslint-config-basic`](https://github.com/santi020k/eslint-config-basic) monorepo.
|
|
6
|
+
|
|
7
|
+
- Docs: [Angular guide](https://santi020k.github.io/eslint-config-basic/frameworks/angular.html)
|
|
8
|
+
- Repository: [santi020k/eslint-config-basic](https://github.com/santi020k/eslint-config-basic)
|
|
9
|
+
- Author: [santi020k](https://santi020k.me)
|
|
10
|
+
|
|
11
|
+
The canonical documentation lives on the VitePress site, so this README intentionally stays short to avoid duplication.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Angular ESLint configuration
|
|
5
|
+
* Extends @angular-eslint recommended rules
|
|
6
|
+
*/
|
|
7
|
+
declare const angularConfig: TSESLint.FlatConfig.ConfigArray;
|
|
8
|
+
|
|
9
|
+
export { angularConfig, angularConfig as default };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import pluginAngular from "@angular-eslint/eslint-plugin";
|
|
3
|
+
var angularConfig = [
|
|
4
|
+
{
|
|
5
|
+
name: "eslint-config-angular/rules",
|
|
6
|
+
files: ["**/*.ts"],
|
|
7
|
+
plugins: {
|
|
8
|
+
"@angular-eslint": pluginAngular
|
|
9
|
+
},
|
|
10
|
+
rules: {
|
|
11
|
+
"@angular-eslint/component-class-suffix": "error",
|
|
12
|
+
"@angular-eslint/directive-class-suffix": "error",
|
|
13
|
+
"@angular-eslint/no-empty-lifecycle-method": "warn",
|
|
14
|
+
"@angular-eslint/no-output-native": "warn",
|
|
15
|
+
"@angular-eslint/use-lifecycle-interface": "warn",
|
|
16
|
+
"@angular-eslint/use-pipe-transform-interface": "error"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
var index_default = angularConfig;
|
|
21
|
+
export {
|
|
22
|
+
angularConfig,
|
|
23
|
+
index_default as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import pluginAngular from '@angular-eslint/eslint-plugin'\nimport type { TSESLint } from '@typescript-eslint/utils'\n\n/**\n * Angular ESLint configuration\n * Extends @angular-eslint recommended rules\n */\nexport const angularConfig: TSESLint.FlatConfig.ConfigArray = [\n {\n name: 'eslint-config-angular/rules',\n files: ['**/*.ts'],\n plugins: {\n '@angular-eslint': pluginAngular\n },\n rules: {\n '@angular-eslint/component-class-suffix': 'error',\n '@angular-eslint/directive-class-suffix': 'error',\n '@angular-eslint/no-empty-lifecycle-method': 'warn',\n '@angular-eslint/no-output-native': 'warn',\n '@angular-eslint/use-lifecycle-interface': 'warn',\n '@angular-eslint/use-pipe-transform-interface': 'error'\n }\n }\n]\n\nexport default angularConfig\n"],"mappings":";AAAA,OAAO,mBAAmB;AAOnB,IAAM,gBAAiD;AAAA,EAC5D;AAAA,IACE,MAAM;AAAA,IACN,OAAO,CAAC,SAAS;AAAA,IACjB,SAAS;AAAA,MACP,mBAAmB;AAAA,IACrB;AAAA,IACA,OAAO;AAAA,MACL,0CAA0C;AAAA,MAC1C,0CAA0C;AAAA,MAC1C,6CAA6C;AAAA,MAC7C,oCAAoC;AAAA,MACpC,2CAA2C;AAAA,MAC3C,gDAAgD;AAAA,IAClD;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@santi020k/eslint-config-angular",
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"description": "Angular ESLint configuration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsup",
|
|
20
|
+
"dev": "tsup --watch",
|
|
21
|
+
"clean": "rm -rf dist",
|
|
22
|
+
"check:exports": "publint",
|
|
23
|
+
"typecheck": "tsc --noEmit"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"eslint": "^10.0.3"
|
|
27
|
+
},
|
|
28
|
+
"peerDependenciesMeta": {
|
|
29
|
+
"@angular/core": {
|
|
30
|
+
"optional": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@angular-eslint/eslint-plugin": "^21.3.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@typescript-eslint/utils": "^8.57.0",
|
|
38
|
+
"tsup": "^8.5.1",
|
|
39
|
+
"typescript": "^5.9.3"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.18.0"
|
|
46
|
+
},
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"author": "santi020k",
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git+https://github.com/santi020k/eslint-config-basic.git",
|
|
52
|
+
"directory": "packages/angular"
|
|
53
|
+
}
|
|
54
|
+
}
|