Skip to content

Commit cda9fb2

Browse files
committed
initial commit
1 parent 84e2527 commit cda9fb2

File tree

9 files changed

+26
-105
lines changed

9 files changed

+26
-105
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
2-
31
# compiled output
42
/dist
53
/tmp

.prettierignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# Add files here to ignore them from prettier formatting
2-
31
/dist
42
/coverage

.vscode/extensions.json

-7
This file was deleted.

README.md

+15-88
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,21 @@
1+
# Betsys ESLint
12

3+
:fire: Monorepo for all the ESLint tooling we use on our day-to-day basis in Betsys :fire:
24

3-
# BetsysEslint
5+
## Quick Start
46

5-
This project was generated using [Nx](https://nx.dev).
7+
```bash
8+
# For TypeScript, use the following:
9+
npm install @betsys-eslint/eslint-config-typescript
610

7-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png" width="450"></p>
11+
# For Angular and Angular Template, use the following:
12+
npm install @betsys-eslint/eslint-config-angular @betsys-eslint/eslint-config-angular-template
813

9-
🔎 **Smart, Fast and Extensible Build System**
14+
# For Nest.js, use the following:
15+
npm install @betsys-eslint/eslint-config-nestjs
16+
```
1017

11-
## Adding capabilities to your workspace
12-
13-
Nx supports many plugins which add capabilities for developing different types of applications and different tools.
14-
15-
These capabilities include generating applications, libraries, etc as well as the devtools to test, and build projects as well.
16-
17-
Below are our core plugins:
18-
19-
- [React](https://reactjs.org)
20-
- `npm install --save-dev @nrwl/react`
21-
- Web (no framework frontends)
22-
- `npm install --save-dev @nrwl/web`
23-
- [Angular](https://angular.io)
24-
- `npm install --save-dev @nrwl/angular`
25-
- [Nest](https://nestjs.com)
26-
- `npm install --save-dev @nrwl/nest`
27-
- [Express](https://expressjs.com)
28-
- `npm install --save-dev @nrwl/express`
29-
- [Node](https://nodejs.org)
30-
- `npm install --save-dev @nrwl/node`
31-
32-
There are also many [community plugins](https://nx.dev/community) you could add.
33-
34-
## Generate an application
35-
36-
Run `nx g @nrwl/react:app my-app` to generate an application.
37-
38-
> You can use any of the plugins above to generate applications as well.
39-
40-
When using Nx, you can create multiple applications and libraries in the same workspace.
41-
42-
## Generate a library
43-
44-
Run `nx g @nrwl/react:lib my-lib` to generate a library.
45-
46-
> You can also use any of the plugins above to generate libraries as well.
47-
48-
Libraries are shareable across libraries and applications. They can be imported from `@betsys-eslint/mylib`.
49-
50-
## Development server
51-
52-
Run `nx serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
53-
54-
## Code scaffolding
55-
56-
Run `nx g @nrwl/react:component my-component --project=my-app` to generate a new component.
57-
58-
## Build
59-
60-
Run `nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
61-
62-
## Running unit tests
63-
64-
Run `nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).
65-
66-
Run `nx affected:test` to execute the unit tests affected by a change.
67-
68-
## Running end-to-end tests
69-
70-
Run `nx e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).
71-
72-
Run `nx affected:e2e` to execute the end-to-end tests affected by a change.
73-
74-
## Understand your workspace
75-
76-
Run `nx graph` to see a diagram of the dependencies of your projects.
77-
78-
## Further help
79-
80-
Visit the [Nx Documentation](https://nx.dev) to learn more.
81-
82-
83-
84-
## ☁ Nx Cloud
85-
86-
### Distributed Computation Caching & Distributed Task Execution
87-
88-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-cloud-card.png"></p>
89-
90-
Nx Cloud pairs with Nx in order to enable you to build and test code more rapidly, by up to 10 times. Even teams that are new to Nx can connect to Nx Cloud and start saving time instantly.
91-
92-
Teams using Nx gain the advantage of building full-stack applications with their preferred framework alongside Nx’s advanced code generation and project dependency graph, plus a unified experience for both frontend and backend developers.
93-
94-
Visit [Nx Cloud](https://nx.app/) to learn more.
18+
Please, follow the step-by-step instructions for each config listed on their packages homepage:
19+
- Configuration steps for [TypeScript](https://github.com/betsys-com/betsys-eslint/tree/main/packages/eslint-config-typescript)
20+
- Configuration steps for [Angular](https://github.com/betsys-com/betsys-eslint/tree/main/packages/eslint-config-angular) and [Angular Template](https://github.com/betsys-com/betsys-eslint/tree/main/packages/eslint-config-angular-template)
21+
- Configuration steps for [Nest.js](https://github.com/betsys-com/betsys-eslint/tree/main/packages/eslint-config-nestjs)

nx.json

+11-6
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@
22
"extends": "nx/presets/npm.json",
33
"$schema": "./node_modules/nx/schemas/nx-schema.json",
44
"npmScope": "betsys-eslint",
5-
"affected": {
6-
"defaultBase": "main"
7-
},
85
"tasksRunnerOptions": {
96
"default": {
107
"runner": "nx/tasks-runners/default",
118
"options": {
129
"cacheableOperations": [
1310
"build",
1411
"lint",
15-
"test",
16-
"e2e"
17-
]
12+
"test"
13+
],
14+
"canTrackAnalytics": false,
15+
"showUsageWarnings": true,
16+
"parallel": 1
1817
}
1918
}
19+
},
20+
"affected": {
21+
"defaultBase": "main"
22+
},
23+
"workspaceLayout": {
24+
"libsDir": "packages"
2025
}
2126
}
File renamed without changes.

packages/eslint-config-angular/.gitkeep

Whitespace-only changes.

packages/eslint-config-nestjs/.gitkeep

Whitespace-only changes.

packages/eslint-config-typescript/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)