Skip to content

Commit 79af961

Browse files
committed
chore: setup prettier
1 parent ce6c7da commit 79af961

File tree

5 files changed

+63
-78
lines changed

5 files changed

+63
-78
lines changed

.prettierrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"singleQuote": true
2+
"singleQuote": true,
3+
"tabWidth": 4,
4+
"printWidth": 120
35
}

nx.json

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
11
{
2-
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3-
"npmScope": "angular-three",
4-
"tasksRunnerOptions": {
5-
"default": {
6-
"runner": "nx/tasks-runners/default",
7-
"options": {
8-
"cacheableOperations": [
9-
"build",
10-
"lint",
11-
"test",
12-
"e2e"
13-
]
14-
}
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"npmScope": "angular-three",
4+
"tasksRunnerOptions": {
5+
"default": {
6+
"runner": "nx/tasks-runners/default",
7+
"options": {
8+
"cacheableOperations": ["build", "lint", "test", "e2e"]
9+
}
10+
}
11+
},
12+
"targetDefaults": {
13+
"build": {
14+
"dependsOn": ["^build"],
15+
"inputs": ["production", "^production"]
16+
}
17+
},
18+
"namedInputs": {
19+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
20+
"production": ["default"],
21+
"sharedGlobals": []
1522
}
16-
},
17-
"targetDefaults": {
18-
"build": {
19-
"dependsOn": [
20-
"^build"
21-
],
22-
"inputs": [
23-
"production",
24-
"^production"
25-
]
26-
}
27-
},
28-
"namedInputs": {
29-
"default": [
30-
"{projectRoot}/**/*",
31-
"sharedGlobals"
32-
],
33-
"production": [
34-
"default"
35-
],
36-
"sharedGlobals": []
37-
}
3823
}

package.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2-
"name": "angular-three",
3-
"version": "0.0.0",
4-
"license": "MIT",
5-
"scripts": {
6-
},
7-
"private": true,
8-
"dependencies": {
9-
},
10-
"devDependencies": {
11-
"nx": "15.5.2",
12-
"@nrwl/workspace": "15.5.2",
13-
"typescript": "~4.8.2",
14-
"prettier": "^2.6.2"
15-
}
2+
"name": "angular-three",
3+
"version": "0.0.0",
4+
"license": "MIT",
5+
"scripts": {},
6+
"private": true,
7+
"dependencies": {},
8+
"devDependencies": {
9+
"nx": "15.5.2",
10+
"@nrwl/workspace": "15.5.2",
11+
"typescript": "~4.8.2",
12+
"prettier": "^2.6.2"
13+
}
1614
}

tools/tsconfig.tools.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"extends": "../tsconfig.base.json",
3-
"compilerOptions": {
4-
"outDir": "../dist/out-tsc/tools",
5-
"rootDir": ".",
6-
"module": "commonjs",
7-
"target": "es5",
8-
"types": ["node"],
9-
"importHelpers": false
10-
},
11-
"include": ["**/*.ts"]
2+
"extends": "../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "../dist/out-tsc/tools",
5+
"rootDir": ".",
6+
"module": "commonjs",
7+
"target": "es5",
8+
"types": ["node"],
9+
"importHelpers": false
10+
},
11+
"include": ["**/*.ts"]
1212
}

tsconfig.base.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"compileOnSave": false,
3-
"compilerOptions": {
4-
"rootDir": ".",
5-
"sourceMap": true,
6-
"declaration": false,
7-
"moduleResolution": "node",
8-
"emitDecoratorMetadata": true,
9-
"experimentalDecorators": true,
10-
"importHelpers": true,
11-
"target": "es2015",
12-
"module": "esnext",
13-
"lib": ["es2017", "dom"],
14-
"skipLibCheck": true,
15-
"skipDefaultLibCheck": true,
16-
"baseUrl": ".",
17-
"paths": {}
18-
},
19-
"exclude": ["node_modules", "tmp"]
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"sourceMap": true,
6+
"declaration": false,
7+
"moduleResolution": "node",
8+
"emitDecoratorMetadata": true,
9+
"experimentalDecorators": true,
10+
"importHelpers": true,
11+
"target": "es2015",
12+
"module": "esnext",
13+
"lib": ["es2017", "dom"],
14+
"skipLibCheck": true,
15+
"skipDefaultLibCheck": true,
16+
"baseUrl": ".",
17+
"paths": {}
18+
},
19+
"exclude": ["node_modules", "tmp"]
2020
}

0 commit comments

Comments
 (0)