rsnext/test/unit/eslint-plugin-next
Jiwon Choi 022cb25640
fix(eslint): next/script beforeInteractive gives warning on appDir (#51148)
## Issue

The `context.getFilename()` gets the absolute path of the files, and the if statement to filter `/src` and `/app` was not working since #46609.

## Expected

Do not show a lint warning if use `beforeInteractive` inside `appDir`.

Fixes #46609 #50261
2023-11-12 09:30:10 +00:00
..
custom-pages Bug fix for lint rule (#28677) 2021-09-02 10:45:27 +02:00
with-app-dir/app Skip warning if there is app directory for no-html-link-for-pages rule (#42516) 2023-03-22 02:15:52 +00:00
with-custom-pages-dir/custom-pages Skip warning if there is app directory for no-html-link-for-pages rule (#42516) 2023-03-22 02:15:52 +00:00
without-pages-dir Skip warning if there is app directory for no-html-link-for-pages rule (#42516) 2023-03-22 02:15:52 +00:00
google-font-display.test.ts Change condition to check for string attribute in lint rules utility function (#42625) 2022-11-09 19:54:38 -08:00
google-font-preconnect.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
index.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
inline-script-id.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
next-script-for-ga.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-assign-module-variable.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-async-client-component.test.ts Fix eslint async client component (#51952) 2023-06-28 20:03:32 -07:00
no-before-interactive-script-outside-document.test.ts fix(eslint): next/script beforeInteractive gives warning on appDir (#51148) 2023-11-12 09:30:10 +00:00
no-css-tags.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-document-import-in-page.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-duplicate-head.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-head-element.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-head-import-in-document.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-html-link-for-pages.test.ts Skip warning if there is app directory for no-html-link-for-pages rule (#42516) 2023-03-22 02:15:52 +00:00
no-img-element.test.ts Updates next/image eslint message to denote that costs may be incurred. (#46640) 2023-03-01 14:28:09 -08:00
no-page-custom-font.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-script-component-in-head.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-styled-jsx-in-document.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-sync-scripts.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-title-in-document-head.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-typos.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00
no-unwanted-polyfillio.test.ts chore: add build step to eslint-plugin-next (#38647) 2022-09-30 01:37:59 +00:00