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

前端 未结 4 1847
悲&欢浪女
悲&欢浪女 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:12

    For the record, here's how to use js-standard in Atom while selectively disabling a certain rule.

    1. Disable the linter-js-standard atom package
    2. Install linter-eslint
    3. Add an .eslintrc file:

      {
        "extends": ["standard"],
        "rules": {
          "camelcase": 0
        }
      }
      

    You may also need to install standard and eslint via npm, if you don't have them already.

提交回复
热议问题