Add sqlite3 and modify prettier config #10

Merged
j285he merged 4 commits from j285he-add-sqlite3 into main 2021-11-20 19:37:15 -05:00
8 changed files with 1718 additions and 70 deletions
Showing only changes of commit d85efdaf2a - Show all commits

View File

@ -19,6 +19,8 @@ extends:
- plugin:prettier/recommended
rules:
prettier/prettier: ['error', {semi: true}]
j285he marked this conversation as resolved Outdated

Is the {semi: true} necessary here?

Is the `{semi: true}` necessary here?
quotes:
- error
- single

View File

@ -1,7 +1,7 @@
{
"arrowParens": "avoid",
"singleQuote": true,
"semi": false,
"semi": true,
j285he marked this conversation as resolved Outdated

It looks like the default Prettier options are more or less the same as what we want, so perhaps we could delete this file entirely? The website repo doesn't even have a .prettierrc, so getting rid of this file would make the Prettier rules more similar between the two repos. (If there's a reason why we maybe shouldn't try to align the Prettier config between both projects, please leave a comment!)

It looks like the default Prettier options are more or less the same as what we want, so perhaps we could delete this file entirely? The website repo doesn't even have a `.prettierrc`, so getting rid of this file would make the Prettier rules more similar between the two repos. (If there's a reason why we maybe shouldn't try to align the Prettier config between both projects, please leave a comment!)
"printWidth": 80,
"trailingComma": "all",
"bracketSpacing": false

1740
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,8 @@
"dependencies": {
"next": "12.0.1",
"react": "17.0.2",
"react-dom": "17.0.2"
"react-dom": "17.0.2",
"sqlite3": "^5.0.2"
},
"devDependencies": {
"@types/node": "16.11.6",

View File

@ -1,7 +1,7 @@
import type { AppProps } from 'next/app'
import type {AppProps} from 'next/app';
function App({Component, pageProps}: AppProps) {
return <Component {...pageProps} />
return <Component {...pageProps} />;
}
export default App
export default App;

View File

@ -1,11 +1,7 @@
import type { NextPage } from 'next'
import type {NextPage} from 'next';
const Home: NextPage = () => {
return (
<main>I am a book</main>
)
}
return <main>I am a book</main>;
};
export default Home
export default Home;

View File

@ -5,11 +5,7 @@
"target": "ES6",
"module": "esnext",
"moduleResolution": "node",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"sourceMap": true,
"outDir": "./dist",
"noEmit": true,
@ -38,12 +34,6 @@
"forceConsistentCasingInFileNames": true,
"allowJs": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
"include": ["next-env.d.ts", "types.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

1
types.d.ts vendored Normal file
View File

@ -0,0 +1 @@
declare module 'sqlite3';