Turning off eslint rule for a specific file

后端 未结 15 1469
后悔当初
后悔当初 2020-11-30 17:26

Is it possible to turn off the eslint rule for the whole file? Something such as:

// eslint-disable-file no-use-before-define 

(Analogous t

15条回答
  •  温柔的废话
    2020-11-30 17:39

    You can turn off specific rule for a file by using /*eslint []*/

    /* eslint no-console: "off", no-mixed-operators: "off" */

    Version: eslint@4.3.0

提交回复
热议问题