Skip to content

Commit e346e09

Browse files
Chau TranChau Tran
Chau Tran
authored and
Chau Tran
committed
chore(repo): prettier format
1 parent e1cf6c7 commit e346e09

23 files changed

+20593
-15535
lines changed

.eslintrc.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
{
2-
"root": true,
3-
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nx"],
5-
"overrides": [
6-
{
7-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8-
"rules": {
9-
"@nx/enforce-module-boundaries": [
10-
"error",
11-
{
12-
"enforceBuildableLibDependency": true,
13-
"allow": [],
14-
"depConstraints": [
15-
{
16-
"sourceTag": "*",
17-
"onlyDependOnLibsWithTags": ["*"]
18-
}
19-
]
20-
}
21-
]
22-
}
23-
},
24-
{
25-
"files": ["*.ts", "*.tsx"],
26-
"extends": ["plugin:@nx/typescript"],
27-
"rules": {}
28-
},
29-
{
30-
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nx/javascript"],
32-
"rules": {}
33-
},
34-
{
35-
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36-
"env": {
37-
"jest": true
38-
},
39-
"rules": {}
40-
}
41-
]
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36+
"env": {
37+
"jest": true
38+
},
39+
"rules": {}
40+
}
41+
]
4242
}

.prettierrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"singleQuote": true
2+
"singleQuote": true,
3+
"tabWidth": 4,
4+
"printWidth": 120,
5+
"plugins": ["prettier-plugin-organize-imports"]
36
}

.release-it.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
2-
"plugins": {
3-
"@release-it/conventional-changelog": {
4-
"preset": {
5-
"name": "conventionalcommits",
6-
"types": [
7-
{
8-
"type": "feat",
9-
"section": "Features"
10-
},
11-
{
12-
"type": "fix",
13-
"section": "Bug Fixes"
14-
},
15-
{
16-
"type": "cleanup",
17-
"section": "Cleanup"
18-
},
19-
{
20-
"type": "docs",
21-
"section": "Documentations"
22-
}
23-
]
24-
},
25-
"infile": "CHANGELOG.md"
2+
"plugins": {
3+
"@release-it/conventional-changelog": {
4+
"preset": {
5+
"name": "conventionalcommits",
6+
"types": [
7+
{
8+
"type": "feat",
9+
"section": "Features"
10+
},
11+
{
12+
"type": "fix",
13+
"section": "Bug Fixes"
14+
},
15+
{
16+
"type": "cleanup",
17+
"section": "Cleanup"
18+
},
19+
{
20+
"type": "docs",
21+
"section": "Documentations"
22+
}
23+
]
24+
},
25+
"infile": "CHANGELOG.md"
26+
},
27+
"@release-it/bumper": {
28+
"in": "libs/core/version.json",
29+
"out": ["libs/core/version.json", "dist/libs/**/package.json"]
30+
}
2631
},
27-
"@release-it/bumper": {
28-
"in": "libs/core/version.json",
29-
"out": ["libs/core/version.json", "dist/libs/**/package.json"]
32+
"git": {
33+
"commitMessage": "chore: release ${version}"
34+
},
35+
"npm": {
36+
"publish": false
37+
},
38+
"github": {
39+
"release": true,
40+
"releaseName": "Release ${version}"
41+
},
42+
"hooks": {
43+
"before:bump": "pnpm exec nx run-many --target=package --projects=core,soba,postprocessing,cannon --parallel=false",
44+
"after:bump": ["git checkout -- package.json"]
3045
}
31-
},
32-
"git": {
33-
"commitMessage": "chore: release ${version}"
34-
},
35-
"npm": {
36-
"publish": false
37-
},
38-
"github": {
39-
"release": true,
40-
"releaseName": "Release ${version}"
41-
},
42-
"hooks": {
43-
"before:bump": "pnpm exec nx run-many --target=package --projects=core,soba,postprocessing,cannon --parallel=false",
44-
"after:bump": ["git checkout -- package.json"]
45-
}
4646
}

.vscode/extensions.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"recommendations": [
3-
"nrwl.angular-console",
4-
"esbenp.prettier-vscode",
5-
"firsttris.vscode-jest-runner",
6-
"dbaeumer.vscode-eslint"
7-
]
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"esbenp.prettier-vscode",
5+
"firsttris.vscode-jest-runner",
6+
"dbaeumer.vscode-eslint"
7+
]
88
}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ Just run `nx build demoapp` to build the application. The build artifacts will b
4646

4747
Nx comes with local caching already built-in (check your `nx.json`). On CI you might want to go a step further.
4848

