parent
0c2df541ca
commit
f4d820be17
@ -0,0 +1,53 @@ |
||||
parser: '@typescript-eslint/parser' |
||||
parserOptions: |
||||
project: ./tsconfig.json |
||||
|
||||
root: true |
||||
|
||||
plugins: |
||||
- '@typescript-eslint' |
||||
- prettier |
||||
|
||||
extends: |
||||
- eslint:recommended |
||||
- plugin:@typescript-eslint/eslint-recommended |
||||
- plugin:@typescript-eslint/recommended |
||||
- plugin:import/errors |
||||
- plugin:import/warnings |
||||
- plugin:import/typescript |
||||
- prettier |
||||
- plugin:prettier/recommended |
||||
|
||||
rules: |
||||
quotes: |
||||
- error |
||||
- single |
||||
- avoidEscape: true |
||||
|
||||
no-console: warn |
||||
|
||||
'@typescript-eslint/explicit-member-accessibility': |
||||
- error |
||||
- accessibility: no-public |
||||
|
||||
import/first: warn |
||||
import/order: |
||||
- warn |
||||
- newlines-between: always |
||||
alphabetize: |
||||
order: asc |
||||
caseInsensitive: true |
||||
|
||||
import/no-duplicates: off |
||||
no-duplicate-imports: off |
||||
'@typescript-eslint/no-duplicate-imports': warn |
||||
|
||||
'@typescript-eslint/explicit-function-return-type': off |
||||
'@typescript-eslint/explicit-module-boundary-types': off |
||||
'@typescript-eslint/no-explicit-any': off |
||||
'@typescript-eslint/no-non-null-assertion': off |
||||
'@typescript-eslint/no-use-before-define': off |
||||
|
||||
# Enabled in tsconfig |
||||
'@typescript-eslint/no-unused-vars': off |
||||
import/no-unresolved: off |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"arrowParens": "avoid", |
||||
"singleQuote": true, |
||||
"semi": false, |
||||
"printWidth": 80, |
||||
"trailingComma": "all", |
||||
"bracketSpacing": false |
||||
} |
@ -1,2 +1,34 @@ |
||||
# library |
||||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
||||
|
||||
## Getting Started |
||||
|
||||
First, run the development server: |
||||
|
||||
```bash |
||||
npm run dev |
||||
# or |
||||
yarn dev |
||||
``` |
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
||||
|
||||
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. |
||||
|
||||
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. |
||||
|
||||
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. |
||||
|
||||
## Learn More |
||||
|
||||
To learn more about Next.js, take a look at the following resources: |
||||
|
||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
||||
|
||||
## Deploy on Vercel |
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
||||
|
@ -0,0 +1,6 @@ |
||||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
@ -0,0 +1,4 @@ |
||||
/** @type {import('next').NextConfig} */ |
||||
module.exports = { |
||||
reactStrictMode: true, |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,28 @@ |
||||
{ |
||||
"name": "library", |
||||
"version": "0.1.0", |
||||
"private": true, |
||||
"scripts": { |
||||
"dev": "next dev", |
||||
"build": "next build", |
||||
"start": "next start", |
||||
"lint": "next lint" |
||||
}, |
||||
"dependencies": { |
||||
"next": "12.0.1", |
||||
"react": "17.0.2", |
||||
"react-dom": "17.0.2" |
||||
}, |
||||
"devDependencies": { |
||||
"@types/node": "16.11.6", |
||||
"@types/react": "17.0.33", |
||||
"@typescript-eslint/eslint-plugin": "^5.2.0", |
||||
"@typescript-eslint/parser": "^5.2.0", |
||||
"eslint": "7.32.0", |
||||
"eslint-config-prettier": "^8.3.0", |
||||
"eslint-plugin-import": "^2.25.2", |
||||
"eslint-plugin-prettier": "^4.0.0", |
||||
"prettier": "^2.4.1", |
||||
"typescript": "4.4.4" |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
import type { AppProps } from 'next/app' |
||||
|
||||
function App({ Component, pageProps }: AppProps) { |
||||
return <Component {...pageProps} /> |
||||
} |
||||
|
||||
export default App |
@ -0,0 +1,11 @@ |
||||
import type { NextPage } from 'next' |
||||
|
||||
|
||||
|
||||
const Home: NextPage = () => { |
||||
return ( |
||||
<main>I am a book</main> |
||||
) |
||||
} |
||||
|
||||
export default Home |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,49 @@ |
||||
{ |
||||
"compilerOptions": { |
||||
/* Basic Options */ |
||||
"incremental": true, |
||||
"target": "ES6", |
||||
"module": "esnext", |
||||
"moduleResolution": "node", |
||||
"lib": [ |
||||
"dom", |
||||
"dom.iterable", |
||||
"esnext" |
||||
], |
||||
"sourceMap": true, |
||||
"outDir": "./dist", |
||||
"noEmit": true, |
||||
"resolveJsonModule": true, |
||||
"isolatedModules": true, |
||||
"jsx": "preserve", |
||||
/* Strict Type-Checking Options */ |
||||
"strict": true, |
||||
"noImplicitAny": true, |
||||
"strictNullChecks": true, |
||||
"strictFunctionTypes": true, |
||||
"strictBindCallApply": true, |
||||
"strictPropertyInitialization": true, |
||||
"noImplicitThis": true, |
||||
"alwaysStrict": true, |
||||
/* Additional Checks */ |
||||
"noUnusedLocals": true, |
||||
"noUnusedParameters": true, |
||||
"noImplicitReturns": true, |
||||
"noFallthroughCasesInSwitch": true, |
||||
"noUncheckedIndexedAccess": true, |
||||
"noImplicitOverride": true, |
||||
"noPropertyAccessFromIndexSignature": true, |
||||
"esModuleInterop": true, |
||||
"skipLibCheck": true, |
||||
"forceConsistentCasingInFileNames": true, |
||||
"allowJs": true |
||||
}, |
||||
"include": [ |
||||
"next-env.d.ts", |
||||
"**/*.ts", |
||||
"**/*.tsx" |
||||
], |
||||
"exclude": [ |
||||
"node_modules" |
||||
] |
||||
} |
Loading…
Reference in new issue