diff options
| author | Your Name <you@example.com> | 2026-03-21 01:41:17 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-03-21 01:41:17 +0100 |
| commit | 768b537946da0abd89949648b803d625542c8a7d (patch) | |
| tree | 6fbce39026bf008d3c05fc58cfd0b97cc84ab7e4 /eslint.config.js | |
| parent | 09e546c4a7e1bf69784be5e8fe1200a7d5a8c955 (diff) | |
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 |
