Skip to content

Commit 2fc3f1d

Browse files
committed
feat: implement signals
1 parent ea6b9cd commit 2fc3f1d

File tree

9 files changed

+2533
-315
lines changed

9 files changed

+2533
-315
lines changed

angular.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
"options": {
3030
"tsConfig": "projects/angularx-qrcode/tsconfig.spec.json"
3131
}
32+
},
33+
"lint": {
34+
"builder": "@angular-eslint/builder:lint",
35+
"options": {
36+
"lintFilePatterns": [
37+
"projects/angularx-qrcode/**/*.ts",
38+
"projects/angularx-qrcode/**/*.html"
39+
],
40+
"eslintConfig": "projects/angularx-qrcode/eslint.config.js"
41+
}
3242
}
3343
}
3444
},

eslint.config.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// @ts-check
2+
const eslint = require("@eslint/js");
3+
const { defineConfig } = require("eslint/config");
4+
const tseslint = require("typescript-eslint");
5+
const angular = require("angular-eslint");
6+
7+
module.exports = defineConfig([
8+
{
9+
files: ["**/*.ts"],
10+
extends: [
11+
eslint.configs.recommended,
12+
tseslint.configs.recommended,
13+
tseslint.configs.stylistic,
14+
angular.configs.tsRecommended,
15+
],
16+
processor: angular.processInlineTemplates,
17+
rules: {
18+
"@angular-eslint/directive-selector": [
19+
"error",
20+
{
21+
type: "attribute",
22+
prefix: "lib",
23+
style: "camelCase",
24+
},
25+
],
26+
"@angular-eslint/component-selector": [
27+
"error",
28+
{
29+
type: "element",
30+
prefix: "lib",
31+
style: "kebab-case",
32+
},
33+
],
34+
},
35+
},
36+
{
37+
files: ["**/*.html"],
38+
extends: [
39+
angular.configs.templateRecommended,
40+
angular.configs.templateAccessibility,
41+
],
42+
rules: {},
43+
}
44+
]);

0 commit comments

Comments
 (0)