Skip to content

Commit

Permalink
Merge branch 'master' into required-only-if-visible
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault authored Sep 27, 2024
2 parents d9156d6 + 114337d commit 864ac53
Show file tree
Hide file tree
Showing 8 changed files with 4,545 additions and 3,545 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.12.1 (2024-08-23)

- Update dependencies & migrate to eslint (krishna217)

# 2.12.0 (2023-11-08)

- Upgrade to Angular 18 (ebrehault)
Expand Down
24 changes: 24 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@
"src/assets"
]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
},
Expand Down Expand Up @@ -120,8 +129,23 @@
"tsConfig": "projects/schema-form/tsconfig.spec.json",
"karmaConfig": "projects/schema-form/karma.conf.js"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/schema-form/**/*.ts",
"projects/schema-form/**/*.html"
],
"eslintConfig": "projects/schema-form/eslint.config.js"
}
}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
43 changes: 43 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const angular = require("angular-eslint");

module.exports = tseslint.config(
{
files: ["**/*.ts"],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
...angular.configs.tsRecommended,
],
processor: angular.processInlineTemplates,
rules: {
"@angular-eslint/directive-selector": [
"error",
{
type: "attribute",
prefix: "app",
style: "camelCase",
},
],
"@angular-eslint/component-selector": [
"error",
{
type: "element",
prefix: "app",
style: "kebab-case",
},
],
},
},
{
files: ["**/*.html"],
extends: [
...angular.configs.templateRecommended,
...angular.configs.templateAccessibility,
],
rules: {},
}
);
Loading

0 comments on commit 864ac53

Please sign in to comment.