// http://eslint.org/docs/user-guide/configuring { "root": true, "parser": "babel-eslint", "parserOptions": { "sourceType": "module" }, "extends": [ "plugin:flowtype/recommended", "plugin:vue-libs/recommended" ], // required to lint *.vue files "plugins": [ // "flowtype-errors", "flowtype", "html" ], "env": { "mocha": true, "browser": true }, "globals": { "__DEV__": false, "__PROD__": false, "__DEBUG__": false, "window": false, "navigator": false, "expect": false, "sinon": false, "Blob": false, "URL": false, "__WEEX__": false }, // check if imports actually resolve "settings": { "import/resolver": { "webpack": { "config": "build/webpack.base.conf.js" } } }, // add your custom rules here "rules": { "comma-dangle": ["error", "always-multiline"], "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }], "no-useless-escape": 0, "flowtype/define-flow-type": 1, "flowtype/use-flow-type": 1, "no-multi-spaces": 0, // "flowtype-errors/show-errors": 2, // don"t require .vue extension when importing // "import/extensions": ["error", "always", { // "js": "never", // "vue": "never" // }], // allow optionalDependencies // "import/no-extraneous-dependencies": ["error", { // "optionalDependencies": ["test/unit/index.js"] // }], // allow debugger during development // "no-debugger": process.env.NODE_ENV === "production" ? 2 : 0 "semi": ["error", "never"], "space-before-function-paren": ["error", { "anonymous": "always", "named": "ignore", "asyncArrow": "ignore" }] } }