Skip to content

Commit

Permalink
Fix ESlint
Browse files Browse the repository at this point in the history
- [ ] 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
1 parent c7b13fb commit 60b6f95
Show file tree
Hide file tree
Showing 8 changed files with 1,057 additions and 954 deletions.
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


File renamed without changes.
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

0 comments on commit 60b6f95

Please sign in to comment.