Can we "separate config files" like vue cli 3



  • In quasar starter kit, can we use configs inside package.json ? like in vue cli 3 ?
    .babelrc , .eslint, postcss, stylelintrc …



  • These are features of babel/eslint/etc., not quasar. We can always put some configs in package.json like this:

      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "8.11"
              }
            }
          ]
        ]
      },
      "prettier": {
        "printWidth": 120,
        "trailingComma": "all",
        "singleQuote": true,
        "semi": false
      },
      "eslintIgnore": [],
      "eslintConfig": {
        "root": true,
        "parserOptions": {
          "parser": "babel-eslint"
        },
        "env": {
          "es6": true,
          "commonjs": true,
          "node": true,
          "browser": false
        },
    }
    ...
    


  • Tks a lot man!!!