|
| 1 | +/* global module */ |
| 2 | +module.exports = { |
| 3 | + "env": { |
| 4 | + "browser": true, |
| 5 | + "es6": true, |
| 6 | + }, |
| 7 | + "globals": { |
| 8 | + "chroma": true, |
| 9 | + "importScripts": true, |
| 10 | + "SharedArrayBuffer": true, |
| 11 | + "twgl": true, |
| 12 | + }, |
| 13 | + "parserOptions": { |
| 14 | + "sourceType": "module", |
| 15 | + "ecmaVersion": 2019, |
| 16 | + }, |
| 17 | + "plugins": [ |
| 18 | + "eslint-plugin-html", |
| 19 | + "eslint-plugin-optional-comma-spacing", |
| 20 | + "eslint-plugin-one-variable-per-var", |
| 21 | + "eslint-plugin-require-trailing-comma", |
| 22 | + ], |
| 23 | + "extends": "eslint:recommended", |
| 24 | + "rules": { |
| 25 | + "no-alert": 2, |
| 26 | + "no-array-constructor": 2, |
| 27 | + "no-caller": 2, |
| 28 | + "no-catch-shadow": 2, |
| 29 | + "no-const-assign": 2, |
| 30 | + "no-eval": 2, |
| 31 | + "no-extend-native": 2, |
| 32 | + "no-extra-bind": 2, |
| 33 | + "no-implied-eval": 2, |
| 34 | + "no-iterator": 2, |
| 35 | + "no-label-var": 2, |
| 36 | + "no-labels": 2, |
| 37 | + "no-lone-blocks": 2, |
| 38 | + "no-loop-func": 2, |
| 39 | + "no-multi-str": 2, |
| 40 | + "no-native-reassign": 2, |
| 41 | + "no-new": 2, |
| 42 | + "no-new-func": 2, |
| 43 | + "no-new-object": 2, |
| 44 | + "no-new-wrappers": 2, |
| 45 | + "no-octal-escape": 2, |
| 46 | + "no-process-exit": 2, |
| 47 | + "no-proto": 2, |
| 48 | + "no-return-assign": 2, |
| 49 | + "no-script-url": 2, |
| 50 | + "no-sequences": 2, |
| 51 | + "no-shadow-restricted-names": 2, |
| 52 | + "no-spaced-func": 2, |
| 53 | + "no-trailing-spaces": 2, |
| 54 | + "no-undef-init": 2, |
| 55 | + "no-underscore-dangle": 2, |
| 56 | + "no-unused-expressions": 2, |
| 57 | + "no-use-before-define": 0, |
| 58 | + "no-with": 2, |
| 59 | + "consistent-return": 2, |
| 60 | + "curly": [2, "all"], |
| 61 | + "no-extra-parens": [2, "functions"], |
| 62 | + "eqeqeq": 2, |
| 63 | + "new-cap": 2, |
| 64 | + "new-parens": 2, |
| 65 | + "semi-spacing": [2, {"before": false, "after": true}], |
| 66 | + "space-infix-ops": 2, |
| 67 | + "space-unary-ops": [2, { "words": true, "nonwords": false }], |
| 68 | + "strict": [2, "function"], |
| 69 | + "yoda": [2, "never"], |
| 70 | + "prefer-const": 2, |
| 71 | + "no-var": 2, |
| 72 | + |
| 73 | + "brace-style": [2, "1tbs", { "allowSingleLine": false }], |
| 74 | + "camelcase": [0], |
| 75 | + "comma-spacing": 0, |
| 76 | + "comma-dangle": 0, |
| 77 | + "comma-style": [2, "last"], |
| 78 | + "dot-notation": 0, |
| 79 | + "eol-last": [0], |
| 80 | + "global-strict": [0], |
| 81 | + "key-spacing": [0], |
| 82 | + "no-comma-dangle": [0], |
| 83 | + "no-irregular-whitespace": 2, |
| 84 | + "no-multi-spaces": [0], |
| 85 | + "no-obj-calls": 2, |
| 86 | + "no-shadow": [0], |
| 87 | + "no-undef": 2, |
| 88 | + "no-unreachable": 2, |
| 89 | + "one-variable-per-var/one-variable-per-var": [2], |
| 90 | + "optional-comma-spacing/optional-comma-spacing": [2, {"after": true}], |
| 91 | + "quotes": [0, "single"], |
| 92 | + "require-trailing-comma/require-trailing-comma": [2], |
| 93 | + "semi": [2, "always"], |
| 94 | + "space-before-function-paren": [2, "never"], |
| 95 | + "keyword-spacing": [1, {"before": true, "after": true, "overrides": {}} ], |
| 96 | + }, |
| 97 | +}; |
0 commit comments