blob: 6a8ce7970dba8a68f66107fe5f5bc02c016b7f6f [file] [log] [blame]
Matteo Scandoloc7987cd2016-04-12 11:38:40 -07001{
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": [
Matteo Scandolob585d382016-06-15 14:53:33 -070015 "angular"
Matteo Scandoloc7987cd2016-04-12 11:38:40 -070016 ],
17 "rules": {
18 "quotes": [2, "single"],
19 "camelcase": [0, {"properties": "always"}],
Matteo Scandolo4ac9a0b2016-05-23 15:31:25 -070020 "no-underscore-dangle": 0,
Matteo Scandoloc7987cd2016-04-12 11:38:40 -070021 "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,
Matteo Scandoloc7987cd2016-04-12 11:38:40 -070027 "comma-spacing": [1, {"before": false, "after": true}],
28 "no-trailing-spaces": [1, { skipBlankLines: true }],
29 "no-unused-vars": [1, {"vars": "all", "args": "after-used"}],
30 "new-cap": 0,
Matteo Scandolob585d382016-06-15 14:53:33 -070031 "no-multiple-empty-lines": 2,
Matteo Scandoloc7987cd2016-04-12 11:38:40 -070032
Matteo Scandolob585d382016-06-15 14:53:33 -070033 "angular/ng_module_name": [2, '/^xos\.*[a-z]*$/'],
34// "angular/ng_controller_name": [2, '/^[a-z].*Ctrl$/'],
Matteo Scandoloc7987cd2016-04-12 11:38:40 -070035 //"angular/ng_service_name": [2, '/^[A-Z].*Service$/'],
Matteo Scandolob585d382016-06-15 14:53:33 -070036 "angular/ng_directive_name": [2, '/^[xos[[A-Z].*]*$/'],
37 "angular/ng_di": [0, "function or array"],
38 "angular/ng_angularelement": 0,
39 "angular/ng_on_watch": 1
Matteo Scandoloc7987cd2016-04-12 11:38:40 -070040 },
41 "globals" :{
42 "angular": true
43 }
44}