pokemon-showdown/dev-tools/eslint/config-data.js
Konrad Borowski 156e193bed Only enable certain ES6 features during ESLint test
Currently, only those features are allowed: let/const, classes, and
octal literals. More can be added when needed, as long main Showdown
server has a supporting Node.js's version.

This also accidentally fixes a bug which caused data files to not
be checked for `let`/`const` keyword existence, which would cause
a problem in a web browser.
2015-12-10 23:07:32 +01:00

20 lines
626 B
JavaScript

'use strict';
module.exports = {
"extends": "./config-es6.js",
"rules": {
"comma-dangle": [2, "never"],
"comma-spacing": [2, {"before": false, "after": false}],
"no-restricted-syntax": [2,
"ReturnStatement", "LabeledStatement", "BreakStatement", "ContinueStatement",
"IfStatement", "SwitchStatement",
"WhileStatement", "DoWhileStatement", "ForStatement", "ForInStatement",
"FunctionDeclaration", "VariableDeclaration",
"FunctionExpression",
"UpdateExpression",
"BinaryExpression", "LogicalExpression",
"ConditionalExpression", "CallExpression", "NewExpression", "SequenceExpression"
]
}
};