From e507b9e56bdabca501dfb68f194afd9eb7d7c2f7 Mon Sep 17 00:00:00 2001 From: Ludovico Fischer Date: Tue, 26 Mar 2024 17:31:25 +0100 Subject: [PATCH] chore: commit an ESLint configuration to the repository --- eslint.config.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..5e4017b --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,18 @@ +const js = require('@eslint/js'); +const eslintConfigPrettier = require('eslint-config-prettier'); + +module.exports = [ + { + ignores: ['src/parser.js'], + }, + js.configs.recommended, + eslintConfigPrettier, + { + languageOptions: { + sourceType: 'commonjs', + }, + rules: { + curly: 'error', + }, + }, +];