Skip to content

Commit

Permalink
Merge pull request #496 from krishna217/master
Browse files Browse the repository at this point in the history
feat: update dependencies & migrate to eslint
  • Loading branch information
ebrehault authored Aug 23, 2024
2 parents 54d27d9 + cf7c3a8 commit b36090d
Show file tree
Hide file tree
Showing 7 changed files with 5,794 additions and 4,798 deletions.
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 b36090d

Please sign in to comment.