frankframework / frontend-conventions

1 stars 0 forks source link

Convert components in projects to standalone #13

Open MatthijsSmets opened 4 months ago

philipsens commented 4 months ago

It was pretty hard to convert. I got stuck with angular plugin.

```js import tseslint from '@eslint/js'; import angular from '@angular-eslint/eslint-plugin/dist/configs/recommended'; import angularTemplate from '@angular-eslint/eslint-plugin-template/dist/configs/recommended.json'; export default [ tseslint.configs.recommended, angular.configs.tsRecommended, angularTemplate, { ignores: ['projects/**/*'], extends: [ 'plugin:@angular-eslint/template/process-inline-templates', 'plugin:unicorn/recommended', 'plugin:prettier/recommended' ], files: ['**/*.ts'], languageOptions: { ecmaVersion: 'latest', sourceType: 'module', parserOptions: { project: ['tsconfig.app.json', 'tsconfig.spec.json'], createDefaultProgram: true, sourceType: 'module' } }, rules: { 'prefer-template': 'error', '@typescript-eslint/explicit-function-return-type': 'error', 'unicorn/prevent-abbreviations': 'warn', 'unicorn/no-array-reduce': 'off', 'unicorn/prefer-ternary': 'warn', 'unicorn/no-null': 'off', 'unicorn/prefer-dom-node-text-content': 'warn' } }, { extends: [ 'plugin:@angular-eslint/template/recommended', 'plugin:prettier/recommended' ], files: ['**/*.component.html', '**/*.css', '**/*.scss'], rules: {} } ]; ```