0

I would like to disable linting for all files in a directory

For example

/
 some.js <-LINT
 noLint
   file1.js <- NO LINT
   file2.js <- NO LINT
   subDir
     file3.js <- NO LINT
Toli
  • 5,547
  • 8
  • 36
  • 56

1 Answers1

0

I don't think that is possible. For jscs, I can imagine you can create a jscsrc that effectively disables all default rules. For example:

{
    "validateLineBreaks": false,
    "disallowMultipleVarDecl": false,
    "validateIndentation": null
}

For jshint, you can try something similar:

{
    "browser": true,
    "jquery": true,
    "mocha": true,
    "node": true,

    "curly": false,
    "eqeqeq": false,
    "maxdepth": 99,
    "maxerr": 1000,
    "undef": false,
    "unused": false,
    "esversion": 6,
    "expr": true
}

So instead of disabling, you create settings that are as loose as possible.

Nikolaos Georgiou
  • 2,792
  • 1
  • 26
  • 32