{ "root": true, "extends": "airbnb-base", "parser": "@babel/eslint-parser", "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "requireConfigFile": false }, "globals": { "wx": true, "qq": true, "tt": true, "swan": true, "my": true, "App": true, "Page": true, "getApp": true, "Component": true, "WeixinJSBridge": true, "getCurrentPages": true }, "env": { "es6": true, "browser": true, "node": true, "mocha": true }, "rules": { "camelcase": 0, "no-param-reassign": 0, "one-var": 0, "one-var-declaration-per-line": 0, "func-names": 0, "no-continue": 0, "no-void": 0, "no-underscore-dangle": 0, "newline-per-chained-call": 0, "array-callback-return": 0, "no-plusplus": 0, "prefer-const": 0, "no-multi-assign": 0, "linebreak-style": 0, "consistent-return": 0, "prefer-rest-params": 0, "no-bitwise": 0, "prefer-spread": 0, "no-restricted-syntax": [2, "DebuggerStatement", "LabeledStatement", "WithStatement"], "no-restricted-globals": 0, "prefer-destructuring": 0, "comma-dangle": [2, { "arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", "functions": "never" }], "no-prototype-builtins": 0, "no-useless-escape": 0, "class-methods-use-this": "off", "no-use-before-define": ["error", { "functions": false, "classes": true }], "no-console": ["warn", { "allow": ["warn", "error"] }] } }