Add ESLint config and Node.js test suite (198/198 passing)
This commit is contained in:
parent
dc0705d235
commit
b8f6889cb4
5 changed files with 1538 additions and 2 deletions
23
eslint.config.js
Normal file
23
eslint.config.js
Normal 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',
|
||||
},
|
||||
},
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue