From fbf92e39995d6c8a7ba48c813a1ab9f3bb78a67e Mon Sep 17 00:00:00 2001 From: Ben Snyder Date: Tue, 23 Apr 2024 14:00:13 -0400 Subject: [PATCH] feat(nx): convert to eslint flat config (#265) * feat(nx): convert to eslint flat config * fix(nx): use .cjs extensions for flat config to work --------- Co-authored-by: Robin Goetz <35136007+goetzrobin@users.noreply.github.com> --- .eslintignore | 1 - .eslintrc.json | 66 -------------------- .vscode/settings.json | 4 +- apps/app/.eslintrc.json | 34 ---------- apps/app/eslint.config.cjs | 42 +++++++++++++ apps/app/project.json | 6 +- apps/trpc-app-e2e/.eslintrc.json | 17 ----- apps/trpc-app-e2e/eslint.config.js | 16 +++++ apps/trpc-app-e2e/project.json | 6 +- apps/ui-storybook-e2e/.eslintrc.json | 10 --- apps/ui-storybook-e2e/eslint.config.js | 17 +++++ apps/ui-storybook-e2e/project.json | 6 +- eslint.config.cjs | 69 +++++++++++++++++++++ libs/cli/.eslintrc.json | 25 -------- libs/cli/eslint.config.js | 29 +++++++++ libs/cli/project.json | 4 +- libs/tools/.eslintrc.json | 25 -------- libs/tools/eslint.config.js | 29 +++++++++ libs/tools/project.json | 4 +- libs/trpc/.eslintrc.json | 33 ---------- libs/trpc/eslint.config.js | 41 ++++++++++++ libs/trpc/project.json | 2 +- libs/ui/accordion/brain/.eslintrc.json | 34 ---------- libs/ui/accordion/brain/eslint.config.js | 42 +++++++++++++ libs/ui/accordion/brain/project.json | 2 +- libs/ui/accordion/helm/.eslintrc.json | 34 ---------- libs/ui/accordion/helm/eslint.config.js | 42 +++++++++++++ libs/ui/accordion/helm/project.json | 2 +- libs/ui/alert-dialog/brain/.eslintrc.json | 34 ---------- libs/ui/alert-dialog/brain/eslint.config.js | 42 +++++++++++++ libs/ui/alert-dialog/brain/project.json | 2 +- libs/ui/alert-dialog/helm/.eslintrc.json | 34 ---------- libs/ui/alert-dialog/helm/eslint.config.js | 42 +++++++++++++ libs/ui/alert-dialog/helm/project.json | 2 +- libs/ui/alert/helm/.eslintrc.json | 34 ---------- libs/ui/alert/helm/eslint.config.js | 42 +++++++++++++ libs/ui/alert/helm/project.json | 2 +- libs/ui/aspect-ratio/helm/.eslintrc.json | 34 ---------- libs/ui/aspect-ratio/helm/eslint.config.js | 42 +++++++++++++ libs/ui/aspect-ratio/helm/project.json | 2 +- libs/ui/avatar/brain/.eslintrc.json | 34 ---------- libs/ui/avatar/brain/eslint.config.js | 42 +++++++++++++ libs/ui/avatar/brain/project.json | 2 +- libs/ui/avatar/helm/.eslintrc.json | 34 ---------- libs/ui/avatar/helm/eslint.config.js | 42 +++++++++++++ libs/ui/avatar/helm/project.json | 2 +- libs/ui/badge/helm/.eslintrc.json | 34 ---------- libs/ui/badge/helm/eslint.config.js | 42 +++++++++++++ libs/ui/badge/helm/project.json | 2 +- libs/ui/button/helm/.eslintrc.json | 34 ---------- libs/ui/button/helm/eslint.config.js | 42 +++++++++++++ libs/ui/button/helm/project.json | 2 +- libs/ui/card/helm/.eslintrc.json | 34 ---------- libs/ui/card/helm/eslint.config.js | 42 +++++++++++++ libs/ui/card/helm/project.json | 2 +- libs/ui/carousel/helm/.eslintrc.json | 34 ---------- libs/ui/carousel/helm/eslint.config.js | 42 +++++++++++++ libs/ui/carousel/helm/project.json | 2 +- libs/ui/checkbox/brain/.eslintrc.json | 34 ---------- libs/ui/checkbox/brain/eslint.config.js | 42 +++++++++++++ libs/ui/checkbox/brain/project.json | 2 +- libs/ui/checkbox/helm/.eslintrc.json | 34 ---------- libs/ui/checkbox/helm/eslint.config.js | 42 +++++++++++++ libs/ui/checkbox/helm/project.json | 2 +- libs/ui/collapsible/brain/.eslintrc.json | 34 ---------- libs/ui/collapsible/brain/eslint.config.js | 42 +++++++++++++ libs/ui/collapsible/brain/project.json | 2 +- libs/ui/command/brain/.eslintrc.json | 34 ---------- libs/ui/command/brain/eslint.config.js | 42 +++++++++++++ libs/ui/command/brain/project.json | 2 +- libs/ui/command/helm/.eslintrc.json | 34 ---------- libs/ui/command/helm/eslint.config.js | 42 +++++++++++++ libs/ui/command/helm/project.json | 2 +- libs/ui/core/.eslintrc.json | 34 ---------- libs/ui/core/eslint.config.js | 42 +++++++++++++ libs/ui/core/project.json | 2 +- libs/ui/dialog/brain/.eslintrc.json | 34 ---------- libs/ui/dialog/brain/eslint.config.js | 42 +++++++++++++ libs/ui/dialog/brain/project.json | 2 +- libs/ui/dialog/helm/.eslintrc.json | 34 ---------- libs/ui/dialog/helm/eslint.config.js | 42 +++++++++++++ libs/ui/dialog/helm/project.json | 2 +- libs/ui/hover-card/brain/.eslintrc.json | 34 ---------- libs/ui/hover-card/brain/eslint.config.js | 42 +++++++++++++ libs/ui/hover-card/brain/project.json | 2 +- libs/ui/hover-card/helm/.eslintrc.json | 34 ---------- libs/ui/hover-card/helm/eslint.config.js | 42 +++++++++++++ libs/ui/hover-card/helm/project.json | 2 +- libs/ui/icon/helm/.eslintrc.json | 34 ---------- libs/ui/icon/helm/eslint.config.js | 42 +++++++++++++ libs/ui/icon/helm/project.json | 2 +- libs/ui/input/helm/.eslintrc.json | 34 ---------- libs/ui/input/helm/eslint.config.js | 42 +++++++++++++ libs/ui/input/helm/project.json | 2 +- libs/ui/label/brain/.eslintrc.json | 41 ------------ libs/ui/label/brain/eslint.config.js | 47 ++++++++++++++ libs/ui/label/brain/project.json | 2 +- libs/ui/label/helm/.eslintrc.json | 34 ---------- libs/ui/label/helm/eslint.config.js | 42 +++++++++++++ libs/ui/label/helm/project.json | 2 +- libs/ui/menu/brain/.eslintrc.json | 34 ---------- libs/ui/menu/brain/eslint.config.js | 42 +++++++++++++ libs/ui/menu/brain/project.json | 2 +- libs/ui/menu/helm/.eslintrc.json | 34 ---------- libs/ui/menu/helm/eslint.config.js | 42 +++++++++++++ libs/ui/menu/helm/project.json | 2 +- libs/ui/pagination/helm/.eslintrc.json | 34 ---------- libs/ui/pagination/helm/eslint.config.js | 42 +++++++++++++ libs/ui/pagination/helm/project.json | 2 +- libs/ui/popover/brain/.eslintrc.json | 34 ---------- libs/ui/popover/brain/eslint.config.js | 42 +++++++++++++ libs/ui/popover/brain/project.json | 2 +- libs/ui/popover/helm/.eslintrc.json | 34 ---------- libs/ui/popover/helm/eslint.config.js | 42 +++++++++++++ libs/ui/popover/helm/project.json | 2 +- libs/ui/progress/brain/.eslintrc.json | 34 ---------- libs/ui/progress/brain/eslint.config.js | 42 +++++++++++++ libs/ui/progress/brain/project.json | 2 +- libs/ui/progress/helm/.eslintrc.json | 34 ---------- libs/ui/progress/helm/eslint.config.js | 42 +++++++++++++ libs/ui/progress/helm/project.json | 2 +- libs/ui/radio-group/brain/.eslintrc.json | 34 ---------- libs/ui/radio-group/brain/eslint.config.js | 42 +++++++++++++ libs/ui/radio-group/brain/project.json | 2 +- libs/ui/radio-group/helm/.eslintrc.json | 34 ---------- libs/ui/radio-group/helm/eslint.config.js | 42 +++++++++++++ libs/ui/radio-group/helm/project.json | 2 +- libs/ui/scroll-area/helm/.eslintrc.json | 34 ---------- libs/ui/scroll-area/helm/eslint.config.js | 42 +++++++++++++ libs/ui/scroll-area/helm/project.json | 2 +- libs/ui/select/brain/.eslintrc.json | 41 ------------ libs/ui/select/brain/eslint.config.js | 47 ++++++++++++++ libs/ui/select/brain/project.json | 2 +- libs/ui/select/helm/.eslintrc.json | 41 ------------ libs/ui/select/helm/eslint.config.js | 47 ++++++++++++++ libs/ui/select/helm/project.json | 2 +- libs/ui/separator/brain/.eslintrc.json | 34 ---------- libs/ui/separator/brain/eslint.config.js | 42 +++++++++++++ libs/ui/separator/brain/project.json | 2 +- libs/ui/separator/helm/.eslintrc.json | 34 ---------- libs/ui/separator/helm/eslint.config.js | 42 +++++++++++++ libs/ui/separator/helm/project.json | 2 +- libs/ui/sheet/brain/.eslintrc.json | 34 ---------- libs/ui/sheet/brain/eslint.config.js | 42 +++++++++++++ libs/ui/sheet/brain/project.json | 2 +- libs/ui/sheet/helm/.eslintrc.json | 34 ---------- libs/ui/sheet/helm/eslint.config.js | 42 +++++++++++++ libs/ui/sheet/helm/project.json | 2 +- libs/ui/skeleton/helm/.eslintrc.json | 34 ---------- libs/ui/skeleton/helm/eslint.config.js | 42 +++++++++++++ libs/ui/skeleton/helm/project.json | 2 +- libs/ui/spinner/helm/.eslintrc.json | 34 ---------- libs/ui/spinner/helm/eslint.config.js | 42 +++++++++++++ libs/ui/spinner/helm/project.json | 2 +- libs/ui/switch/brain/.eslintrc.json | 34 ---------- libs/ui/switch/brain/eslint.config.js | 42 +++++++++++++ libs/ui/switch/brain/project.json | 2 +- libs/ui/switch/helm/.eslintrc.json | 34 ---------- libs/ui/switch/helm/eslint.config.js | 42 +++++++++++++ libs/ui/switch/helm/project.json | 2 +- libs/ui/table/brain/.eslintrc.json | 41 ------------ libs/ui/table/brain/eslint.config.js | 47 ++++++++++++++ libs/ui/table/brain/project.json | 2 +- libs/ui/table/helm/.eslintrc.json | 41 ------------ libs/ui/table/helm/eslint.config.js | 47 ++++++++++++++ libs/ui/table/helm/project.json | 2 +- libs/ui/tabs/brain/.eslintrc.json | 34 ---------- libs/ui/tabs/brain/eslint.config.js | 42 +++++++++++++ libs/ui/tabs/brain/project.json | 2 +- libs/ui/tabs/helm/.eslintrc.json | 34 ---------- libs/ui/tabs/helm/eslint.config.js | 42 +++++++++++++ libs/ui/tabs/helm/project.json | 2 +- libs/ui/toggle/brain/.eslintrc.json | 34 ---------- libs/ui/toggle/brain/eslint.config.js | 42 +++++++++++++ libs/ui/toggle/brain/project.json | 2 +- libs/ui/toggle/helm/.eslintrc.json | 34 ---------- libs/ui/toggle/helm/eslint.config.js | 42 +++++++++++++ libs/ui/toggle/helm/project.json | 2 +- libs/ui/typography/helm/.eslintrc.json | 34 ---------- libs/ui/typography/helm/eslint.config.js | 42 +++++++++++++ libs/ui/typography/helm/project.json | 2 +- nx.json | 17 ++++- package.json | 2 + 183 files changed, 2580 insertions(+), 2119 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.json delete mode 100644 apps/app/.eslintrc.json create mode 100644 apps/app/eslint.config.cjs delete mode 100644 apps/trpc-app-e2e/.eslintrc.json create mode 100644 apps/trpc-app-e2e/eslint.config.js delete mode 100644 apps/ui-storybook-e2e/.eslintrc.json create mode 100644 apps/ui-storybook-e2e/eslint.config.js create mode 100644 eslint.config.cjs delete mode 100644 libs/cli/.eslintrc.json create mode 100644 libs/cli/eslint.config.js delete mode 100644 libs/tools/.eslintrc.json create mode 100644 libs/tools/eslint.config.js delete mode 100644 libs/trpc/.eslintrc.json create mode 100644 libs/trpc/eslint.config.js delete mode 100644 libs/ui/accordion/brain/.eslintrc.json create mode 100644 libs/ui/accordion/brain/eslint.config.js delete mode 100644 libs/ui/accordion/helm/.eslintrc.json create mode 100644 libs/ui/accordion/helm/eslint.config.js delete mode 100644 libs/ui/alert-dialog/brain/.eslintrc.json create mode 100644 libs/ui/alert-dialog/brain/eslint.config.js delete mode 100644 libs/ui/alert-dialog/helm/.eslintrc.json create mode 100644 libs/ui/alert-dialog/helm/eslint.config.js delete mode 100644 libs/ui/alert/helm/.eslintrc.json create mode 100644 libs/ui/alert/helm/eslint.config.js delete mode 100644 libs/ui/aspect-ratio/helm/.eslintrc.json create mode 100644 libs/ui/aspect-ratio/helm/eslint.config.js delete mode 100644 libs/ui/avatar/brain/.eslintrc.json create mode 100644 libs/ui/avatar/brain/eslint.config.js delete mode 100644 libs/ui/avatar/helm/.eslintrc.json create mode 100644 libs/ui/avatar/helm/eslint.config.js delete mode 100644 libs/ui/badge/helm/.eslintrc.json create mode 100644 libs/ui/badge/helm/eslint.config.js delete mode 100644 libs/ui/button/helm/.eslintrc.json create mode 100644 libs/ui/button/helm/eslint.config.js delete mode 100644 libs/ui/card/helm/.eslintrc.json create mode 100644 libs/ui/card/helm/eslint.config.js delete mode 100644 libs/ui/carousel/helm/.eslintrc.json create mode 100644 libs/ui/carousel/helm/eslint.config.js delete mode 100644 libs/ui/checkbox/brain/.eslintrc.json create mode 100644 libs/ui/checkbox/brain/eslint.config.js delete mode 100644 libs/ui/checkbox/helm/.eslintrc.json create mode 100644 libs/ui/checkbox/helm/eslint.config.js delete mode 100644 libs/ui/collapsible/brain/.eslintrc.json create mode 100644 libs/ui/collapsible/brain/eslint.config.js delete mode 100644 libs/ui/command/brain/.eslintrc.json create mode 100644 libs/ui/command/brain/eslint.config.js delete mode 100644 libs/ui/command/helm/.eslintrc.json create mode 100644 libs/ui/command/helm/eslint.config.js delete mode 100644 libs/ui/core/.eslintrc.json create mode 100644 libs/ui/core/eslint.config.js delete mode 100644 libs/ui/dialog/brain/.eslintrc.json create mode 100644 libs/ui/dialog/brain/eslint.config.js delete mode 100644 libs/ui/dialog/helm/.eslintrc.json create mode 100644 libs/ui/dialog/helm/eslint.config.js delete mode 100644 libs/ui/hover-card/brain/.eslintrc.json create mode 100644 libs/ui/hover-card/brain/eslint.config.js delete mode 100644 libs/ui/hover-card/helm/.eslintrc.json create mode 100644 libs/ui/hover-card/helm/eslint.config.js delete mode 100644 libs/ui/icon/helm/.eslintrc.json create mode 100644 libs/ui/icon/helm/eslint.config.js delete mode 100644 libs/ui/input/helm/.eslintrc.json create mode 100644 libs/ui/input/helm/eslint.config.js delete mode 100644 libs/ui/label/brain/.eslintrc.json create mode 100644 libs/ui/label/brain/eslint.config.js delete mode 100644 libs/ui/label/helm/.eslintrc.json create mode 100644 libs/ui/label/helm/eslint.config.js delete mode 100644 libs/ui/menu/brain/.eslintrc.json create mode 100644 libs/ui/menu/brain/eslint.config.js delete mode 100644 libs/ui/menu/helm/.eslintrc.json create mode 100644 libs/ui/menu/helm/eslint.config.js delete mode 100644 libs/ui/pagination/helm/.eslintrc.json create mode 100644 libs/ui/pagination/helm/eslint.config.js delete mode 100644 libs/ui/popover/brain/.eslintrc.json create mode 100644 libs/ui/popover/brain/eslint.config.js delete mode 100644 libs/ui/popover/helm/.eslintrc.json create mode 100644 libs/ui/popover/helm/eslint.config.js delete mode 100644 libs/ui/progress/brain/.eslintrc.json create mode 100644 libs/ui/progress/brain/eslint.config.js delete mode 100644 libs/ui/progress/helm/.eslintrc.json create mode 100644 libs/ui/progress/helm/eslint.config.js delete mode 100644 libs/ui/radio-group/brain/.eslintrc.json create mode 100644 libs/ui/radio-group/brain/eslint.config.js delete mode 100644 libs/ui/radio-group/helm/.eslintrc.json create mode 100644 libs/ui/radio-group/helm/eslint.config.js delete mode 100644 libs/ui/scroll-area/helm/.eslintrc.json create mode 100644 libs/ui/scroll-area/helm/eslint.config.js delete mode 100644 libs/ui/select/brain/.eslintrc.json create mode 100644 libs/ui/select/brain/eslint.config.js delete mode 100644 libs/ui/select/helm/.eslintrc.json create mode 100644 libs/ui/select/helm/eslint.config.js delete mode 100644 libs/ui/separator/brain/.eslintrc.json create mode 100644 libs/ui/separator/brain/eslint.config.js delete mode 100644 libs/ui/separator/helm/.eslintrc.json create mode 100644 libs/ui/separator/helm/eslint.config.js delete mode 100644 libs/ui/sheet/brain/.eslintrc.json create mode 100644 libs/ui/sheet/brain/eslint.config.js delete mode 100644 libs/ui/sheet/helm/.eslintrc.json create mode 100644 libs/ui/sheet/helm/eslint.config.js delete mode 100644 libs/ui/skeleton/helm/.eslintrc.json create mode 100644 libs/ui/skeleton/helm/eslint.config.js delete mode 100644 libs/ui/spinner/helm/.eslintrc.json create mode 100644 libs/ui/spinner/helm/eslint.config.js delete mode 100644 libs/ui/switch/brain/.eslintrc.json create mode 100644 libs/ui/switch/brain/eslint.config.js delete mode 100644 libs/ui/switch/helm/.eslintrc.json create mode 100644 libs/ui/switch/helm/eslint.config.js delete mode 100644 libs/ui/table/brain/.eslintrc.json create mode 100644 libs/ui/table/brain/eslint.config.js delete mode 100644 libs/ui/table/helm/.eslintrc.json create mode 100644 libs/ui/table/helm/eslint.config.js delete mode 100644 libs/ui/tabs/brain/.eslintrc.json create mode 100644 libs/ui/tabs/brain/eslint.config.js delete mode 100644 libs/ui/tabs/helm/.eslintrc.json create mode 100644 libs/ui/tabs/helm/eslint.config.js delete mode 100644 libs/ui/toggle/brain/.eslintrc.json create mode 100644 libs/ui/toggle/brain/eslint.config.js delete mode 100644 libs/ui/toggle/helm/.eslintrc.json create mode 100644 libs/ui/toggle/helm/eslint.config.js delete mode 100644 libs/ui/typography/helm/.eslintrc.json create mode 100644 libs/ui/typography/helm/eslint.config.js diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 3c3629e64..000000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 3c9bfcbcf..000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "root": true, - "ignorePatterns": ["**/*"], - "plugins": ["@nx"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": { - "@nx/enforce-module-boundaries": [ - "error", - { - "enforceBuildableLibDependency": true, - "allow": [], - "depConstraints": [ - { - "sourceTag": "*", - "onlyDependOnLibsWithTags": ["*"] - } - ] - } - ] - } - }, - { - "files": ["*.ts", "*.tsx"], - "extends": ["plugin:@nx/typescript"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "extends": ["plugin:@nx/javascript"], - "rules": {} - }, - { - "files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"], - "env": { - "jest": true - }, - "rules": {} - }, - { - "files": "*.json", - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/dependency-checks": [ - "error", - { - "buildTargets": ["build"], - "checkMissingDependencies": true, - "checkObsoleteDependencies": true, - "checkVersionMismatches": true, - "ignoredDependencies": [ - "jest-preset-angular", - "jest-axe", - "@testing-library/jest-dom", - "rxjs", - "@spartan-ng/ui-icon-helm", - "@spartan-ng/ui-button-helm", - "@spartan-ng/ui-avatar-brain" - ] - } - ] - } - } - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json index 18d2899a9..975e8bf42 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "eslint.validate": ["json"] + "eslint.validate": ["json"], + "eslint.experimental.useFlatConfig": true, + "eslint.format.enable": true } diff --git a/apps/app/.eslintrc.json b/apps/app/.eslintrc.json deleted file mode 100644 index fa4ee2019..000000000 --- a/apps/app/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "spartan", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "spartan", - "style": "kebab-case" - } - ] - } - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/apps/app/eslint.config.cjs b/apps/app/eslint.config.cjs new file mode 100644 index 000000000..1fde7983b --- /dev/null +++ b/apps/app/eslint.config.cjs @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../eslint.config.cjs'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'spartan', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'spartan', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/apps/app/project.json b/apps/app/project.json index 92536e762..0017f8210 100644 --- a/apps/app/project.json +++ b/apps/app/project.json @@ -3,6 +3,8 @@ "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "sourceRoot": "apps/app/src", + "tags": [], + "implicitDependencies": [], "targets": { "build": { "dependsOn": ["^build"], @@ -77,7 +79,5 @@ }, "dependsOn": ["build"] } - }, - "tags": [], - "implicitDependencies": [] + } } diff --git a/apps/trpc-app-e2e/.eslintrc.json b/apps/trpc-app-e2e/.eslintrc.json deleted file mode 100644 index 4939882d6..000000000 --- a/apps/trpc-app-e2e/.eslintrc.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": ["../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["src/plugins/index.js"], - "rules": { - "@typescript-eslint/no-var-requires": "off", - "no-undef": "off" - } - } - ] -} diff --git a/apps/trpc-app-e2e/eslint.config.js b/apps/trpc-app-e2e/eslint.config.js new file mode 100644 index 000000000..cec7de632 --- /dev/null +++ b/apps/trpc-app-e2e/eslint.config.js @@ -0,0 +1,16 @@ +const baseConfig = require('../../eslint.config.js'); + +module.exports = [ + ...baseConfig, + { + files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], + rules: {}, + }, + { + files: ['src/plugins/index.js'], + rules: { + '@typescript-eslint/no-var-requires': 'off', + 'no-undef': 'off', + }, + }, +]; diff --git a/apps/trpc-app-e2e/project.json b/apps/trpc-app-e2e/project.json index b225fba64..0b4e27e09 100644 --- a/apps/trpc-app-e2e/project.json +++ b/apps/trpc-app-e2e/project.json @@ -3,6 +3,8 @@ "$schema": "../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "apps/trpc-app-e2e/src", "projectType": "application", + "tags": [], + "implicitDependencies": ["app"], "targets": { "vitest": { "executor": "@nx/vite:test" @@ -18,7 +20,5 @@ "executor": "@nx/eslint:lint", "outputs": ["{options.outputFile}"] } - }, - "tags": [], - "implicitDependencies": ["app"] + } } diff --git a/apps/ui-storybook-e2e/.eslintrc.json b/apps/ui-storybook-e2e/.eslintrc.json deleted file mode 100644 index f191014a1..000000000 --- a/apps/ui-storybook-e2e/.eslintrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": ["plugin:cypress/recommended", "../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - } - ] -} diff --git a/apps/ui-storybook-e2e/eslint.config.js b/apps/ui-storybook-e2e/eslint.config.js new file mode 100644 index 000000000..9312728b9 --- /dev/null +++ b/apps/ui-storybook-e2e/eslint.config.js @@ -0,0 +1,17 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat.extends('plugin:cypress/recommended'), + { + files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], + rules: {}, + }, +]; diff --git a/apps/ui-storybook-e2e/project.json b/apps/ui-storybook-e2e/project.json index d5d60f51f..e227db47f 100644 --- a/apps/ui-storybook-e2e/project.json +++ b/apps/ui-storybook-e2e/project.json @@ -3,6 +3,8 @@ "$schema": "../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "apps/ui-storybook-e2e/src", "projectType": "application", + "tags": ["scope:e2e"], + "implicitDependencies": ["ui-storybook"], "targets": { "e2e": { "executor": "@nx/cypress:cypress", @@ -21,7 +23,5 @@ "executor": "@nx/eslint:lint", "outputs": ["{options.outputFile}"] } - }, - "tags": ["scope:e2e"], - "implicitDependencies": ["ui-storybook"] + } } diff --git a/eslint.config.cjs b/eslint.config.cjs new file mode 100644 index 000000000..36070d44e --- /dev/null +++ b/eslint.config.cjs @@ -0,0 +1,69 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const nxEslintPlugin = require('@nx/eslint-plugin'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + { plugins: { '@nx': nxEslintPlugin } }, + { + files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], + rules: { + '@nx/enforce-module-boundaries': [ + 'error', + { + enforceBuildableLibDependency: true, + allow: [], + depConstraints: [ + { + sourceTag: '*', + onlyDependOnLibsWithTags: ['*'], + }, + ], + }, + ], + }, + }, + ...compat.config({ extends: ['plugin:@nx/typescript'] }).map((config) => ({ + ...config, + files: ['**/*.ts', '**/*.tsx'], + rules: {}, + })), + ...compat.config({ extends: ['plugin:@nx/javascript'] }).map((config) => ({ + ...config, + files: ['**/*.js', '**/*.jsx'], + rules: {}, + })), + ...compat.config({ env: { jest: true } }).map((config) => ({ + ...config, + files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.spec.js', '**/*.spec.jsx'], + rules: {}, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { + '@nx/dependency-checks': [ + 'error', + { + buildTargets: ['build'], + checkMissingDependencies: true, + checkObsoleteDependencies: true, + checkVersionMismatches: true, + ignoredDependencies: [ + 'jest-preset-angular', + 'jest-axe', + '@testing-library/jest-dom', + 'rxjs', + '@spartan-ng/ui-icon-helm', + '@spartan-ng/ui-button-helm', + '@spartan-ng/ui-avatar-brain', + ], + }, + ], + }, + })), +]; diff --git a/libs/cli/.eslintrc.json b/libs/cli/.eslintrc.json deleted file mode 100644 index 46855176d..000000000 --- a/libs/cli/.eslintrc.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": ["../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["./package.json", "./executors.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/nx-plugin-checks": "error" - } - } - ] -} diff --git a/libs/cli/eslint.config.js b/libs/cli/eslint.config.js new file mode 100644 index 000000000..9044dfab0 --- /dev/null +++ b/libs/cli/eslint.config.js @@ -0,0 +1,29 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + { + files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], + rules: {}, + }, + { + files: ['**/*.ts', '**/*.tsx'], + rules: {}, + }, + { + files: ['**/*.js', '**/*.jsx'], + rules: {}, + }, + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['./package.json', './executors.json'], + rules: { '@nx/nx-plugin-checks': 'error' }, + })), +]; diff --git a/libs/cli/project.json b/libs/cli/project.json index a3be7abf0..9b41cb6b9 100644 --- a/libs/cli/project.json +++ b/libs/cli/project.json @@ -3,6 +3,7 @@ "$schema": "../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/cli/src", "projectType": "library", + "tags": ["scope:cli"], "targets": { "build": { "executor": "@nx/js:tsc", @@ -53,6 +54,5 @@ "libName": "cli" } } - }, - "tags": ["scope:cli"] + } } diff --git a/libs/tools/.eslintrc.json b/libs/tools/.eslintrc.json deleted file mode 100644 index d4339a2e8..000000000 --- a/libs/tools/.eslintrc.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": ["../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["*.ts", "*.tsx"], - "rules": {} - }, - { - "files": ["*.js", "*.jsx"], - "rules": {} - }, - { - "files": ["./package.json", "./generators.json", "./executors.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/nx-plugin-checks": "error" - } - } - ] -} diff --git a/libs/tools/eslint.config.js b/libs/tools/eslint.config.js new file mode 100644 index 000000000..a3cffa0fd --- /dev/null +++ b/libs/tools/eslint.config.js @@ -0,0 +1,29 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + { + files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], + rules: {}, + }, + { + files: ['**/*.ts', '**/*.tsx'], + rules: {}, + }, + { + files: ['**/*.js', '**/*.jsx'], + rules: {}, + }, + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['./package.json', './generators.json', './executors.json'], + rules: { '@nx/nx-plugin-checks': 'error' }, + })), +]; diff --git a/libs/tools/project.json b/libs/tools/project.json index 8e21f6340..a9075e3bc 100644 --- a/libs/tools/project.json +++ b/libs/tools/project.json @@ -3,6 +3,7 @@ "$schema": "../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/tools/src", "projectType": "library", + "tags": [], "targets": { "build": { "executor": "@nx/js:tsc", @@ -47,6 +48,5 @@ "jestConfig": "libs/tools/jest.config.ts" } } - }, - "tags": [] + } } diff --git a/libs/trpc/.eslintrc.json b/libs/trpc/.eslintrc.json deleted file mode 100644 index aa4c975c0..000000000 --- a/libs/trpc/.eslintrc.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": ["../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "spartan-ng", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "spartan-ng", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/trpc/eslint.config.js b/libs/trpc/eslint.config.js new file mode 100644 index 000000000..69ee66b32 --- /dev/null +++ b/libs/trpc/eslint.config.js @@ -0,0 +1,41 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'spartan-ng', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'spartan-ng', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/trpc/project.json b/libs/trpc/project.json index ad468e169..c0f0c4967 100644 --- a/libs/trpc/project.json +++ b/libs/trpc/project.json @@ -3,8 +3,8 @@ "$schema": "../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/trpc/src", "prefix": "spartan-ng", - "tags": ["trpc"], "projectType": "library", + "tags": ["trpc"], "targets": { "build": { "executor": "@angular-devkit/build-angular:ng-packagr", diff --git a/libs/ui/accordion/brain/.eslintrc.json b/libs/ui/accordion/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/accordion/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/accordion/brain/eslint.config.js b/libs/ui/accordion/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/accordion/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/accordion/brain/project.json b/libs/ui/accordion/brain/project.json index 8faaa2c9f..dbc0914af 100644 --- a/libs/ui/accordion/brain/project.json +++ b/libs/ui/accordion/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/accordion/brain/src", "prefix": "spartan", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/accordion/helm/.eslintrc.json b/libs/ui/accordion/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/accordion/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/accordion/helm/eslint.config.js b/libs/ui/accordion/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/accordion/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/accordion/helm/project.json b/libs/ui/accordion/helm/project.json index e89b00e49..ec76179d1 100644 --- a/libs/ui/accordion/helm/project.json +++ b/libs/ui/accordion/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/accordion/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/alert-dialog/brain/.eslintrc.json b/libs/ui/alert-dialog/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/alert-dialog/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/alert-dialog/brain/eslint.config.js b/libs/ui/alert-dialog/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/alert-dialog/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/alert-dialog/brain/project.json b/libs/ui/alert-dialog/brain/project.json index dca889702..82955c1a4 100644 --- a/libs/ui/alert-dialog/brain/project.json +++ b/libs/ui/alert-dialog/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/alert-dialog/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/alert-dialog/helm/.eslintrc.json b/libs/ui/alert-dialog/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/alert-dialog/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/alert-dialog/helm/eslint.config.js b/libs/ui/alert-dialog/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/alert-dialog/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/alert-dialog/helm/project.json b/libs/ui/alert-dialog/helm/project.json index f60458cfc..0ced3c5cf 100644 --- a/libs/ui/alert-dialog/helm/project.json +++ b/libs/ui/alert-dialog/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/alert-dialog/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/alert/helm/.eslintrc.json b/libs/ui/alert/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/alert/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/alert/helm/eslint.config.js b/libs/ui/alert/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/alert/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/alert/helm/project.json b/libs/ui/alert/helm/project.json index 504331d15..0245f2ef2 100644 --- a/libs/ui/alert/helm/project.json +++ b/libs/ui/alert/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/alert/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/aspect-ratio/helm/.eslintrc.json b/libs/ui/aspect-ratio/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/aspect-ratio/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/aspect-ratio/helm/eslint.config.js b/libs/ui/aspect-ratio/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/aspect-ratio/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/aspect-ratio/helm/project.json b/libs/ui/aspect-ratio/helm/project.json index 69e1a1ec8..f00e08afc 100644 --- a/libs/ui/aspect-ratio/helm/project.json +++ b/libs/ui/aspect-ratio/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/aspect-ratio/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/avatar/brain/.eslintrc.json b/libs/ui/avatar/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/avatar/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/avatar/brain/eslint.config.js b/libs/ui/avatar/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/avatar/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/avatar/brain/project.json b/libs/ui/avatar/brain/project.json index f4824420f..9fd541621 100644 --- a/libs/ui/avatar/brain/project.json +++ b/libs/ui/avatar/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/avatar/brain/src", "prefix": "brn", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/avatar/helm/.eslintrc.json b/libs/ui/avatar/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/avatar/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/avatar/helm/eslint.config.js b/libs/ui/avatar/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/avatar/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/avatar/helm/project.json b/libs/ui/avatar/helm/project.json index 7dea97e42..7439def07 100644 --- a/libs/ui/avatar/helm/project.json +++ b/libs/ui/avatar/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/avatar/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/badge/helm/.eslintrc.json b/libs/ui/badge/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/badge/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/badge/helm/eslint.config.js b/libs/ui/badge/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/badge/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/badge/helm/project.json b/libs/ui/badge/helm/project.json index 48e356669..ba276ba7b 100644 --- a/libs/ui/badge/helm/project.json +++ b/libs/ui/badge/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/badge/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/button/helm/.eslintrc.json b/libs/ui/button/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/button/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/button/helm/eslint.config.js b/libs/ui/button/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/button/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/button/helm/project.json b/libs/ui/button/helm/project.json index bc390588e..d2de5bc3c 100644 --- a/libs/ui/button/helm/project.json +++ b/libs/ui/button/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/button/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/card/helm/.eslintrc.json b/libs/ui/card/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/card/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/card/helm/eslint.config.js b/libs/ui/card/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/card/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/card/helm/project.json b/libs/ui/card/helm/project.json index 3459f16ab..f9b7d259f 100644 --- a/libs/ui/card/helm/project.json +++ b/libs/ui/card/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/card/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/carousel/helm/.eslintrc.json b/libs/ui/carousel/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/carousel/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/carousel/helm/eslint.config.js b/libs/ui/carousel/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/carousel/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/carousel/helm/project.json b/libs/ui/carousel/helm/project.json index 5190e0472..986610588 100644 --- a/libs/ui/carousel/helm/project.json +++ b/libs/ui/carousel/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/carousel/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/checkbox/brain/.eslintrc.json b/libs/ui/checkbox/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/checkbox/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/checkbox/brain/eslint.config.js b/libs/ui/checkbox/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/checkbox/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/checkbox/brain/project.json b/libs/ui/checkbox/brain/project.json index 4d602b569..16910afa7 100644 --- a/libs/ui/checkbox/brain/project.json +++ b/libs/ui/checkbox/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/checkbox/brain/src", "prefix": "spartan", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/checkbox/helm/.eslintrc.json b/libs/ui/checkbox/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/checkbox/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/checkbox/helm/eslint.config.js b/libs/ui/checkbox/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/checkbox/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/checkbox/helm/project.json b/libs/ui/checkbox/helm/project.json index ed44bb9ad..0770a8624 100644 --- a/libs/ui/checkbox/helm/project.json +++ b/libs/ui/checkbox/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/checkbox/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/collapsible/brain/.eslintrc.json b/libs/ui/collapsible/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/collapsible/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/collapsible/brain/eslint.config.js b/libs/ui/collapsible/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/collapsible/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/collapsible/brain/project.json b/libs/ui/collapsible/brain/project.json index 8f7acb860..3a97f006c 100644 --- a/libs/ui/collapsible/brain/project.json +++ b/libs/ui/collapsible/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/collapsible/brain/src", "prefix": "spartan", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/command/brain/.eslintrc.json b/libs/ui/command/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/command/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/command/brain/eslint.config.js b/libs/ui/command/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/command/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/command/brain/project.json b/libs/ui/command/brain/project.json index a6f7b09cd..fbe50b5a3 100644 --- a/libs/ui/command/brain/project.json +++ b/libs/ui/command/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/command/brain/src", "prefix": "hlm", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/command/helm/.eslintrc.json b/libs/ui/command/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/command/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/command/helm/eslint.config.js b/libs/ui/command/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/command/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/command/helm/project.json b/libs/ui/command/helm/project.json index ac61b847a..ffc3cf490 100644 --- a/libs/ui/command/helm/project.json +++ b/libs/ui/command/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/command/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/core/.eslintrc.json b/libs/ui/core/.eslintrc.json deleted file mode 100644 index d7ffde3cd..000000000 --- a/libs/ui/core/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "spartanNg", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "spartan-ng", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/core/eslint.config.js b/libs/ui/core/eslint.config.js new file mode 100644 index 000000000..e92e6ba46 --- /dev/null +++ b/libs/ui/core/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'spartanNg', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'spartan-ng', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/core/project.json b/libs/ui/core/project.json index 48d1c3e1e..a50b95501 100644 --- a/libs/ui/core/project.json +++ b/libs/ui/core/project.json @@ -3,8 +3,8 @@ "$schema": "../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/core/src", "prefix": "spartan-ng", - "tags": ["scope:core"], "projectType": "library", + "tags": ["scope:core"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/dialog/brain/.eslintrc.json b/libs/ui/dialog/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/dialog/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/dialog/brain/eslint.config.js b/libs/ui/dialog/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/dialog/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/dialog/brain/project.json b/libs/ui/dialog/brain/project.json index 440174cd1..51fde39b9 100644 --- a/libs/ui/dialog/brain/project.json +++ b/libs/ui/dialog/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/dialog/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/dialog/helm/.eslintrc.json b/libs/ui/dialog/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/dialog/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/dialog/helm/eslint.config.js b/libs/ui/dialog/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/dialog/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/dialog/helm/project.json b/libs/ui/dialog/helm/project.json index d2933a507..72032ab62 100644 --- a/libs/ui/dialog/helm/project.json +++ b/libs/ui/dialog/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/dialog/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/hover-card/brain/.eslintrc.json b/libs/ui/hover-card/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/hover-card/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/hover-card/brain/eslint.config.js b/libs/ui/hover-card/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/hover-card/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/hover-card/brain/project.json b/libs/ui/hover-card/brain/project.json index 9a5c89a1b..cc4e49850 100644 --- a/libs/ui/hover-card/brain/project.json +++ b/libs/ui/hover-card/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/hover-card/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/hover-card/helm/.eslintrc.json b/libs/ui/hover-card/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/hover-card/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/hover-card/helm/eslint.config.js b/libs/ui/hover-card/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/hover-card/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/hover-card/helm/project.json b/libs/ui/hover-card/helm/project.json index 47f4c90bd..74ff5d151 100644 --- a/libs/ui/hover-card/helm/project.json +++ b/libs/ui/hover-card/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/hover-card/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/icon/helm/.eslintrc.json b/libs/ui/icon/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/icon/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/icon/helm/eslint.config.js b/libs/ui/icon/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/icon/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/icon/helm/project.json b/libs/ui/icon/helm/project.json index 8f4584b2a..c7c6974d6 100644 --- a/libs/ui/icon/helm/project.json +++ b/libs/ui/icon/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/icon/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/input/helm/.eslintrc.json b/libs/ui/input/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/input/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/input/helm/eslint.config.js b/libs/ui/input/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/input/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/input/helm/project.json b/libs/ui/input/helm/project.json index 3a181d1a6..23ac947da 100644 --- a/libs/ui/input/helm/project.json +++ b/libs/ui/input/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/input/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/label/brain/.eslintrc.json b/libs/ui/label/brain/.eslintrc.json deleted file mode 100644 index a0ee95abf..000000000 --- a/libs/ui/label/brain/.eslintrc.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - } - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - }, - { - "files": ["*.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/dependency-checks": "error" - } - } - ] -} diff --git a/libs/ui/label/brain/eslint.config.js b/libs/ui/label/brain/eslint.config.js new file mode 100644 index 000000000..fa6b10353 --- /dev/null +++ b/libs/ui/label/brain/eslint.config.js @@ -0,0 +1,47 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { '@nx/dependency-checks': 'error' }, + })), +]; diff --git a/libs/ui/label/brain/project.json b/libs/ui/label/brain/project.json index 2e25d9435..d22da7a96 100644 --- a/libs/ui/label/brain/project.json +++ b/libs/ui/label/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/label/brain/src", "prefix": "brn", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/label/helm/.eslintrc.json b/libs/ui/label/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/label/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/label/helm/eslint.config.js b/libs/ui/label/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/label/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/label/helm/project.json b/libs/ui/label/helm/project.json index 901fd30b2..e68e3baab 100644 --- a/libs/ui/label/helm/project.json +++ b/libs/ui/label/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/label/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/menu/brain/.eslintrc.json b/libs/ui/menu/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/menu/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/menu/brain/eslint.config.js b/libs/ui/menu/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/menu/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/menu/brain/project.json b/libs/ui/menu/brain/project.json index 7994c1349..fe36252f3 100644 --- a/libs/ui/menu/brain/project.json +++ b/libs/ui/menu/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/menu/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/menu/helm/.eslintrc.json b/libs/ui/menu/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/menu/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/menu/helm/eslint.config.js b/libs/ui/menu/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/menu/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/menu/helm/project.json b/libs/ui/menu/helm/project.json index 346a0fa44..c816977b7 100644 --- a/libs/ui/menu/helm/project.json +++ b/libs/ui/menu/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/menu/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/pagination/helm/.eslintrc.json b/libs/ui/pagination/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/pagination/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/pagination/helm/eslint.config.js b/libs/ui/pagination/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/pagination/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/pagination/helm/project.json b/libs/ui/pagination/helm/project.json index f730e9028..5314e2b8a 100644 --- a/libs/ui/pagination/helm/project.json +++ b/libs/ui/pagination/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/pagination/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/popover/brain/.eslintrc.json b/libs/ui/popover/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/popover/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/popover/brain/eslint.config.js b/libs/ui/popover/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/popover/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/popover/brain/project.json b/libs/ui/popover/brain/project.json index f37df3f43..d2133f982 100644 --- a/libs/ui/popover/brain/project.json +++ b/libs/ui/popover/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/popover/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/popover/helm/.eslintrc.json b/libs/ui/popover/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/popover/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/popover/helm/eslint.config.js b/libs/ui/popover/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/popover/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/popover/helm/project.json b/libs/ui/popover/helm/project.json index 717eb58d1..ab698d5c4 100644 --- a/libs/ui/popover/helm/project.json +++ b/libs/ui/popover/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/popover/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/progress/brain/.eslintrc.json b/libs/ui/progress/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/progress/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/progress/brain/eslint.config.js b/libs/ui/progress/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/progress/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/progress/brain/project.json b/libs/ui/progress/brain/project.json index 59ea6b01b..111014e42 100644 --- a/libs/ui/progress/brain/project.json +++ b/libs/ui/progress/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/progress/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/progress/helm/.eslintrc.json b/libs/ui/progress/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/progress/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/progress/helm/eslint.config.js b/libs/ui/progress/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/progress/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/progress/helm/project.json b/libs/ui/progress/helm/project.json index 8f0242ddf..7f3a37c66 100644 --- a/libs/ui/progress/helm/project.json +++ b/libs/ui/progress/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/progress/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/radio-group/brain/.eslintrc.json b/libs/ui/radio-group/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/radio-group/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/radio-group/brain/eslint.config.js b/libs/ui/radio-group/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/radio-group/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/radio-group/brain/project.json b/libs/ui/radio-group/brain/project.json index 0d54e7344..bc7277257 100644 --- a/libs/ui/radio-group/brain/project.json +++ b/libs/ui/radio-group/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/radio-group/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/radio-group/helm/.eslintrc.json b/libs/ui/radio-group/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/radio-group/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/radio-group/helm/eslint.config.js b/libs/ui/radio-group/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/radio-group/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/radio-group/helm/project.json b/libs/ui/radio-group/helm/project.json index de235b929..2195dff2d 100644 --- a/libs/ui/radio-group/helm/project.json +++ b/libs/ui/radio-group/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/radio-group/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/scroll-area/helm/.eslintrc.json b/libs/ui/scroll-area/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/scroll-area/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/scroll-area/helm/eslint.config.js b/libs/ui/scroll-area/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/scroll-area/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/scroll-area/helm/project.json b/libs/ui/scroll-area/helm/project.json index 1b1cc93c0..331b868ce 100644 --- a/libs/ui/scroll-area/helm/project.json +++ b/libs/ui/scroll-area/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/scroll-area/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/select/brain/.eslintrc.json b/libs/ui/select/brain/.eslintrc.json deleted file mode 100644 index a0ee95abf..000000000 --- a/libs/ui/select/brain/.eslintrc.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - } - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - }, - { - "files": ["*.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/dependency-checks": "error" - } - } - ] -} diff --git a/libs/ui/select/brain/eslint.config.js b/libs/ui/select/brain/eslint.config.js new file mode 100644 index 000000000..fa6b10353 --- /dev/null +++ b/libs/ui/select/brain/eslint.config.js @@ -0,0 +1,47 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { '@nx/dependency-checks': 'error' }, + })), +]; diff --git a/libs/ui/select/brain/project.json b/libs/ui/select/brain/project.json index c99caa2a2..f8797fdab 100644 --- a/libs/ui/select/brain/project.json +++ b/libs/ui/select/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/select/brain/src", "prefix": "brn", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/select/helm/.eslintrc.json b/libs/ui/select/helm/.eslintrc.json deleted file mode 100644 index 47e721bb8..000000000 --- a/libs/ui/select/helm/.eslintrc.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - } - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - }, - { - "files": ["*.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/dependency-checks": "error" - } - } - ] -} diff --git a/libs/ui/select/helm/eslint.config.js b/libs/ui/select/helm/eslint.config.js new file mode 100644 index 000000000..b3a92b5ce --- /dev/null +++ b/libs/ui/select/helm/eslint.config.js @@ -0,0 +1,47 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { '@nx/dependency-checks': 'error' }, + })), +]; diff --git a/libs/ui/select/helm/project.json b/libs/ui/select/helm/project.json index 36ee105bd..3baad3c68 100644 --- a/libs/ui/select/helm/project.json +++ b/libs/ui/select/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/select/helm/src", "prefix": "lib", - "tags": [], "projectType": "library", + "tags": [], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/separator/brain/.eslintrc.json b/libs/ui/separator/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/separator/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/separator/brain/eslint.config.js b/libs/ui/separator/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/separator/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/separator/brain/project.json b/libs/ui/separator/brain/project.json index 3b602f0e8..f474443cf 100644 --- a/libs/ui/separator/brain/project.json +++ b/libs/ui/separator/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/separator/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/separator/helm/.eslintrc.json b/libs/ui/separator/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/separator/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/separator/helm/eslint.config.js b/libs/ui/separator/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/separator/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/separator/helm/project.json b/libs/ui/separator/helm/project.json index c6118bf68..b58bdb735 100644 --- a/libs/ui/separator/helm/project.json +++ b/libs/ui/separator/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/separator/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/sheet/brain/.eslintrc.json b/libs/ui/sheet/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/sheet/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/sheet/brain/eslint.config.js b/libs/ui/sheet/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/sheet/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/sheet/brain/project.json b/libs/ui/sheet/brain/project.json index 56d14ac24..a53b61204 100644 --- a/libs/ui/sheet/brain/project.json +++ b/libs/ui/sheet/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/sheet/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/sheet/helm/.eslintrc.json b/libs/ui/sheet/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/sheet/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/sheet/helm/eslint.config.js b/libs/ui/sheet/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/sheet/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/sheet/helm/project.json b/libs/ui/sheet/helm/project.json index d276bbcea..238b2bf55 100644 --- a/libs/ui/sheet/helm/project.json +++ b/libs/ui/sheet/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/sheet/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/skeleton/helm/.eslintrc.json b/libs/ui/skeleton/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/skeleton/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/skeleton/helm/eslint.config.js b/libs/ui/skeleton/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/skeleton/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/skeleton/helm/project.json b/libs/ui/skeleton/helm/project.json index 61f8a21e4..6e88aa420 100644 --- a/libs/ui/skeleton/helm/project.json +++ b/libs/ui/skeleton/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/skeleton/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/spinner/helm/.eslintrc.json b/libs/ui/spinner/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/spinner/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/spinner/helm/eslint.config.js b/libs/ui/spinner/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/spinner/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/spinner/helm/project.json b/libs/ui/spinner/helm/project.json index 25c39a161..04a8daf5c 100644 --- a/libs/ui/spinner/helm/project.json +++ b/libs/ui/spinner/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/spinner/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/switch/brain/.eslintrc.json b/libs/ui/switch/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/switch/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/switch/brain/eslint.config.js b/libs/ui/switch/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/switch/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/switch/brain/project.json b/libs/ui/switch/brain/project.json index 02b6ad281..e3dfd4726 100644 --- a/libs/ui/switch/brain/project.json +++ b/libs/ui/switch/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/switch/brain/src", "prefix": "spartan", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/switch/helm/.eslintrc.json b/libs/ui/switch/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/switch/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/switch/helm/eslint.config.js b/libs/ui/switch/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/switch/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/switch/helm/project.json b/libs/ui/switch/helm/project.json index 63c99f67a..fdf0b7dd6 100644 --- a/libs/ui/switch/helm/project.json +++ b/libs/ui/switch/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/switch/helm/src", "prefix": "hlm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/table/brain/.eslintrc.json b/libs/ui/table/brain/.eslintrc.json deleted file mode 100644 index a0ee95abf..000000000 --- a/libs/ui/table/brain/.eslintrc.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - } - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - }, - { - "files": ["*.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/dependency-checks": "error" - } - } - ] -} diff --git a/libs/ui/table/brain/eslint.config.js b/libs/ui/table/brain/eslint.config.js new file mode 100644 index 000000000..fa6b10353 --- /dev/null +++ b/libs/ui/table/brain/eslint.config.js @@ -0,0 +1,47 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { '@nx/dependency-checks': 'error' }, + })), +]; diff --git a/libs/ui/table/brain/project.json b/libs/ui/table/brain/project.json index 52663e7a6..5064e8bfa 100644 --- a/libs/ui/table/brain/project.json +++ b/libs/ui/table/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/table/brain/src", "prefix": "brn", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/table/helm/.eslintrc.json b/libs/ui/table/helm/.eslintrc.json deleted file mode 100644 index 47e721bb8..000000000 --- a/libs/ui/table/helm/.eslintrc.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - } - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - }, - { - "files": ["*.json"], - "parser": "jsonc-eslint-parser", - "rules": { - "@nx/dependency-checks": "error" - } - } - ] -} diff --git a/libs/ui/table/helm/eslint.config.js b/libs/ui/table/helm/eslint.config.js new file mode 100644 index 000000000..b3a92b5ce --- /dev/null +++ b/libs/ui/table/helm/eslint.config.js @@ -0,0 +1,47 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { '@nx/dependency-checks': 'error' }, + })), +]; diff --git a/libs/ui/table/helm/project.json b/libs/ui/table/helm/project.json index a348ad6d8..88666f94b 100644 --- a/libs/ui/table/helm/project.json +++ b/libs/ui/table/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/table/helm/src", "prefix": "spartan-ng", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/tabs/brain/.eslintrc.json b/libs/ui/tabs/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/tabs/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/tabs/brain/eslint.config.js b/libs/ui/tabs/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/tabs/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/tabs/brain/project.json b/libs/ui/tabs/brain/project.json index dccde3917..652e7497b 100644 --- a/libs/ui/tabs/brain/project.json +++ b/libs/ui/tabs/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/tabs/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/tabs/helm/.eslintrc.json b/libs/ui/tabs/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/tabs/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/tabs/helm/eslint.config.js b/libs/ui/tabs/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/tabs/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/tabs/helm/project.json b/libs/ui/tabs/helm/project.json index 1b7b9f1b2..f4760c5e7 100644 --- a/libs/ui/tabs/helm/project.json +++ b/libs/ui/tabs/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/tabs/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/toggle/brain/.eslintrc.json b/libs/ui/toggle/brain/.eslintrc.json deleted file mode 100644 index 70093c623..000000000 --- a/libs/ui/toggle/brain/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "brn", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "brn", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/toggle/brain/eslint.config.js b/libs/ui/toggle/brain/eslint.config.js new file mode 100644 index 000000000..76d93373d --- /dev/null +++ b/libs/ui/toggle/brain/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'brn', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'brn', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/toggle/brain/project.json b/libs/ui/toggle/brain/project.json index a99d9f837..834c981a8 100644 --- a/libs/ui/toggle/brain/project.json +++ b/libs/ui/toggle/brain/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/toggle/brain/src", "prefix": "brain", - "tags": ["scope:brain"], "projectType": "library", + "tags": ["scope:brain"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/toggle/helm/.eslintrc.json b/libs/ui/toggle/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/toggle/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/toggle/helm/eslint.config.js b/libs/ui/toggle/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/toggle/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/toggle/helm/project.json b/libs/ui/toggle/helm/project.json index a5598fc7d..05753de1c 100644 --- a/libs/ui/toggle/helm/project.json +++ b/libs/ui/toggle/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/toggle/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/libs/ui/typography/helm/.eslintrc.json b/libs/ui/typography/helm/.eslintrc.json deleted file mode 100644 index 84eabd35c..000000000 --- a/libs/ui/typography/helm/.eslintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": ["../../../../.eslintrc.json"], - "ignorePatterns": ["!**/*"], - "overrides": [ - { - "files": ["*.ts"], - "rules": { - "@angular-eslint/no-host-metadata-property": 0, - "@angular-eslint/directive-selector": [ - "error", - { - "type": "attribute", - "prefix": "hlm", - "style": "camelCase" - } - ], - "@angular-eslint/component-selector": [ - "error", - { - "type": "element", - "prefix": "hlm", - "style": "kebab-case" - } - ] - }, - "extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"] - }, - { - "files": ["*.html"], - "extends": ["plugin:@nx/angular-template"], - "rules": {} - } - ] -} diff --git a/libs/ui/typography/helm/eslint.config.js b/libs/ui/typography/helm/eslint.config.js new file mode 100644 index 000000000..1bafe9a1b --- /dev/null +++ b/libs/ui/typography/helm/eslint.config.js @@ -0,0 +1,42 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ extends: ['plugin:@nx/angular', 'plugin:@angular-eslint/template/process-inline-templates'] }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + '@angular-eslint/no-host-metadata-property': 0, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'hlm', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'hlm', + style: 'kebab-case', + }, + ], + }, + })), + ...compat.config({ extends: ['plugin:@nx/angular-template'] }).map((config) => ({ + ...config, + files: ['**/*.html'], + rules: {}, + })), +]; diff --git a/libs/ui/typography/helm/project.json b/libs/ui/typography/helm/project.json index b0e2da1c0..f20154abd 100644 --- a/libs/ui/typography/helm/project.json +++ b/libs/ui/typography/helm/project.json @@ -3,8 +3,8 @@ "$schema": "../../../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "libs/ui/typography/helm/src", "prefix": "helm", - "tags": ["scope:helm"], "projectType": "library", + "tags": ["scope:helm"], "targets": { "build": { "executor": "@nx/angular:package", diff --git a/nx.json b/nx.json index eea6639e4..0cd2f2c77 100644 --- a/nx.json +++ b/nx.json @@ -14,7 +14,12 @@ "cache": true }, "lint": { - "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"], + "inputs": [ + "default", + "{workspaceRoot}/.eslintrc.json", + "{workspaceRoot}/.eslintignore", + "{workspaceRoot}/eslint.config.js" + ], "cache": true }, "build-storybook": { @@ -39,7 +44,12 @@ "cache": true }, "@nx/eslint:lint": { - "inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"], + "inputs": [ + "default", + "{workspaceRoot}/.eslintrc.json", + "{workspaceRoot}/.eslintignore", + "{workspaceRoot}/eslint.config.js" + ], "cache": true } }, @@ -53,7 +63,8 @@ "!{projectRoot}/.eslintrc.json", "!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)", "!{projectRoot}/.storybook/**/*", - "!{projectRoot}/tsconfig.storybook.json" + "!{projectRoot}/tsconfig.storybook.json", + "!{projectRoot}/eslint.config.js" ], "sharedGlobals": [] }, diff --git a/package.json b/package.json index 036a445ff..d07207fc0 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,8 @@ "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@commitlint/cli": "^17.4.2", "@commitlint/config-conventional": "^17.4.2", + "@eslint/eslintrc": "^2.1.1", + "@eslint/js": "~8.57.0", "@faker-js/faker": "^8.0.2", "@ng-icons/lucide": "^26.3.0", "@ngtools/webpack": "17.3.5",