2017-03-18 15:00:51 +08:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
},
|
|
|
|
"extends": ["google"],
|
|
|
|
"rules": {
|
|
|
|
"brace-style": "off",
|
|
|
|
"camelcase": "off",
|
|
|
|
"comma-dangle": "off",
|
2019-01-18 23:00:55 +08:00
|
|
|
"guard-for-in": "off",
|
2017-03-18 15:00:51 +08:00
|
|
|
"key-spacing": "off",
|
|
|
|
"max-len": "off",
|
|
|
|
"new-cap": ["error", {
|
|
|
|
capIsNewExceptions: ["Error", "Warning", "Debug", "Polygon_calcArea", "Play", "Stop"],
|
|
|
|
newIsCapExceptionPattern: "^Asset\.."
|
|
|
|
}],
|
|
|
|
"no-array-constructor": "off",
|
|
|
|
"no-caller": "off",
|
|
|
|
"no-new-object": "off",
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-var": "off",
|
|
|
|
"object-curly-spacing": "off",
|
|
|
|
"prefer-rest-params": "off",
|
|
|
|
"quotes": "off",
|
|
|
|
"require-jsdoc": "off",
|
|
|
|
"spaced-comment": "off",
|
|
|
|
},
|
|
|
|
};
|