metamigo-frontend: start frontend cleanup
This commit is contained in:
parent
f4a3031c5e
commit
4f2b7934e2
6 changed files with 263 additions and 11 deletions
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"extends": "next"
|
||||
}
|
||||
10
apps/metamigo-frontend/.eslintrc.js
Normal file
10
apps/metamigo-frontend/.eslintrc.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
require("eslint-config-link/patch/modern-module-resolution");
|
||||
module.exports = {
|
||||
extends: [
|
||||
"eslint-config-link/profile/node",
|
||||
"eslint-config-link/profile/typescript",
|
||||
"eslint-config-link/profile/jest",
|
||||
"next"
|
||||
],
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
};
|
||||
|
|
@ -5,7 +5,7 @@ import type { AppOptions } from "next-auth";
|
|||
import * as Wreck from "@hapi/wreck";
|
||||
import * as Boom from "@hapi/boom";
|
||||
|
||||
import type { IAppConfig } from "config";
|
||||
import type { IAppConfig } from "@digiresilience/metamigo-config";
|
||||
|
||||
export interface Profile {
|
||||
name: string;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
"version": "0.2.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@digiresilience/metamigo-config": "*",
|
||||
"@apollo/client": "^3.7.4",
|
||||
"@hapi/boom": "^10.0.0",
|
||||
"@hapi/wreck": "^18.0.0",
|
||||
|
|
@ -30,21 +31,23 @@
|
|||
"swr": "^2.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "next dev -p 2999",
|
||||
"serve": "next dev -p 2999",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"fix:lint": "eslint --ext .js,.jsx,.ts,.tsx,.graphql --fix",
|
||||
"fix:prettier": "prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,graphql,md}\" --write",
|
||||
"test": "echo no tests",
|
||||
"lint": "next lint",
|
||||
"lint:lint": "eslint --ext .js,.jsx,.ts,.tsx,.graphql",
|
||||
"lint:prettier": "prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,graphql,md}\" --list-different"
|
||||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.graphql && next lint && prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,graphql,md}\" --write",
|
||||
"fix:lint": "eslint --ext .js,.jsx,.ts,.tsx,.graphql --fix",
|
||||
"fmt": "prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,graphql,md}\" --list-different"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/eslint-plugin-next": "^13.1.2",
|
||||
"@types/hapi__wreck": "17.0.1",
|
||||
"@types/react": "^17",
|
||||
"@types/react-mic": "12.4.3",
|
||||
"typescript": "^4.9.5"
|
||||
"typescript": "^4.9.5",
|
||||
"tsconfig-link": "*",
|
||||
"eslint-config-link": "*",
|
||||
"jest-config-link": "*",
|
||||
"babel-preset-link": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"extends": "tsconfig-link",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue