12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- {
- "parser": "babel-eslint",
- "plugins": ["babel"],
- "env": {
- "node": true,
- "es6": true
- },
- "ecmaFeatures": {
- "arrowFunctions": true,
- "binaryLiterals": true,
- "blockBindings": true,
- "classes": true,
- "defaultParams": true,
- "destructuring": true,
- "forOf": true,
- "generators": true,
- "modules": true,
- "objectLiteralComputedProperties": true,
- "objectLiteralDuplicateProperties": true,
- "objectLiteralShorthandMethods": true,
- "objectLiteralShorthandProperties": true,
- "octalLiterals": true,
- "regexUFlag": true,
- "regexYFlag": true,
- "restParams": true,
- "spread": true,
- "superInFunctions": true,
- "templateStrings": true,
- "unicodeCodePointEscapes": true,
- "globalReturn": true,
- "experimentalObjectRestSpread": true
- },
- "rules": {
- ///
- /// Code style
- ///
- "indent": [2, 4, {"SwitchCase": 1}], // switch with indent
- "no-trailing-spaces": [2, { "skipBlankLines": true }],
- "eol-last": [2],
- "quotes": [2, "single"],
- "key-spacing": [2, {
- "beforeColon": false,
- "afterColon": true
- }],
- "linebreak-style": [2, "unix"],
- "no-new-object": [2],
- "no-unneeded-ternary": [2],
- "semi": [2, "always"],
- "semi-spacing": [2, {"before": false, "after": true}],
- "keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}],
- "space-before-function-paren": [2, "never"],
- "no-multiple-empty-lines": 0,
- "spaced-comment": [1, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
- "padded-blocks": [1, "never"],
- // enforces a space inside of curly braces
- "object-curly-spacing": [2, "always"],
- ///
- /// Best Practices
- ///
- "eqeqeq": [2, "smart"],
- // allow/warn the use of nested ternary expressions
- "no-nested-ternary": 1,
- ///
- /// eslint-plugin-babel
- ///
- "babel/generator-star-spacing": [1, {"before": false, "after": true}],
- "babel/new-cap": 1,
- "babel/object-curly-spacing": 0,
- "babel/object-shorthand": 1,
- // wont enforces the consistent use of parentheses in arrow functions
- "babel/arrow-parens": 0,
- "babel/no-await-in-loop": 1
- }
- }
|