Closed
Description
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.