Changeset View
Changeset View
Standalone View
Standalone View
build/coala/lint-config/eslintrc.json
{ | { | ||||
"parserOptions": { | "parserOptions": { | ||||
"ecmaVersion": 6 | "ecmaVersion": 2020 | ||||
}, | }, | ||||
"plugins": [ | |||||
"brace-rules" | |||||
], | |||||
"rules": { | "rules": { | ||||
"no-caller": 1, | "no-caller": 1, | ||||
"no-cond-assign": 1, | "no-cond-assign": 1, | ||||
"no-constant-condition": ["error", { "checkLoops": false }], | "no-constant-condition": ["error", { "checkLoops": false }], | ||||
"no-dupe-args": 1, | "no-dupe-args": 1, | ||||
"no-dupe-keys": 1, | "no-dupe-keys": 1, | ||||
"no-duplicate-case": 1, | "no-duplicate-case": 1, | ||||
"no-empty": 1, | "no-empty": 1, | ||||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | "rules": { | ||||
"space-unary-ops": 1, | "space-unary-ops": 1, | ||||
"spaced-comment": ["warn", "always"], | "spaced-comment": ["warn", "always"], | ||||
"no-class-assign": 1, | "no-class-assign": 1, | ||||
"no-const-assign": 1, | "no-const-assign": 1, | ||||
"no-dupe-class-members" : 1, | "no-dupe-class-members" : 1, | ||||
"prefer-const": 0, | "prefer-const": 0, | ||||
"brace-rules/brace-on-same-line": ["warn", { | "brace-style": ["warn", "allman", { "allowSingleLine": true }] | ||||
"FunctionDeclaration": "never", | |||||
"FunctionExpression": "ignore", | |||||
"ArrowFunctionExpression": "always", | |||||
wraitii: Answering my own question: This tolerated `() => {` whereas ESLint in allman doesn't. | |||||
"IfStatement": "never", | |||||
"TryStatement": "ignore", | |||||
"CatchClause": "ignore", | |||||
"DoWhileStatement": "never", | |||||
"WhileStatement": "never", | |||||
"ForStatement": "never", | |||||
"ForInStatement": "never", | |||||
"ForOfStatement": "never", | |||||
"SwitchStatement": "never" | |||||
}, { "allowSingleLine": true }] | |||||
} | } | ||||
} | } |
Wildfire Games · Phabricator
Answering my own question: This tolerated () => { whereas ESLint in allman doesn't.