Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!