Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
// Manually including local CSS file
<link href="/_next/static/css/styles.css" rel="stylesheet" />
// In pages/_document.js
<Head>
<link href="css/my-styles.css" rel="stylesheet" />
</Head>// Importing CSS file directly
import '../styles/global.css'
// Using CSS Modules
import styles from './Button.module.css'
// Using external stylesheets (allowed)
<link
href="https://fonts.googleapis.com/css?family=Open+Sans"
rel="stylesheet"
/>
// Using styled-jsx
<style jsx>{`
.button { color: blue; }
`}</style>Popular · 1 of 50
// Manually including local CSS file
<link href="/_next/static/css/styles.css" rel="stylesheet" />
// In pages/_document.js
<Head>
<link href="css/my-styles.css" rel="stylesheet" />
</Head>// Importing CSS file directly
import '../styles/global.css'
// Using CSS Modules
import styles from './Button.module.css'
// Using external stylesheets (allowed)
<link
href="https://fonts.googleapis.com/css?family=Open+Sans"
rel="stylesheet"
/>
// Using styled-jsx
<style jsx>{`
.button { color: blue; }
`}</style>