1234567891011121314151617181920212223242526272829303132 |
- {
- // ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
- // ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
- // o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
- // A set of basic conventions designed to complement the .jshintrc file.
- // For the master copy of this file, see the `.eslintrc` template file in
- // the `sails-generate` package (https://www.npmjs.com/package/sails-generate.)
- "env": {
- "node": true,
- "mocha": true
- },
- "rules": {
- "callback-return": [2, ["callback", "cb", "next", "done", "proceed"]],
- "camelcase": [2, {"properties": "always"}],
- "comma-style": [2, "last"],
- "curly": [2],
- "eqeqeq": [1, "smart"],
- "eol-last": [2],
- "handle-callback-err": [2],
- "indent": [2, 2, {"SwitchCase": 1}],
- "linebreak-style": [2, "unix"],
- "no-mixed-spaces-and-tabs": [2, "smart-tabs"],
- "no-return-assign": [2, "always"],
- "no-sequences": [2],
- "no-trailing-spaces": [2],
- "no-undef": [2],
- "no-unexpected-multiline": [1],
- "no-unused-vars": [2],
- "one-var": [2, "never"],
- "semi": [1, "always"]
- }
- }
|