Skip to content
Discussion options

You must be logged in to vote

Solved the issue. :) It's not a nx-specific problem at all. Some rules may only be applied to certain file types/extensions and won't be recognized otherwise.
Although the HTML template is embedded in a *.ts file, I have to apply the rule config to HTML files and then it is working as expected. So the following config is working, although the linted code is inside a *.ts file:

import nx from '@nx/eslint-plugin';
import baseConfig from '../../eslint.config.mjs';

export default [
  ...baseConfig,
  ...nx.configs['flat/angular'],
  ...nx.configs['flat/angular-template'],
  {
    files: ['**/*.ts'],
    rules: {
      '@angular-eslint/directive-selector': [
        'error',
        {
          

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Michaelvsk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant