{ // ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐ // ║╣ ╚═╗║ ║║║║ ║ ├┬┘│ // 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`. // // > An additional eslintrc override file is included in the `assets/` folder // > right out of the box. This is specifically to allow for variations in acceptable // > global variables between front-end JavaScript code designed to run in the browser // > vs. backend code designed to run in a Node.js/Sails process. // // > 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`. // Designed for ESLint v4. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // For more information about any of the rules below, check out the relevant // reference page on eslint.org. For example, to get details on "no-sequences", // you would visit `http://eslint.org/docs/rules/no-sequences`. If you're unsure // or could use some advice, come by https://sailsjs.com/support. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "env": { "node": true }, "parserOptions": { "ecmaVersion": 2018, "ecmaFeatures": { "experimentalObjectRestSpread": true }, "project": "./tsconfig.json" }, "globals": { // If "no-undef" is enabled below, be sure to list all global variables that // are used in this app's backend code (including the globalIds of models): // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Promise": true, "sails": true, "_": true // …and any others (e.g. `"Organization": true`) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }, "extends": ["airbnb-typescript/base"], "rules": { "no-undef": "off", "no-restricted-syntax": ["off"], "func-names": ["off"], "object-shorthand": ["off"], "radix": ["off"], "no-underscore-dangle": ["off"], "camelcase": "off", "consistent-return": "off", "no-unused-vars": "warn", "no-await-in-loop": "off", "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }], // "prettier/prettier": ["error", {"singleQuote": true, "parser": "typescript"}], "@typescript-eslint/comma-dangle": ["off"], "import/prefer-default-export": "off", "import/extensions": "off", "prefer-destructuring": "off", "no-param-reassign": "off", "import/no-cycle": "off" } }