@scaleway/eslint-config-react 3.11.1 → 3.12.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 3.12.0 (2022-12-19)
7
+
8
+ ### Features
9
+
10
+ - **eslint-config-react:** add standalone emotion configuration ([#1121](https://github.com/scaleway/scaleway-lib/issues/1121)) ([4aa5474](https://github.com/scaleway/scaleway-lib/commit/4aa5474f357c8a00e9c81d6be7591da3002c0ddc))
11
+
12
+ ## [3.11.2](https://github.com/scaleway/scaleway-lib/compare/@scaleway/eslint-config-react@3.11.1...@scaleway/eslint-config-react@3.11.2) (2022-12-14)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **deps:** update typescript-eslint monorepo to v5.46.1 ([#1118](https://github.com/scaleway/scaleway-lib/issues/1118)) ([d47dd59](https://github.com/scaleway/scaleway-lib/commit/d47dd591ab98409f72bdb12fc5648c40b79c4b5a))
17
+
6
18
  ## 3.11.1 (2022-12-14)
7
19
 
8
20
  ### Bug Fixes
package/README.md CHANGED
@@ -18,7 +18,7 @@ Add to your `.eslintrc`
18
18
 
19
19
  ```json
20
20
  {
21
- "extends": "@scaleway/react"
21
+ "extends": ["@scaleway/react]"
22
22
  }
23
23
  ```
24
24
 
@@ -26,9 +26,17 @@ Or for Typescript
26
26
 
27
27
  ```json
28
28
  {
29
- "extends": "@scaleway/react/typescript",
29
+ "extends": ["@scaleway/react/typescript"],
30
30
  "parserOptions": {
31
31
  "project": "./path/to/tsconfig.json"
32
32
  }
33
33
  }
34
34
  ```
35
+
36
+ We also have a standalong emotion configuration
37
+
38
+ ```json
39
+ {
40
+ "extends": ["@scaleway/react", "@scaleway/react/emotion"]
41
+ }
42
+ ```
package/emotion.js ADDED
@@ -0,0 +1,15 @@
1
+ module.exports = {
2
+ plugins: ['@emotion'],
3
+ rules: {
4
+ 'react/no-unknown-property': [
5
+ 'error',
6
+ {
7
+ ignore: ['css'],
8
+ },
9
+ ],
10
+ '@emotion/import-from-emotion': 'error',
11
+ '@emotion/no-vanilla': 'error',
12
+ '@emotion/styled-import': 'error',
13
+ '@emotion/syntax-preference': ['error', 'string'],
14
+ },
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/eslint-config-react",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "description": "Scaleway React eslint shared config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -17,8 +17,9 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@typescript-eslint/eslint-plugin": "5.46.0",
21
- "@typescript-eslint/parser": "5.46.0",
20
+ "@emotion/eslint-plugin": "11.10.0",
21
+ "@typescript-eslint/eslint-plugin": "5.46.1",
22
+ "@typescript-eslint/parser": "5.46.1",
22
23
  "eslint-config-airbnb": "19.0.4",
23
24
  "eslint-config-airbnb-typescript": "17.0.0",
24
25
  "eslint-config-prettier": "8.5.0",
@@ -36,5 +37,5 @@
36
37
  "eslint": "8.29.0",
37
38
  "typescript": "4.9.3"
38
39
  },
39
- "gitHead": "5ae846504fc397199969321794297e4aee58f2b3"
40
+ "gitHead": "906a0933c743eead67047cb7e0c80d2487b5c8aa"
40
41
  }