49-
- [Set up remote caching](https://nx.dev/core-features/share-your-cache)
50-
- [Set up task distribution across multiple machines](https://nx.dev/core-features/distribute-task-execution)
51-
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
49+
- [Set up remote caching](https://nx.dev/core-features/share-your-cache)
50+
- [Set up task distribution across multiple machines](https://nx.dev/core-features/distribute-task-execution)
51+
- [Learn more how to setup CI](https://nx.dev/recipes/ci)
5252

5353
## Connect with us!
5454

55-
- [Join the community](https://nx.dev/community)
56-
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
57-
- [Follow us on Twitter](https://twitter.com/nxdevtools)
55+
- [Join the community](https://nx.dev/community)
56+
- [Subscribe to the Nx Youtube Channel](https://www.youtube.com/@nxdevtools)
57+
- [Follow us on Twitter](https://twitter.com/nxdevtools)

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getJestProjects } from '@nx/jest';
22

33
export default {
4-
projects: getJestProjects(),
4+
projects: getJestProjects(),
55
};

libs/core/.eslintrc.json

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
11
{
2-
"extends": ["../../.eslintrc.json"],
3-
"ignorePatterns": ["!**/*"],
4-
"overrides": [
5-
{
6-
"files": ["*.ts"],
7-
"rules": {
8-
"@angular-eslint/directive-selector": [
9-
"error",
10-
{
11-
"type": "attribute",
12-
"prefix": "ngt",
13-
"style": "camelCase"
14-
}
15-
],
16-
"@angular-eslint/component-selector": [
17-
"error",
18-
{
19-
"type": "element",
20-
"prefix": "ngt",
21-
"style": "kebab-case"
22-
}
23-
]
24-
},
25-
"extends": [
26-
"plugin:@nx/angular",
27-
"plugin:@angular-eslint/template/process-inline-templates"
28-
]
29-
},
30-
{
31-
"files": ["*.html"],
32-
"extends": ["plugin:@nx/angular-template"],
33-
"rules": {}
34-
}
35-
]
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"rules": {
8+
"@angular-eslint/directive-selector": [
9+
"error",
10+
{
11+
"type": "attribute",
12+
"prefix": "ngt",
13+
"style": "camelCase"
14+
}
15+
],
16+
"@angular-eslint/component-selector": [
17+
"error",
18+
{
19+
"type": "element",
20+
"prefix": "ngt",
21+
"style": "kebab-case"
22+
}
23+
]
24+
},
25+
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"]
26+
},
27+
{
28+
"files": ["*.html"],
29+
"extends": ["plugin:@nx/angular-template"],
30+
"rules": {}
31+
}
32+
]
3633
}

libs/core/jest.config.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/* eslint-disable */
22
export default {
3-
displayName: 'core',
4-
preset: '../../jest.preset.js',
5-
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6-
coverageDirectory: '../../coverage/libs/core',
7-
transform: {
8-
'^.+\\.(ts|mjs|js|html)$': [
9-
'jest-preset-angular',
10-
{
11-
tsconfig: '<rootDir>/tsconfig.spec.json',
12-
stringifyContentPathRegex: '\\.(html|svg)$',
13-
},
3+
displayName: 'core',
4+
preset: '../../jest.preset.js',
5+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6+
coverageDirectory: '../../coverage/libs/core',
7+
transform: {
8+
'^.+\\.(ts|mjs|js|html)$': [
9+
'jest-preset-angular',
10+
{
11+
tsconfig: '<rootDir>/tsconfig.spec.json',
12+
stringifyContentPathRegex: '\\.(html|svg)$',
13+
},
14+
],
15+
},
16+
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17+
snapshotSerializers: [
18+
'jest-preset-angular/build/serializers/no-ng-attributes',
19+
'jest-preset-angular/build/serializers/ng-snapshot',
20+
'jest-preset-angular/build/serializers/html-comment',
1421
],
15-
},
16-
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17-
snapshotSerializers: [
18-
'jest-preset-angular/build/serializers/no-ng-attributes',
19-
'jest-preset-angular/build/serializers/ng-snapshot',
20-
'jest-preset-angular/build/serializers/html-comment',
21-
],
2222
};

libs/core/ng-package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3-
"dest": "../../dist/libs/core",
4-
"lib": {
5-
"entryFile": "src/index.ts"
6-
}
2+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3+
"dest": "../../dist/libs/core",
4+
"lib": {
5+
"entryFile": "src/index.ts"
6+
}
77
}

libs/core/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "angular-three",
3-
"version": "0.0.1",
4-
"peerDependencies": {
5-
"@angular/common": "^16.0.0",
6-
"@angular/core": "^16.0.0"
7-
},
8-
"dependencies": {
9-
"tslib": "^2.3.0"
10-
},
11-
"sideEffects": false
2+
"name": "angular-three",
3+
"version": "0.0.1",
4+
"peerDependencies": {
5+
"@angular/common": "^16.0.0",
6+
"@angular/core": "^16.0.0"
7+
},
8+
"dependencies": {
9+
"tslib": "^2.3.0"
10+
},
11+
"sideEffects": false
1212
}

0 commit comments

Comments
 (0)