Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ESLint and PrettierJS #2726

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move configuration to subfolder
  • Loading branch information
4yman-0 committed Dec 14, 2024
commit 674231d22e2f9c7fceed55b5a4141ee295316638
25 changes: 13 additions & 12 deletions build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -163,4 +164,4 @@ def firefox():
elif arg == '-chromium-beta':
chromium('beta')
elif arg == '-firefox':
firefox()
firefox()
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions jest.config.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
Loading