Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 1 | { |
| 2 | "ecmaFeatures": { |
| 3 | "blockBindings": true, |
| 4 | "forOf": true, |
| 5 | "destructuring": true, |
| 6 | "arrowFunctions": true, |
| 7 | "templateStrings": true |
| 8 | }, |
| 9 | "env": { |
| 10 | "browser": true, |
| 11 | "node": true, |
| 12 | "es6": true |
| 13 | }, |
| 14 | "plugins": [ |
| 15 | //"angular" |
| 16 | ], |
| 17 | "rules": { |
| 18 | "quotes": [2, "single"], |
Matteo Scandolo | 54bc5f7 | 2016-05-18 14:06:45 -0700 | [diff] [blame^] | 19 | "camelcase": [1, {"properties": "always"}], |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 20 | "no-underscore-dangle": 1, |
| 21 | "eqeqeq": [2, "smart"], |
| 22 | "no-alert": 1, |
| 23 | "key-spacing": [1, { "beforeColon": false, "afterColon": true }], |
| 24 | "indent": [2, 2], |
| 25 | "no-irregular-whitespace": 1, |
| 26 | "eol-last": 0, |
| 27 | "max-nested-callbacks": [2, 4], |
| 28 | "comma-spacing": [1, {"before": false, "after": true}], |
| 29 | "no-trailing-spaces": [1, { skipBlankLines: true }], |
| 30 | "no-unused-vars": [1, {"vars": "all", "args": "after-used"}], |
| 31 | "new-cap": 0, |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 32 | |
| 33 | //"angular/ng_module_name": [2, '/^xos\.*[a-z]*$/'], |
| 34 | //"angular/ng_controller_name": [2, '/^[a-z].*Ctrl$/'], |
| 35 | //"angular/ng_service_name": [2, '/^[A-Z].*Service$/'], |
| 36 | //"angular/ng_directive_name": [2, '/^[a-z]+[[A-Z].*]*$/'], |
| 37 | //"angular/ng_di": [0, "function or array"] |
| 38 | }, |
| 39 | "globals" :{ |
Matteo Scandolo | 54bc5f7 | 2016-05-18 14:06:45 -0700 | [diff] [blame^] | 40 | "angular": true |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 41 | } |
| 42 | } |