From 674231d22e2f9c7fceed55b5a4141ee295316638 Mon Sep 17 00:00:00 2001 From: 4yman <170770027+4yman-0@users.noreply.github.com> Date: Sat, 14 Dec 2024 10:27:00 +0100 Subject: [PATCH] Move configuration to subfolder --- build/build.py | 25 ++++++++++--------- eslint.config.js => config/eslint.config.js | 0 .../prettier.config.js | 0 jest.config.json | 8 ------ package.json | 3 ++- 5 files changed, 15 insertions(+), 21 deletions(-) rename eslint.config.js => config/eslint.config.js (100%) rename prettier.config.js => config/prettier.config.js (100%) delete mode 100644 jest.config.json diff --git a/build/build.py b/build/build.py index d69a79cce..00cb8a4af 100644 --- a/build/build.py +++ b/build/build.py @@ -41,12 +41,12 @@ def chromium(browser): item != '.git' and item != '.github' and item != 'cached' and - item != 'previews' and - item != 'py' and - item != 'wiki' and + item != 'node_modules' and + item != 'build' and + item != 'config' and + item != 'tests' and item != 'LICENSE' and - item != 'README.md' and - item != 'SECURITY.md' and + item != 'CONTRIBUTING.md' and item.find('.zip') == -1 ): s = os.path.join('../', item) @@ -94,19 +94,20 @@ def firefox(): os.chdir(temporary_path) for item in os.listdir('../'): + if ( item != '.git' and item != '.github' and item != 'cached' and - item != 'previews' and - item != 'py' and - item != 'wiki' and + item != 'node_modules' and + item != 'build' and + item != 'config' and + item != 'tests' and item != 'LICENSE' and - item != 'README.md' and - item != 'SECURITY.md' and + item != 'CONTRIBUTING.md' and item.find('.zip') == -1 ): - s = os.path.join('../', item) + s = os.path.join('../', item) d = os.path.join(temporary_path, item) if os.path.isdir(s): shutil.copytree(s, d, True, None) @@ -163,4 +164,4 @@ def firefox(): elif arg == '-chromium-beta': chromium('beta') elif arg == '-firefox': - firefox() \ No newline at end of file + firefox() diff --git a/eslint.config.js b/config/eslint.config.js similarity index 100% rename from eslint.config.js rename to config/eslint.config.js diff --git a/prettier.config.js b/config/prettier.config.js similarity index 100% rename from prettier.config.js rename to config/prettier.config.js diff --git a/jest.config.json b/jest.config.json deleted file mode 100644 index 5bd21322f..000000000 --- a/jest.config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "testPathIgnorePatterns": [ - "/node_modules/" - ], - "testMatch": [ - "**/tests/**/*.js" - ] -} \ No newline at end of file diff --git a/package.json b/package.json index c18481415..88410d3eb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "type": "module", "scripts": { "test": "jest tests", - "lint": "eslint --ignore-path tests/.gitignore" + "lint": "eslint src/**/*.js --no-eslintrc -c config/eslint.config.js", + "prettier": "prettier src/**/*.{js,css} --config config/prettier.config.js" }, "keywords": [], "author": "",