You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://www.npmjs.com/package/@mobile-reality/eslint-config)
@@ -13,86 +14,93 @@ ESLint's configuration of Mobile Reality Team
13
14
---
14
15
15
16
## Table of Contents
16
-
-[Requirements](#requirements)
17
-
-[Installation and usage for a new project](#installation-and-usage-for-a-new-project)
18
-
-[Installation and usage for an existing project](#installation-and-usage-for-an-existing-project)
19
-
-[Override](#override)
20
-
-[Used packages](#used-packages)
21
-
-[License](#license)
17
+
18
+
-[Requirements](#requirements)
19
+
-[Installation and usage for a new project](#installation-and-usage-for-a-new-project)
20
+
-[Installation and usage for an existing project](#installation-and-usage-for-an-existing-project)
21
+
-[Override](#override)
22
+
-[Used packages](#used-packages)
23
+
-[License](#license)
22
24
23
25
## Requirements
24
-
* for web: `react`, for mobile: `react-native`
25
-
*`node: ^16.13`
26
-
*`eslint: ^8.13.0`
26
+
27
+
-`node: ^16.13`
28
+
-`eslint: ~8.20.0`
29
+
-`eslint-plugin-prettier: ^4.2.0`
27
30
28
31
## Installation and usage for a new project
29
-
1. Install `@mobile-reality/eslint-config`, `eslint` and `prettier`:
32
+
33
+
1. Install `@mobile-reality/eslint-config`, `eslint`, `prettier` and `eslint-plugin-prettier`:
1. Remove all `ESLint` and `prettier` dependencies (e.g. `eslint`, `prettier`, `eslint-plugin-prettier`, `@typescript-eslint/eslint-plugin` etc.) from package.json
67
74
2. Reinstall `node_modules` (so remove them and install with `npm i` or `yarn install`)
68
75
3. Go to the [installation step](#installation-and-usage-for-a-new-project)
69
76
70
77
## Override
78
+
71
79
You can override rules by adding a rule to the rules section e.g.:
0 commit comments