From 658e8b7099cc21565157783060aae1b70baa74c0 Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Mon, 5 Feb 2024 16:09:51 -0500 Subject: [PATCH] Clean up config files --- .editorconfig | 3 +++ .eslintrc | 15 --------------- .eslintrc.yml | 10 ++++++++++ package.json | 3 ++- tsconfig.json | 2 +- 5 files changed, 16 insertions(+), 17 deletions(-) delete mode 100644 .eslintrc create mode 100644 .eslintrc.yml diff --git a/.editorconfig b/.editorconfig index 7417ac9..a18b390 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,7 @@ +root = true + [*] +charset = utf-8 indent_style = space indent_size = 2 insert_final_newline = true diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 38f0380..0000000 --- a/.eslintrc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": ["airbnb-base", "plugin:prettier/recommended"], - "env": { - "es2022": true, - "node": true - }, - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "rules": { - "no-console": ["off"], - "import/prefer-default-export": "off", - } -} diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 0000000..5370206 --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,10 @@ +extends: [airbnb-base, plugin:prettier/recommended] +env: + es2023: true + node: true +parserOptions: + ecmaVersion: 2023 + sourceType: module +rules: + no-console: off + import/prefer-default-export: off diff --git a/package.json b/package.json index 796085e..4f48fb7 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,9 @@ "name": "the-count", "version": "1.0.0", "license": "AGPL-3.0", + "private": true, "engines": { - "node": ">= 20.0.0" + "node": "20.9.0" }, "type": "module", "repository": { diff --git a/tsconfig.json b/tsconfig.json index ad8fd1d..2911cac 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es2022", + "target": "es2023", "allowJs": true, "checkJs": true, "noEmit": true