Linting - sikaeducation/vue-curriculum GitHub Wiki

Linters help keep code style consistent in a codebase with multiple users. The scrimmages in this workshop all use the AirBnB Style Guide. AirBnB is more popular than all the other JS style guides combined. Regardless, if you want to get rid of it, in the frontend/package.json file, change this part:

  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/vue3-essential",
      "@vue/airbnb"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    },
    "rules": {}
  },

to this:

  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/vue3-essential"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    },
    "rules": {}
  },

Note that you must remove the trailing comma after the plugin! JSON is more fussy about syntax than JS and doesn't support trailing commas.