Alistair Stead
12/30/2021, 7:45 PMturborepos
with SST? I’ve been using it on a number of projects and it brought lots of benefits both for dev and CI. I’ve been working with it on an SST project and NextJSSite but it has highlighted a number of complexities/diversions from practices in other projects. It would be great to be able to use this or other such solutions to speed up the build step for NextJSSites currently it is built twice on every deploy. Could SST leverage the build hashes to prevent this? Also the cwd
during the build process and also the loading of additional next and eslint config causes some issues or at least confusion and I can’t find a way to resolve this.Derek Kershner
12/31/2021, 3:42 PMalso the loading of additional next and eslint config causes some issues or at least confusion and I can’t find a way to resolve this.https://nextjs.org/docs/basic-features/eslint
Alistair Stead
12/31/2021, 3:49 PMDerek Kershner
12/31/2021, 3:57 PMpath
param of sst.NextjsSiteProps
?Alistair Stead
12/31/2021, 4:06 PMSean Matheson
01/05/2022, 4:11 PM{
"scripts": {
"lint": "eslint --ext .ts,.tsx,.js --ignore-path .gitignore .",
"lint:fix": "yarn lint --fix"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"babel-eslint": "^10.1.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-react-app": "^7.0.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"prettier": "^2.5.1",
"typescript": "^4.5.4"
},
"eslintConfig": {
"root": true,
"extends": [
"react-app",
"prettier"
],
"plugins": [
"prettier",
"simple-import-sort"
],
"rules": {
"prettier/prettier": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
"overrides": [
{
"files": [
"**/__tests__/*.ts?(x)",
"**/*.test.ts?(x)"
],
"env": {
"jest": true
}
}
]
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"trailingComma": "all"
}
}
Derek Kershner
02/15/2022, 8:32 PM