Disable a specific linter rule in Atom (for js-standard)

前端 未结 4 1856
悲&欢浪女
悲&欢浪女 2021-01-12 15:19

How do I tell an Atom linter, specifically js-standard, to ignore a rule? I want it ignored project-wide, and I thought that I could achieve this with a package.json or a .e

4条回答
  •  孤独总比滥情好
    2021-01-12 16:11

    If it is ESlint that your plugin uses then create a .eslintrc file in the root of your project & write your rules within there.

    Heres an example of a .eslintrc file github example. I find i need to close and reopen Atom to refresh the lint errors

    EDIT:

    showEslintRules (default: false). You will need to change this option to true.

提交回复
热议问题