@allthings/eslint-config 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -1,20 +1,21 @@
1
1
  # eslint-config-allthings
2
2
 
3
- ## Usage
4
3
 
5
- Install
4
+ ## Setup
6
5
 
7
6
  ```shell
8
7
  yarn add -DE @allthings/eslint-config
9
8
  ```
10
9
 
10
+ ## Usage
11
+
11
12
  Add this to your .eslintrc.js
12
13
 
13
14
  ### React projects
14
15
 
15
16
  ```js
16
17
  module.exports = {
17
- extends: ['@allthings/react'],
18
+ extends: ['@allthings/eslint-config/react'],
18
19
  }
19
20
  ```
20
21
 
@@ -22,7 +23,7 @@ module.exports = {
22
23
 
23
24
  ```js
24
25
  module.exports = {
25
- extends: ['@allthings/node'],
26
+ extends: ['@allthings/eslint-config/node'],
26
27
  }
27
28
  ```
28
29
 
package/default.js CHANGED
@@ -35,7 +35,9 @@ module.export = {
35
35
  },
36
36
  ],
37
37
  'no-console': 'error',
38
+ quotes: ['error', 'single', { avoidEscape: true }],
38
39
  'simple-import-sort/imports': 'error',
40
+ 'simple-import-sort/exports': 'error',
39
41
  'sort-keys': 'error',
40
42
  },
41
43
  }
package/node.js CHANGED
@@ -1,3 +1,3 @@
1
1
  module.export = {
2
- extends: ['@allthings/default'],
2
+ extends: ['@allthings/eslint-config/default'],
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/eslint-config",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "ESlint shareable config for Allthings style",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -27,12 +27,16 @@
27
27
  "eslint-plugin-typescript-sort-keys": "^2.1.0"
28
28
  },
29
29
  "peerDependencies": {
30
+ "@typescript-eslint/parser": ">=5.23.0",
30
31
  "eslint": ">=8.28.0",
31
- "prettier": ">=2.8.0"
32
+ "prettier": ">=2.8.0",
33
+ "typescript": ">=4"
32
34
  },
33
35
  "devDependencies": {
36
+ "@typescript-eslint/parser": ">=5.23.0",
34
37
  "eslint": "^8.28.0",
35
- "prettier": "2.8.0"
38
+ "prettier": "2.8.0",
39
+ "typescript": ">=4"
36
40
  },
37
41
  "keywords": [
38
42
  "eslint",
package/react.js CHANGED
@@ -1,10 +1,10 @@
1
1
  module.export = {
2
2
  extends: [
3
- '@allthings/default',
3
+ '@allthings/eslint-config/default',
4
4
  'plugin:react/recommended',
5
5
  'plugin:react/jsx-runtime',
6
+ 'plugin:react-hooks/recommended',
6
7
  ],
7
- plugins: ['react-hooks'],
8
8
  rules: {
9
9
  'react-hooks/exhaustive-deps': 'error',
10
10
  'react/jsx-curly-brace-presence': [