blob: b0e59c44bcf553913a552ea789c561dc94ac850f [file]
{
// ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
// ║╣ ╚═╗║ ║║║║ ├┬┘│
// o╚═╝╚═╝╩═╝╩╝╚╝ ┴└─└─┘
// A set of basic code conventions designed to encourage quality and consistency
// across your Sails app's code base. These rules are checked against
// automatically any time you run `npm test`.
//
// > Note: If you're using mocha, you'll want to add an extra override file to your
// > `test/` folder so that eslint will tolerate mocha-specific globals like `before`
// > and `describe`.
"env": {
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2018
},
"globals": {
"Promise": true,
"sails": true
},
"extends": ["standard"],
"overrides": [
{
"files": ["test/**/*.js"],
"rules": {
"no-undef": ["off"]
}
}
],
"rules": {
"quotes": ["error", "single", { "avoidEscape": true }],
"comma-dangle": ["error", "never"],
"no-trailing-spaces": ["error"]
}
}