Skip to content

V4 plugin runs against code #331

Closed
@DavidHenri008

Description

@DavidHenri008

I upgraded to the latest version, 4.0.0, and I cannot build my code anymore since the plugin finds errors in my code.

With the following configuration :

extends: ['airbnb', 'plugin:prettier/recommended', 'plugin:testing-library/react'],
plugins: ['react-hooks', 'testing-library'],

I am getting the no-node-access error for the code document.getElementById('root') :

ReactDOM.render(
  <CommProvider useDsa={false}>
    <ThemeProvider>
      <GlobalStyle />
      <Suspense fallback={<Loader />}>
        <AppLogin />
      </Suspense>
    </ThemeProvider>
  </CommProvider>,
  document.getElementById('root')
);

I was expecting the rules to be applied to only .test.js files.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions