rsnext/packages/eslint-plugin-next/lib/rules
Nils Kaspersson d1ce7b7c58
[ESLint] Prevent no-html-link-for-pages from warning for static files (#31495)
The rule [`no-html-link-for-pages`](https://nextjs.org/docs/messages/no-html-link-for-pages) will incorrectly flag an `<a>`-tag intended to download a local asset. This PR adds an exception to the rule for any anchor element with a `download` attribute.

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2021-11-19 03:39:36 +00:00
..
google-font-display.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
google-font-preconnect.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
inline-script-id.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
link-passhref.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
next-script-for-ga.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-css-tags.js Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
no-document-import-in-page.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-duplicate-head.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-head-import-in-document.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-html-link-for-pages.js [ESLint] Prevent no-html-link-for-pages from warning for static files (#31495) 2021-11-19 03:39:36 +00:00
no-img-element.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-page-custom-font.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-script-in-document.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-script-in-head.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-server-import-in-page.js Add eslint rule to prevent importing next/server outside of _middleware (#30973) 2021-11-12 17:44:39 -06:00
no-sync-scripts.js next lint + ESLint in Create Next App (#25064) 2021-06-03 14:01:24 +02:00
no-title-in-document-head.js Add ESLint docs URLs (#29645) 2021-10-16 01:16:41 -05:00
no-typos.js [ESLint] add no-typos rule to eslint (#26650) 2021-07-24 22:22:19 -05:00
no-unwanted-polyfillio.js [ESLint] Add add next/script support for no-unwanted-polyfillio rule (#28944) 2021-10-22 11:19:24 +00:00