Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

353
Visualizações
How to set up Stylelint in a Next.js project?

I want to add Stylelint in my Next.js app. I am asking if I can edit next.config.js to add stylelint-webpack-plugin, so I get styles errors during compilation.

// next.config.js
module.exports = {
  reactStrictMode: true,
};
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Prepare the setup fort both CSS and SCSS

  1. Install needed packages:
npm i stylelint stylelint-webpack-plugin --save-dev
  1. Create .stylelintignore file in your root folder et past in it:
node_modules
  1. Edit next.config.js file:
const StylelintPlugin = require("stylelint-webpack-plugin"); // line to add
module.exports = {
  reactStrictMode: true,
  // lines to add
  webpack: (config, options) => {
    config.plugins.push(new StylelintPlugin());
    return config;
  },

};

Set up Stylelint with CSS

  1. Install needed package:
npm i stylelint-config-standard --save-dev
  1. Create .stylelintrc file in your root folder and past in it:
{
 "extends": "stylelint-config-standard",
 "rules": {
   "string-quotes": "double"
  }
}

Set up Stylelint with SCSS

  1. Install needed packages:
npm i sass stylelint-config-standard-scss --save-dev
  1. Create .stylelintrc file in your root folder and past in it:
{
 "extends": "stylelint-config-standard-scss",
 "rules": {
   "string-quotes": "double"
  }
}
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda