Skip to content

Commit

Permalink
add more complete eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thal0x committed Sep 12, 2023
1 parent c3d1338 commit 6d88446
Show file tree
Hide file tree
Showing 43 changed files with 876 additions and 431 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"extends": "next/core-web-vitals"
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "prettier", "simple-import-sort"],
"parser": "@typescript-eslint/parser",
"rules": {
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn"
}
}
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm test
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const nextJest = require("next/jest");

const createJestConfig = nextJest({
Expand Down
Loading

0 comments on commit 6d88446

Please sign in to comment.