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

176
Visualizações
eslint is not getting disabled for specific file

I'm trying to create Notes.ts file for making notes of typescript. I need syntax highlighting but no eslint. How can i stop eslint to stop working for my notes file.

MyDir Structure

root/.eslintignore
root/NestJS.ts
root/package.json

NestJS.ts Contents

/* eslint-disable */

import { Controller, Get } from '@nestjs/common';

@Controller('/app')
export class AppController {
  @Get('/asdf')
  getRootRoute() {
    return 'hi there!';
  }

  @Get('/bye')
  getByeThere() {
    return 'bye there!';
  }
}

.eslintignore contents

**/*.js
**/*.ts
NestJs.ts

package.json contents

{
  "name": "notes",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "eslintConfig": {
    "env": {
      "browser": true,
      "node": true
    }
  },
  "eslintIgnore": [
    "NestJS.ts",
    "world.js"
  ]
}

even after adding /* eslint-disable */, eslint is showing me errors !!!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can create a file .eslintignore in the root catalog. The format of this file matches the format of .gitignore and you can add there not only files but directories too.

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