You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-11-25 22:32:52 +02:00
44 lines
972 B
JavaScript
44 lines
972 B
JavaScript
|
|
// @ts-check
|
||
|
|
import eslint from "@eslint/js";
|
||
|
|
import tseslint from "typescript-eslint";
|
||
|
|
import angular from "angular-eslint";
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
{
|
||
|
|
files: ["src/frontend/*.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: ["src/frontend/*.html"],
|
||
|
|
extends: [
|
||
|
|
...angular.configs.templateRecommended,
|
||
|
|
...angular.configs.templateAccessibility,
|
||
|
|
],
|
||
|
|
rules: {},
|
||
|
|
}
|
||
|
|
);
|