Skip to content

Commit 2ca3a90

Browse files
authored
Merge pull request #12 from mapinis/dependencies-staging
Resolve security vulnerabilities
2 parents 148ea79 + 07de4f0 commit 2ca3a90

File tree

5 files changed

+1338
-1401
lines changed

5 files changed

+1338
-1401
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ jobs:
4848
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
4949
- name: Install dependencies
5050
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
51-
- name: Lint with Next.js
52-
run: ${{ steps.detect-package-manager.outputs.runner }} next lint
51+
- name: Lint
52+
run: ${{ steps.detect-package-manager.outputs.manager }} run lint

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals"),
14+
];
15+
16+
export default eslintConfig;

0 commit comments

Comments
 (0)