| 1 | module.exports = { |
| 2 | "env": { |
| 3 | "browser": true, |
| 4 | "commonjs": true, |
| 5 | "es2021": true |
| 6 | }, |
| 7 | "extends": "eslint:recommended", |
| 8 | "parserOptions": { |
| 9 | "ecmaVersion": 13, |
| 10 | "sourceType": "module" |
| 11 | }, |
| 12 | "rules": { |
| 13 | "comma-dangle": ["error", "never"], |
| 14 | "eqeqeq": ["error", "smart"], |
| 15 | "no-constant-binary-expression": "error", |
| 16 | "no-empty": "off", |
| 17 | "no-prototype-builtins": "off", |
| 18 | "no-redeclare": ["error", { "builtinGlobals": false }], |
| 19 | "no-sequences": ["error"], |
| 20 | "no-trailing-spaces": ["warn", { "ignoreComments": false }], |
| 21 | "no-unused-vars": ["warn", { "vars": "local", "args": "none"}], |
| 22 | "one-var": ["warn", "always"], |
| 23 | "semi": ["error", "always"] |
| 24 | }, |
| 25 | "globals": { |
| 26 | "JXG": "readonly" |
| 27 | } |
| 28 | }; |