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
Next Next commit
Fix ESlint
- [ ] Better configuration.
- [ ] Undefined `document` and possibly other browser APIs.

Dr. ImprovedSpaghetti, TYSM for all the hassles and BS I had to dig through. You have taught me discipline and seriousness
by making me deal with the most ???? that nobody told anyone was to recommended way of doing thing.

THANK YOU!
  • Loading branch information
4yman-0 committed Dec 12, 2024
commit 60b6f950225a80f11ec69c41acf28a73b0a3606c
8 changes: 3 additions & 5 deletions .github/workflows/eslint_csslint_jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: npm install --force

- name: Run eslint
run: npx eslint --config=tests/eslint_rules.config.mjs
run: npx eslint
continue-on-error: true

# - name: Run JSLint
Expand All @@ -40,11 +40,9 @@ jobs:
- name: Run npm test
run: npm test

- name: Install csslint using npm
run: npm install -g [email protected]
# - name: Install csslint using npm
# run: npm install -g [email protected]

# - name: Lint CSS files
# run: |
# for file in $(grep -rl --include='*.css' '' ./); do npx csslint --config tests/csslint_rules.json "$file"; done


2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
deno.lock
15 changes: 15 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import js from "@eslint/js";

export default [

js.configs.recommended,
{
rules: {
"no-unused-vars": [
"error",
{ destructuredArrayIgnorePattern: "^_" },
],
},
},

];
14 changes: 6 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = {
testPathIgnorePatterns: [
"/node_modules/"
],
testMatch: [
"**/tests/**/*.js"
]
};
export const testPathIgnorePatterns = [
"/node_modules/"
];
export const testMatch = [
"**/tests/**/*.js"
];
Loading
Loading