Add sqlite3 and modify prettier config #10
|
@ -19,6 +19,8 @@ extends:
|
|||
- plugin:prettier/recommended
|
||||
|
||||
rules:
|
||||
prettier/prettier: ['error', {semi: true}]
|
||||
j285he marked this conversation as resolved
Outdated
|
||||
|
||||
quotes:
|
||||
- error
|
||||
- single
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"arrowParens": "avoid",
|
||||
"singleQuote": true,
|
||||
"semi": false,
|
||||
"semi": true,
|
||||
j285he marked this conversation as resolved
Outdated
a258wang
commented
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 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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
declare module 'sqlite3';
|
Loading…
Reference in New Issue
Is the
{semi: true}
necessary here?