|
| 1 | +"use strict"; |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + "env": { |
| 5 | + "browser": true, |
| 6 | + "commonjs": true, |
| 7 | + "es6": true, |
| 8 | + "node": true, |
| 9 | + "mocha": true |
| 10 | + }, |
| 11 | + "extends": ["ash-nazg/sauron-node", "plugin:node/recommended-script"], |
| 12 | + "parserOptions": { |
| 13 | + "ecmaVersion": 2018 |
| 14 | + }, |
| 15 | + "settings": { |
| 16 | + "polyfills": [ |
| 17 | + "Error", |
| 18 | + "Object.defineProperties", |
| 19 | + "Object.defineProperty" |
| 20 | + ] |
| 21 | + }, |
| 22 | + "overrides": [ |
| 23 | + { |
| 24 | + files: ["**/*.md"], |
| 25 | + rules: { |
| 26 | + "eol-last": "off", |
| 27 | + "no-console": "off", |
| 28 | + "no-undef": "off", |
| 29 | + "padded-blocks": "off", |
| 30 | + "import/unambiguous": "off", |
| 31 | + "import/no-unresolved": "off", |
| 32 | + "node/no-missing-import": "off", |
| 33 | + "no-unused-vars": ["warn"], |
| 34 | + "no-unused-vars": ["error", { |
| 35 | + "varsIgnorePattern": "Point2D" |
| 36 | + }], |
| 37 | + "node/no-missing-require": ["error", { |
| 38 | + "allowModules": ["kld-intersections"] |
| 39 | + }] |
| 40 | + } |
| 41 | + } |
| 42 | + ], |
| 43 | + "rules": { |
| 44 | + "indent": [ |
| 45 | + "error", |
| 46 | + 4, |
| 47 | + {"SwitchCase": 1} |
| 48 | + ], |
| 49 | + "quotes": [ |
| 50 | + "error", |
| 51 | + "double" |
| 52 | + ], |
| 53 | + "space-before-function-paren": [ |
| 54 | + "error", |
| 55 | + "never" |
| 56 | + ], |
| 57 | + "brace-style": [ |
| 58 | + "error", |
| 59 | + "stroustrup" |
| 60 | + ], |
| 61 | + "arrow-parens": [ |
| 62 | + "error", |
| 63 | + "as-needed" |
| 64 | + ], |
| 65 | + "no-console": "off", |
| 66 | + "no-multiple-empty-lines": "off", |
| 67 | + "max-len": "off", |
| 68 | + "node/exports-style": "off", |
| 69 | + "unicorn/no-zero-fractions": "off", |
| 70 | + "require-unicode-regexp": "off", |
| 71 | + "yoda": "off", |
| 72 | + "valid-jsdoc": 0, |
| 73 | + "import/unambiguous": 0, |
| 74 | + "global-require": 0, |
| 75 | + "import/no-commonjs": 0, |
| 76 | + "consistent-this": "off", |
| 77 | + "unicorn/prefer-type-error": "off", |
| 78 | + "node/shebang": "off" |
| 79 | + } |
| 80 | +}; |
0 commit comments