2017-01-10 19:22:40 +01:00
|
|
|
{
|
2017-02-01 18:25:59 +01:00
|
|
|
/** Enable ES6 features */
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 6,
|
|
|
|
},
|
|
|
|
"rules": {
|
2017-01-10 19:22:40 +01:00
|
|
|
|
2017-02-01 18:25:59 +01:00
|
|
|
"arrow-spacing": [2, {
|
|
|
|
"before": true,
|
|
|
|
"after": true
|
|
|
|
}],
|
2017-01-10 19:22:40 +01:00
|
|
|
|
2017-02-01 18:25:59 +01:00
|
|
|
/** Variables */
|
|
|
|
"no-catch-shadow": 2,
|
|
|
|
"no-delete-var": 2,
|
|
|
|
"no-label-var": 2,
|
|
|
|
"no-shadow-restricted-names": 2,
|
|
|
|
"no-shadow": 2,
|
|
|
|
"no-undef-init": 2,
|
|
|
|
"no-undef": 2,
|
|
|
|
"no-unused-vars": 1,
|
2017-01-10 19:22:40 +01:00
|
|
|
|
2017-02-01 18:25:59 +01:00
|
|
|
/** Style */
|
|
|
|
"array-bracket-spacing": [2, "never", {
|
|
|
|
"singleValue": true,
|
|
|
|
"objectsInArrays": true,
|
|
|
|
"arraysInArrays": true
|
|
|
|
}],
|
|
|
|
"quotes": [2, "single", "avoid-escape"],
|
|
|
|
"eqeqeq": 0,
|
|
|
|
"brace-style": [2, "1tbs"],
|
|
|
|
"comma-spacing": [2, {
|
|
|
|
"before": false,
|
|
|
|
"after": true
|
|
|
|
}],
|
|
|
|
"comma-style": [2, "last"],
|
|
|
|
"eol-last": 0,
|
|
|
|
"no-nested-ternary": 1,
|
|
|
|
"no-trailing-spaces": 2,
|
|
|
|
"no-mixed-spaces-and-tabs": 2,
|
|
|
|
"padded-blocks": [2, "always"],
|
2017-02-05 15:50:48 +01:00
|
|
|
"space-before-blocks": 1,
|
|
|
|
"space-before-function-paren": [1, {
|
2017-02-01 18:25:59 +01:00
|
|
|
"anonymous": "always",
|
|
|
|
"named": "never"
|
|
|
|
}],
|
|
|
|
"spaced-comment": [2, "always", {
|
|
|
|
"exceptions": ["-", "+"],
|
|
|
|
"markers": ["=", "!"]
|
|
|
|
}],
|
|
|
|
"semi": [2, "always"],
|
|
|
|
"indent": [2, 4, {
|
|
|
|
"SwitchCase": 1
|
|
|
|
}],
|
|
|
|
"camelcase": [2, {
|
|
|
|
"properties": "always"
|
|
|
|
}],
|
|
|
|
"newline-after-var": [1, "always"],
|
|
|
|
|
|
|
|
},
|
|
|
|
"globals":{
|
|
|
|
"document": true,
|
|
|
|
"module": true,
|
|
|
|
"require": true,
|
|
|
|
"window": true,
|
2017-02-05 15:50:48 +01:00
|
|
|
"console" : true,
|
2017-02-01 18:25:59 +01:00
|
|
|
"codex": true,
|
|
|
|
"VERSION" : true,
|
|
|
|
"Promise" : true,
|
|
|
|
"MutationObserver": true,
|
|
|
|
"FormData": true,
|
|
|
|
"XMLHttpRequest": true,
|
2017-02-13 18:54:18 +01:00
|
|
|
"ActiveXObject": true,
|
|
|
|
"RegExp": true
|
2017-02-01 18:25:59 +01:00
|
|
|
|
|
|
|
}
|
2017-01-10 19:22:40 +01:00
|
|
|
}
|