Skip to content

Commit 673cf35

Browse files
authored
Docs: update READMEs for eslint-plugin (#36)
* docs: update eslint plugin README * docs: update monorepo README
1 parent d54d3e7 commit 673cf35

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
# react-native-project-config
1+
# react-native-project-config by BAM
22

3-
Monorepo with packages for setting up ESLint, Typescript, Prettier and Jest.
3+
Monorepo with packages for setting up ESLint and Typescript for any new React Native project.
44

55
## Presentation
66

77
The goal of the project is too have a set of configuration files that can be easily imported into a new project, which would reduce the burden of starting new projects.
88

9-
This repo uses [lerna](https://lerna.js.org/) to maintain, version and publish various packages for configuring ESLint, Typescript, Prettier and Jest.
9+
This repo uses [lerna](https://lerna.js.org/) to maintain, version and publish various packages for configuring ESLint and Typescript.
1010

1111
There is also an example app under `packages/example-app` whose goal is to demonstrate how to import and use the configuration packages.
1212

1313
## Using the configurations
1414

1515
- [Using ESLint plugin](./packages/eslint-plugin/README.md)
16+
- [Using Typescript config](./packages/typescript-config/README.md)
1617

1718
## Installing the project
1819

packages/eslint-plugin/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# ESLint plugin for BAM
1+
# ESLint plugin by BAM
22

3-
This project is an ESLint plugin that gathers all the rules, plugins and parsers that should be used in any new BAM project.
3+
This project is an ESLint plugin that gathers all the rules, plugins and parsers that should be used in any new react-native BAM project.
44

55
## Quick Setup
66

@@ -19,7 +19,7 @@ Then update your `.eslintrc` config file:
1919
"extends": "plugin:@bam.tech/recommended",
2020
"overrides": [
2121
{
22-
"files": ["*.test.tsx"],
22+
"files": ["*.test.tsx", "*.test.ts"],
2323
"extends": "plugin:@bam.tech/tests"
2424
}
2525
]
@@ -30,11 +30,11 @@ Then update your `.eslintrc` config file:
3030

3131
This plugin exports multiple configurations that can be used in your `.eslintrc` config file:
3232

33-
| Name | Description |
34-
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
35-
| `@bam.tech/recommended` | The recommended config for all projects |
36-
| `@bam.tech/tests` | The recommended config for test files. By default this applies to every file: put it in an `overrides` to filter on your test files. |
37-
| `@bam.tech/a11y` | [beta] Eslint config to check for accessibility. Still in beta to not break existing projects, but will be merged into the recommended config in the future. |
33+
| Name | Description |
34+
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
35+
| [`@bam.tech/recommended`](./lib/configs/recommended.js) | The recommended config for all projects |
36+
| [`@bam.tech/tests`](./lib/configs/tests.js) | The recommended config for test files. By default this applies to every file: put it in an `overrides` to filter on your test files. |
37+
| [`@bam.tech/a11y` ](./lib/configs/a11y.js) | [beta] Eslint config to check for accessibility. Still in beta to not break existing projects, but will be merged into the recommended config in the future. |
3838

3939
These configs need some peer dependencies. You can list them with:
4040

0 commit comments

Comments
 (0)