diff options
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..9415508 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,24 @@ +const js = require('@eslint/js'); +const globals = require('globals'); + +module.exports = [ + { + ignores: ['node_modules/**'], + }, + js.configs.recommended, + { + files: ['**/*.js'], + languageOptions: { + ecmaVersion: 'latest', + sourceType: 'commonjs', + globals: { + ...globals.node, + }, + }, + rules: { + 'no-console': 'off', + 'no-empty': ['error', { allowEmptyCatch: true }], + 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }], + }, + }, +];
\ No newline at end of file |
