module.exports = { env: { browser: true, commonjs: true, es6: true, node: true }, root: true, parserOptions: { parser: 'babel-eslint', ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features sourceType: 'module' // Allows for the use of imports }, // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style extends: [ // Base ESLint recommended rules // 'eslint:recommended', // Uncomment any of the lines below to choose desired strictness, // but leave only one uncommented! // See https://eslint.vuejs.org/rules/#available-rules 'plugin:vue/essential', // Priority A: Essential (Error Prevention) // 'plugin:vue/strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) // 'plugin:vue/recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead) 'standard' ], globals: { Cesium: true, mars3d: true, DC: true }, // required to lint *.vue files plugins: [ 'vue', 'html' ], // add your custom rules here rules: { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, // 允许短路表达式 'no-unused-expressions': 0, 'no-mixed-operators': 0 } }