chore: copia de libs/shared con prefijo Pi y APIs de terceros actualizadas
This commit is contained in:
56
libs/ui/eslint.config.mjs
Normal file
56
libs/ui/eslint.config.mjs
Normal file
@@ -0,0 +1,56 @@
|
||||
import nx from "@nx/eslint-plugin";
|
||||
import baseConfig from "../../eslint.config.mjs";
|
||||
|
||||
export default [
|
||||
...nx.configs["flat/angular"],
|
||||
...nx.configs["flat/angular-template"],
|
||||
...baseConfig,
|
||||
{
|
||||
files: [
|
||||
"**/*.json"
|
||||
],
|
||||
rules: {
|
||||
"@nx/dependency-checks": [
|
||||
"error",
|
||||
{
|
||||
ignoredFiles: [
|
||||
"{projectRoot}/eslint.config.{js,cjs,mjs,ts,cts,mts}"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
languageOptions: {
|
||||
parser: await import("jsonc-eslint-parser")
|
||||
}
|
||||
},
|
||||
{
|
||||
files: [
|
||||
"**/*.ts"
|
||||
],
|
||||
rules: {
|
||||
"@angular-eslint/directive-selector": [
|
||||
"error",
|
||||
{
|
||||
type: "attribute",
|
||||
prefix: "pi",
|
||||
style: "camelCase"
|
||||
}
|
||||
],
|
||||
"@angular-eslint/component-selector": [
|
||||
"error",
|
||||
{
|
||||
type: "element",
|
||||
prefix: "pi",
|
||||
style: "kebab-case"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
files: [
|
||||
"**/*.html"
|
||||
],
|
||||
// Override or add rules here
|
||||
rules: {}
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user