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