Skip to content

Commit

Permalink
Refresh and update all the major packages (#105)
Browse files Browse the repository at this point in the history
Everything's up to date now
  • Loading branch information
mattgodbolt authored Nov 2, 2024
1 parent 9a6d011 commit cb3120e
Show file tree
Hide file tree
Showing 18 changed files with 2,288 additions and 4,098 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,3 @@ dist: export NODE_ENV=production
dist: export WEBPACK_ARGS=-p
dist: prereqs webpack ## Creates a distribution
echo $(HASH) > dist/git_hash

.PHONY: install-git-hooks
install-git-hooks: ## Install git hooks that will ensure code is linted and tests are run before allowing a check in
mkdir -p "$(shell git rev-parse --git-dir)/hooks"
ln -sf "$(shell pwd)/scripts/pre-commit-hook.sh" "$(shell git rev-parse --git-dir)/hooks/pre-commit"
52 changes: 52 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import globals from "globals";
import path from "node:path";
import {fileURLToPath} from "node:url";
import js from "@eslint/js";
import {FlatCompat} from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ["**/dist", "test/_polyfills.js"],
},
...compat.extends("eslint:recommended"),
{
languageOptions: {
globals: {
...globals.browser,
...globals.mocha,
},

ecmaVersion: 2020,
sourceType: "module",
},

rules: {
"no-var": "error",
semi: "error",
"no-control-regex": "off",
"no-unused-vars": [
"error",
{
caughtErrorsIgnorePattern: "^e$",
},
],
},
},
{
files: ["**/webpack.config.js"],

languageOptions: {
globals: {
...globals.node,
},
},
},
];
Loading

0 comments on commit cb3120e

Please sign in to comment.