Add ESLint config and Node.js test suite (198/198 passing)

This commit is contained in:
Dieter Schlüter 2026-04-06 16:57:32 +02:00
commit b8f6889cb4
5 changed files with 1538 additions and 2 deletions

23
eslint.config.js Normal file
View file

@ -0,0 +1,23 @@
import js from '@eslint/js';
import globals from 'globals';
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
ecmaVersion: 2022,
sourceType: 'module',
},
rules: {
'no-var': 'error',
'no-unused-vars': ['warn', { args: 'none' }],
'semi': ['error', 'always'],
'no-console': 'off',
'no-constant-condition': 'off',
},
},
];