.eslintrc 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. {
  2. // ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
  3. // ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
  4. // o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
  5. // A set of basic conventions designed to complement the .jshintrc file.
  6. // For the master copy of this file, see the `.eslintrc` template file in
  7. // the `sails-generate` package (https://www.npmjs.com/package/sails-generate.)
  8. "env": {
  9. "node": true,
  10. "mocha": true
  11. },
  12. "rules": {
  13. "callback-return": [2, ["callback", "cb", "next", "done", "proceed"]],
  14. "camelcase": [2, {"properties": "always"}],
  15. "comma-style": [2, "last"],
  16. "curly": [2],
  17. "eqeqeq": [1, "smart"],
  18. "eol-last": [2],
  19. "handle-callback-err": [2],
  20. "indent": [2, 2, {"SwitchCase": 1}],
  21. "linebreak-style": [2, "unix"],
  22. "no-mixed-spaces-and-tabs": [2, "smart-tabs"],
  23. "no-return-assign": [2, "always"],
  24. "no-sequences": [2],
  25. "no-trailing-spaces": [2],
  26. "no-undef": [2],
  27. "no-unexpected-multiline": [1],
  28. "no-unused-vars": [2],
  29. "one-var": [2, "never"],
  30. "semi": [1, "always"]
  31. }
  32. }