@vidispine/eslint-config-react 23.1.0 → 23.2.0-pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ dist
2
+ build
3
+ node_modules
package/README.md CHANGED
@@ -2,11 +2,10 @@
2
2
 
3
3
  Add react eslint config
4
4
 
5
- To add support for typescript (.tsx and .ts files), also add `@vidispine/eslint-config-typescript` as devDependency
6
-
7
5
  ## Usage
8
6
 
9
- 1. Add **@vidispine/eslint-config** and **eslint (8.x)** as devDependencies,
7
+ 1. Add **@vidispine/eslint-config-react** and **eslint (8.x)** as devDependencies
8
+ - Also add **@vidispine/eslint-config-typescript** to lint `*.tsx` files.
10
9
  2. Extend config in package.json or equivalent file, e.g.:
11
10
 
12
11
  ```json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidispine/eslint-config-react",
3
- "version": "23.1.0",
3
+ "version": "23.2.0-pre.1",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,10 +15,11 @@
15
15
  "main": "index.js",
16
16
  "scripts": {
17
17
  "build": "echo 'No build script'",
18
- "lint": "eslint . --ext js,md"
18
+ "format": "prettier . --check",
19
+ "lint": "eslint . --max-warnings=0"
19
20
  },
20
21
  "dependencies": {
21
- "@vidispine/eslint-config-base": "23.1.0",
22
+ "@vidispine/eslint-config-base": "23.2.0-pre.1",
22
23
  "eslint-config-airbnb": "^19.0.4",
23
24
  "eslint-plugin-import": "^2.27.5",
24
25
  "eslint-plugin-jsx-a11y": "^6.7.1",
@@ -26,7 +27,7 @@
26
27
  "eslint-plugin-react-hooks": "^4.6.0"
27
28
  },
28
29
  "peerDependencies": {
29
- "@vidispine/eslint-config-typescript": "23.1.0",
30
+ "@vidispine/eslint-config-typescript": "23.2.0-pre.1",
30
31
  "eslint": "^8.0.0"
31
32
  },
32
33
  "peerDependenciesMeta": {
@@ -35,8 +36,8 @@
35
36
  }
36
37
  },
37
38
  "devDependencies": {
38
- "@vidispine/eslint-config-mdx": "23.1.0",
39
- "@vidispine/prettier-config": "23.1.0",
39
+ "@vidispine/eslint-config-mdx": "23.2.0-pre.1",
40
+ "@vidispine/prettier-config": "23.2.0-pre.1",
40
41
  "eslint": "8.34.0",
41
42
  "prettier": "2.8.4"
42
43
  },