Skip to content

Commit

Permalink
Update ESLint stuff
Browse files Browse the repository at this point in the history
The old pre-commit hook was unhappy, so I just started from scratch
based on:

https://eslint.org/docs/latest/use/getting-started#quick-start

I may need to adjust this, but I guess it's ok for now.
  • Loading branch information
trey committed Aug 30, 2024
1 parent 468acf0 commit f7c0e6f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 25 deletions.
19 changes: 0 additions & 19 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: eslint
name: Run ESLint
language: system
entry: npx eslint --ext .js ./templates/js
entry: npx eslint ./templates/js
types: [javascript]
pass_filenames: false
- id: stylelint
Expand Down
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import globals from 'globals';
import pluginJs from '@eslint/js';

export default [
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
];
23 changes: 19 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
"build": "npm-run-all build:*"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"@playwright/test": "^1.36.0",
"autoprefixer": "^10.4.14",
"cssnano": "^7.0.1",
"dotenv": "^16.3.1",
"eslint": "^9.0.0",
"eslint": "^9.9.1",
"globals": "^15.9.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.24",
"postcss-cli": "^11.0.0",
Expand Down

0 comments on commit f7c0e6f

Please sign in to comment.