{ "parser": "babel-eslint", "env": { "browser": true, "node": true, "jquery": true }, "plugins": [ "react" ], "globals": { "__DEV__": true, "__PROD__": true, "__COMPONENT_DEVTOOLS__": false, "__WHY_DID_YOU_UPDATE__": false }, "root": true, "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "ecmaFeatures": { "jsx": true, "arrowFunctions": true, "destructuring": true, "classes": true, "defaultParams": true, "blockBindings": true, "modules": true, "objectLiteralComputedProperties": true, "objectLiteralShorthandMethods": true, "objectLiteralShorthandProperties": true, "restParams": true, "spread": true, "forOf": true, "generators": true, "templateStrings": true, "superInFunctions": true, "experimentalObjectRestSpread": true } }, "extends": "netease", "rules": { "no-console": "off", "import/no-extraneous-dependencies": "off", "no-magic-numbers": "off", "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], //区分js jsx "no-debugger": "off", // debugger "import/no-webpack-loader-syntax": "off", // Do not use import syntax to configure webpack loaders 懒加载 "import/no-unresolved": "off", // 别名 "import/no-dynamic-require": "off", // 动态加载 "camelcase": "off", // 下划线限制 "no-underscore-dangle": "off" } }