@db-ux/ngx-core-components 4.5.4-mcp-server-migrate-tool-test-1-eb724df → 4.5.4-postcss-a42fe67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -129,6 +129,39 @@ This will create or update `.github/copilot-instructions.md` with component docu
|
|
|
129
129
|
|
|
130
130
|
📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
|
|
131
131
|
|
|
132
|
+
## Code Quality
|
|
133
|
+
|
|
134
|
+
To enforce correct usage of DB UX Design System components in your Angular templates, we provide the [`@db-ux/core-eslint-plugin`](https://www.npmjs.com/package/@db-ux/core-eslint-plugin) ESLint plugin.
|
|
135
|
+
|
|
136
|
+
### Installation
|
|
137
|
+
|
|
138
|
+
```shell
|
|
139
|
+
npm install eslint @db-ux/core-eslint-plugin @angular-eslint/template-parser --save-dev
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Setup
|
|
143
|
+
|
|
144
|
+
```js
|
|
145
|
+
// eslint.config.js
|
|
146
|
+
import dbUx from "@db-ux/core-eslint-plugin";
|
|
147
|
+
import angularTemplateParser from "@angular-eslint/template-parser";
|
|
148
|
+
|
|
149
|
+
export default [
|
|
150
|
+
{
|
|
151
|
+
files: ["**/*.html"],
|
|
152
|
+
languageOptions: {
|
|
153
|
+
parser: angularTemplateParser
|
|
154
|
+
},
|
|
155
|
+
plugins: {
|
|
156
|
+
"db-ux": dbUx
|
|
157
|
+
},
|
|
158
|
+
rules: dbUx.configs.recommended.rules
|
|
159
|
+
}
|
|
160
|
+
];
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
📖 **[Learn more about `@db-ux/core-eslint-plugin` node package](https://www.npmjs.com/package/@db-ux/core-eslint-plugin)**
|
|
164
|
+
|
|
132
165
|
## Deutsche Bahn brand
|
|
133
166
|
|
|
134
167
|
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
|