2017-03-18 15:00:51 +08:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
},
|
|
|
|
"extends": ["google"],
|
2019-01-19 23:32:40 +08:00
|
|
|
"overrides": [{
|
|
|
|
// eslint-plugin-html handles eol-last slightly different - it applies to
|
|
|
|
// each set of script tags, so we turn it off here.
|
|
|
|
"files": "**/*.*php",
|
|
|
|
"rules": {
|
|
|
|
"eol-last": "off",
|
|
|
|
"indent": "off",
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
"plugins": [
|
|
|
|
"html",
|
|
|
|
"php-markup",
|
|
|
|
],
|
2017-03-18 15:00:51 +08:00
|
|
|
"rules": {
|
|
|
|
"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
|
|
|
"max-len": "off",
|
|
|
|
"new-cap": ["error", {
|
|
|
|
capIsNewExceptions: ["Error", "Warning", "Debug", "Polygon_calcArea", "Play", "Stop"],
|
|
|
|
newIsCapExceptionPattern: "^Asset\.."
|
|
|
|
}],
|
|
|
|
"no-array-constructor": "off",
|
2019-01-19 23:32:40 +08:00
|
|
|
"no-unused-vars": ["error", {
|
|
|
|
"vars": "local",
|
|
|
|
"args": "none",
|
|
|
|
"ignoreRestSiblings": false
|
|
|
|
}],
|
2017-03-18 15:00:51 +08:00
|
|
|
"no-var": "off",
|
|
|
|
"prefer-rest-params": "off",
|
|
|
|
"quotes": "off",
|
|
|
|
"require-jsdoc": "off",
|
|
|
|
"spaced-comment": "off",
|
|
|
|
},
|
2019-01-19 23:32:40 +08:00
|
|
|
"settings": {
|
|
|
|
"php/php-extensions": [".php"],
|
|
|
|
"php/markup-replacement": {"php": "", "=": "0"},
|
|
|
|
"php/keep-eol": false,
|
|
|
|
"php/remove-whitespace": false,
|
|
|
|
"php/remove-empty-line": false,
|
|
|
|
"php/remove-php-lint": false
|
|
|
|
},
|
2017-03-18 15:00:51 +08:00
|
|
|
};
|