Skip to content

Commit 83407cf

Browse files
committed
feat: configure templates as pnpm workspaces
1 parent c6b11e2 commit 83407cf

File tree

9 files changed

+10221
-2
lines changed

9 files changed

+10221
-2
lines changed

.eslintrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
es2021: true,
6+
},
7+
extends: 'eslint:recommended',
8+
parserOptions: {
9+
'ecmaVersion': 'latest',
10+
'sourceType': 'module',
11+
},
12+
overrides: [
13+
{
14+
files: ['**/*.ts'],
15+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
16+
parser: '@typescript-eslint/parser',
17+
plugins: ['@typescript-eslint'],
18+
},
19+
],
20+
}

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/hydrogen

package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"prettier": "prettier '.'",
2020
"prettier:check": "pnpm prettier -c",
2121
"prettier:format": "pnpm prettier -l -w ",
22+
"lint:check": "eslint '**/*.{ts,js}'",
23+
"lint:format": "pnpm lint:check --fix",
24+
"start:template:plain": "pnpm --recursive --filter aws-nodejs start",
25+
"start:template:ecmascript": "pnpm --recursive --filter aws-nodejs-ecma-script start",
26+
"start:template:typescript": "pnpm --recursive --filter aws-nodejs-typescript start",
2227
"clean": "rm -rf node_modules 2>dev/null"
2328
},
2429
"peerDependencies": {
@@ -37,6 +42,9 @@
3742
}
3843
],
3944
"devDependencies": {
40-
"serverless-offline": "^12.0.4"
45+
"@typescript-eslint/eslint-plugin": "^5.57.1",
46+
"@typescript-eslint/parser": "^5.57.1",
47+
"eslint": "8.37.0",
48+
"prettier": "^2.8.7"
4149
}
4250
}

0 commit comments

Comments
 (0)