Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom ESLint rules are not affecting any project #22869

Open
4 tasks
danr-za opened this issue Apr 18, 2024 · 0 comments
Open
4 tasks

Custom ESLint rules are not affecting any project #22869

danr-za opened this issue Apr 18, 2024 · 0 comments
Assignees
Labels
scope: linter Issues related to Eslint support in Nx type: bug

Comments

@danr-za
Copy link
Contributor

danr-za commented Apr 18, 2024

Current Behavior

Creating a new custom lint rule with @nx/eslint:workspace-rule will not affect any project and thus affected:lint will not lint any project, also after adding the rule to the tool .eslintrc.json.

Expected Behavior

Custom lint rules should affect the lint target.
Btw, I also think that custom lint rules should belong in the local workspace plugin(s) as same as generators etc.

GitHub Repo

No response

Steps to Reproduce

  1. Create a custom lint rule
  2. Add it to the root .eslintrc.json
  3. Run affected:lint

Nx Report

Node   : 20.12.0
OS     : darwin-arm64
yarn   : 4.1.1

nx (global)        : 18.0.4
nx                 : 18.2.4
@nx/js             : 18.2.4
@nx/jest           : 18.2.4
@nx/linter         : 18.2.4
@nx/eslint         : 18.2.4
@nx/workspace      : 18.2.4
@nx/cypress        : 18.2.4
@nx/devkit         : 18.2.4
@nx/eslint-plugin  : 18.2.4
@nx/node           : 18.2.4
@nx/plugin         : 18.2.4
@nx/react          : 18.2.4
@nx/storybook      : 18.2.4
@nrwl/tao          : 18.2.4
@nx/vite           : 18.2.4
@nx/web            : 18.2.4
@nx/webpack        : 18.2.4
typescript         : 5.4.4
---------------------------------------
Community plugins:
nx-stylelint : 17.1.4
---------------------------------------
Local workspace plugins:
         @island/workspace

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@AgentEnder AgentEnder added the scope: linter Issues related to Eslint support in Nx label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: linter Issues related to Eslint support in Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants