From ba10c38fd45f5193a7d1368b0019b144279d34ce Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Mon, 13 Oct 2025 16:23:53 +0530 Subject: [PATCH] feat(eslint): Create file & add env variable pointing to it --- common/.config/templates/.eslintrc.json | 15 +++++++++++++++ common/.profile | 1 + 2 files changed, 16 insertions(+) create mode 100644 common/.config/templates/.eslintrc.json diff --git a/common/.config/templates/.eslintrc.json b/common/.config/templates/.eslintrc.json new file mode 100644 index 0000000..11e2acd --- /dev/null +++ b/common/.config/templates/.eslintrc.json @@ -0,0 +1,15 @@ +{ + "extends": ["eslint:recommended", "@typescript-eslint/recommended"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module", + "ecmaFeatures": { + "jsx": true + } + }, + "rules": { + "no-unused-vars": "error", + "no-undef": "error" + } +} diff --git a/common/.profile b/common/.profile index 5ccf8a0..7e77423 100644 --- a/common/.profile +++ b/common/.profile @@ -83,6 +83,7 @@ export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker" [ ! -f "${XDG_CONFIG_HOME}/templates/.prettierrc" ] || export PRETTIER_TEMPLATE="${XDG_CONFIG_HOME}/templates/.prettierrc" [ ! -f "${XDG_CONFIG_HOME}/templates/.prettierignore" ] || export PRETTIER_IGNORE_TEMPLATE="${XDG_CONFIG_HOME}/templates/.prettierignore" [ ! -f "${XDG_CONFIG_HOME}/templates/pre-commit" ] || export GIT_PRECOMMIT_TEMPLATE="${XDG_CONFIG_HOME}/templates/pre-commit" +[ ! -f "${XDG_CONFIG_HOME}/templates/.eslintrc.json" ] || export ESLINT_TEMPLATE="${XDG_CONFIG_HOME}/templates/.eslintrc.json" # Python export PYTHON_HISTORY="${XDG_STATE_HOME}/shell/python_history" # will be picked up by Python 3.13+