chore: remove unused lib folder

This commit is contained in:
Timothy Lin 2023-07-09 16:19:17 +08:00
parent 54ff8c7b48
commit a3085fbc06
5 changed files with 8 additions and 68 deletions

View File

@ -5,7 +5,6 @@
"@/components/*": ["components/*"],
"@/data/*": ["data/*"],
"@/layouts/*": ["layouts/*"],
"@/lib/*": ["lib/*"],
"@/css/*": ["css/*"],
"contentlayer/generated": ["./.contentlayer/generated"]
}

View File

@ -63,7 +63,7 @@ module.exports = () => {
reactStrictMode: true,
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
eslint: {
dirs: ['pages', 'components', 'lib', 'layouts', 'scripts'],
dirs: ['app', 'components', 'layouts', 'scripts'],
},
experimental: {
appDir: true,

View File

@ -12,7 +12,6 @@ module.exports = {
'./pages/**/*.{js,ts,tsx}',
'./components/**/*.{js,ts,tsx}',
'./layouts/**/*.{js,ts,tsx}',
'./lib/**/*.{js,ts,tsx}',
'./data/**/*.mdx',
],
darkMode: 'class',

View File

@ -2,11 +2,7 @@
"compilerOptions": {
"incremental": true,
"target": "ES6",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
@ -21,24 +17,11 @@
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@/components/*": [
"components/*"
],
"@/data/*": [
"data/*"
],
"@/layouts/*": [
"layouts/*"
],
"@/lib/*": [
"lib/*"
],
"@/css/*": [
"css/*"
],
"contentlayer/generated": [
"./.contentlayer/generated"
]
"@/components/*": ["components/*"],
"@/data/*": ["data/*"],
"@/layouts/*": ["layouts/*"],
"@/css/*": ["css/*"],
"contentlayer/generated": ["./.contentlayer/generated"]
},
"plugins": [
{
@ -56,7 +39,5 @@
".contentlayer/generated/**/*.json",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
"exclude": ["node_modules"]
}

View File

@ -1,39 +0,0 @@
// Needed to resolve path reference to type check recipes
// Can be deleted if you are cloning the app
{
"compilerOptions": {
"incremental": true,
"target": "ES6",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"emitDeclarationOnly": true,
"composite": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@/components/*": ["components/*"],
"@/data/*": ["data/*"],
"@/layouts/*": ["layouts/*"],
"@/lib/*": ["lib/*"],
"@/css/*": ["css/*"],
"contentlayer/generated": ["./.contentlayer/generated"]
}
},
"include": [
"next-env.d.ts",
"**/*.js",
"**/*.ts",
"**/*.tsx",
".contentlayer/generated",
".contentlayer/generated/**/*.json"
],
"exclude": ["node_modules"]
}