@mscharley/eslint-config 2.0.1 → 2.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/CHANGELOG.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "@mscharley/eslint-config",
3
3
  "entries": [
4
+ {
5
+ "version": "2.0.2",
6
+ "tag": "@mscharley/eslint-config_v2.0.2",
7
+ "date": "Sun, 02 Jul 2023 02:35:52 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Better support for esm projects"
12
+ }
13
+ ],
14
+ "dependency": [
15
+ {
16
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.2`"
17
+ },
18
+ {
19
+ "comment": "Updating dependency \"@mscharley/prettier-config\" to `2.0.2`"
20
+ }
21
+ ]
22
+ }
23
+ },
4
24
  {
5
25
  "version": "2.0.1",
6
26
  "tag": "@mscharley/eslint-config_v2.0.1",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @mscharley/eslint-config
2
2
 
3
- This log was last generated on Mon, 20 Mar 2023 15:00:56 GMT and should not be manually modified.
3
+ This log was last generated on Sun, 02 Jul 2023 02:35:52 GMT and should not be manually modified.
4
+
5
+ ## 2.0.2
6
+ Sun, 02 Jul 2023 02:35:52 GMT
7
+
8
+ ### Patches
9
+
10
+ - Better support for esm projects
4
11
 
5
12
  ## 2.0.1
6
13
  Mon, 20 Mar 2023 15:00:56 GMT
package/eslint.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": ["eslint:recommended", "./prettier"],
2
+ "extends": ["eslint:recommended", "./prettier", "plugin:import/recommended", "plugin:import/typescript"],
3
3
  "parser": "espree",
4
4
  "env": {
5
5
  "commonjs": true,
@@ -7,6 +7,12 @@
7
7
  "es2017": true
8
8
  },
9
9
  "rules": {
10
+ "import/first": ["warn"],
11
+ "import/no-cycle": ["error", { "ignoreExternal": true }],
12
+ "import/no-duplicates": "off",
13
+ "import/no-useless-path-segments": ["warn"],
14
+ "node/no-missing-import": "off",
15
+ "node/no-missing-require": "off",
10
16
  "array-callback-return": "error",
11
17
  "arrow-spacing": "error",
12
18
  "block-scoped-var": "warn",
@@ -107,5 +113,11 @@
107
113
  "rest-spread-spacing": ["error", "never"],
108
114
  "sort-imports": ["warn", { "allowSeparatedGroups": true, "ignoreCase": true }],
109
115
  "symbol-description": "error"
116
+ },
117
+ "settings": {
118
+ "import/resolver": {
119
+ "typescript": true,
120
+ "node": true
121
+ }
110
122
  }
111
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mscharley/eslint-config",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "ESLint presets that I use a lot",
5
5
  "main": "index.json",
6
6
  "lint-staged": {
@@ -25,13 +25,16 @@
25
25
  "url": "https://github.com/mscharley/node-presets/issues"
26
26
  },
27
27
  "homepage": "https://github.com/mscharley/node-presets#readme",
28
+ "dependencies": {},
28
29
  "peerDependencies": {
29
- "@mscharley/prettier-config": "2.0.1",
30
+ "@mscharley/prettier-config": "2.0.2",
30
31
  "@typescript-eslint/parser": "^5.55.0",
31
32
  "@typescript-eslint/eslint-plugin": "^5.55.0",
32
33
  "eslint": "^8.36.0",
33
34
  "eslint-config-prettier": "^8.7.0",
34
- "eslint-plugin-deprecation": "^1.4.0-next.1",
35
+ "eslint-import-resolver-typescript": "^3.5.5",
36
+ "eslint-plugin-deprecation": "^1.4.1",
37
+ "eslint-plugin-import": "^2.27.5",
35
38
  "eslint-plugin-node": "^11.1.0",
36
39
  "eslint-plugin-prettier": "^4.2.1",
37
40
  "eslint-plugin-react": "^7.32.2",
@@ -40,20 +43,22 @@
40
43
  "typescript": "^5.0.2"
41
44
  },
42
45
  "devDependencies": {
43
- "@mscharley/prettier-config": "2.0.1",
44
- "@typescript-eslint/parser": "^5.55.0",
45
- "@typescript-eslint/eslint-plugin": "^5.55.0",
46
- "eslint": "^8.36.0",
47
- "eslint-config-prettier": "^8.7.0",
48
- "eslint-plugin-deprecation": "^1.4.0-next.1",
46
+ "@mscharley/prettier-config": "2.0.2",
47
+ "@typescript-eslint/parser": "^5.60.1",
48
+ "@typescript-eslint/eslint-plugin": "^5.60.1",
49
+ "eslint": "^8.44.0",
50
+ "eslint-config-prettier": "^8.8.0",
51
+ "eslint-import-resolver-typescript": "^3.5.5",
52
+ "eslint-plugin-deprecation": "^1.4.1",
53
+ "eslint-plugin-import": "^2.27.5",
49
54
  "eslint-plugin-node": "^11.1.0",
50
55
  "eslint-plugin-prettier": "^4.2.1",
51
56
  "eslint-plugin-react": "^7.32.2",
52
57
  "eslint-plugin-react-hooks": "^4.6.0",
53
- "prettier": "^2.8.5",
54
- "lint-staged": "~13.2.0",
55
- "typescript": "~5.0.2",
56
- "npm-check-updates": "~16.7.13"
58
+ "prettier": "^2.8.8",
59
+ "lint-staged": "~13.2.3",
60
+ "typescript": "~5.1.6",
61
+ "npm-check-updates": "~16.10.13"
57
62
  },
58
63
  "scripts": {
59
64
  "build": "",