Skip to content

Commit

Permalink
Merge pull request #71 from yousifalraheem/chore/update-dependencies-…
Browse files Browse the repository at this point in the history
…rollup-4

build: add support for rollup version 4
  • Loading branch information
yousifalraheem authored Nov 2, 2024
2 parents 273e879 + 4aaf65d commit f899d5a
Show file tree
Hide file tree
Showing 10 changed files with 5,682 additions and 7,348 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 20.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx eslint --fix . &&
npm run lint &&
echo "✅ eslint finished successfully" &&
Expand Down
47 changes: 47 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
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: ["**/node_modules", "**/dist", "**/temp", "**/coverage"],
},
...compat.extends(
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.node,
...globals.browser,
},
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},

rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
},
},
];
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { InitialOptionsTsJest } from "ts-jest";
import type { JestConfigWithTsJest } from "ts-jest";

const esModules = ["gzip-size"].join("|");

const config: InitialOptionsTsJest = {
const config: JestConfigWithTsJest = {
roots: ["<rootDir>/src"],
collectCoverage: true,
collectCoverageFrom: ["src/**/*.{js,ts}"],
Expand Down
Loading

0 comments on commit f899d5a

Please sign in to comment.