From cbed467589d74022c4a1b49167d237d85663ab96 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Mon, 6 Oct 2025 14:29:43 +0300 Subject: Add the front-end component --- front-end/eslint.config.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 front-end/eslint.config.js (limited to 'front-end/eslint.config.js') diff --git a/front-end/eslint.config.js b/front-end/eslint.config.js new file mode 100644 index 0000000..cee1e2c --- /dev/null +++ b/front-end/eslint.config.js @@ -0,0 +1,29 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{js,jsx}'], + extends: [ + js.configs.recommended, + reactHooks.configs['recommended-latest'], + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + parserOptions: { + ecmaVersion: 'latest', + ecmaFeatures: { jsx: true }, + sourceType: 'module', + }, + }, + rules: { + 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], + }, + }, +]) -- cgit v1.2.3-70-g09d2