@mlaursen/eslint-config 2.5.0 → 4.0.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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. package/package.json +12 -11
package/index.js CHANGED
@@ -66,6 +66,11 @@ module.exports = {
66
66
  files: ["**/*.ts", "**/*.tsx"],
67
67
  extends: ["plugin:@typescript-eslint/recommended"],
68
68
  rules: {
69
+ "@typescript-eslint/consistent-type-imports": [
70
+ "error",
71
+ { fixStyle: "inline-type-imports" },
72
+ ],
73
+
69
74
  // I want correct tsdoc syntax
70
75
  "tsdoc/syntax": "warn",
71
76
 
@@ -154,7 +159,7 @@ module.exports = {
154
159
  },
155
160
  {
156
161
  files: ["**/__tests__/**", "**/*.test.*"],
157
- extends: ["plugin:jest/recommended"],
162
+ extends: ["plugin:jest/recommended", "plugin:testing-library/react"],
158
163
  rules: {
159
164
  // it's valid to do @jest-environment or other things in tests
160
165
  "tsdoc/syntax": 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlaursen/eslint-config",
3
- "version": "2.5.0",
3
+ "version": "4.0.0",
4
4
  "description": "An eslint config used by mlaursen for most projects.",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/mlaursen/eslint-config.git",
@@ -22,25 +22,26 @@
22
22
  "typescript"
23
23
  ],
24
24
  "dependencies": {
25
- "@typescript-eslint/eslint-plugin": "^6.7.0",
26
- "@typescript-eslint/parser": "^6.7.0",
25
+ "@typescript-eslint/eslint-plugin": "^6.9.1",
26
+ "@typescript-eslint/parser": "^6.9.1",
27
27
  "confusing-browser-globals": "^1.0.11",
28
28
  "eslint-config-prettier": "^9.0.0",
29
- "eslint-plugin-import": "^2.28.1",
30
- "eslint-plugin-jest": "^27.2.3",
31
- "eslint-plugin-jsx-a11y": "^6.7.1",
29
+ "eslint-plugin-import": "^2.29.0",
30
+ "eslint-plugin-jest": "^27.6.0",
31
+ "eslint-plugin-jsx-a11y": "^6.8.0",
32
32
  "eslint-plugin-react": "^7.33.2",
33
33
  "eslint-plugin-react-hooks": "^4.6.0",
34
+ "eslint-plugin-testing-library": "^6.1.0",
34
35
  "eslint-plugin-tsdoc": "^0.2.17"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@mlaursen/changelog-preset": "^1.1.0",
38
- "@octokit/core": "^5.0.0",
39
- "@swc/core": "^1.3.67",
40
- "@types/inquirer": "^9.0.3",
41
- "@types/node": "^20.6.0",
39
+ "@octokit/core": "^5.0.1",
40
+ "@swc/core": "^1.3.95",
41
+ "@types/inquirer": "^9.0.6",
42
+ "@types/node": "^20.8.10",
42
43
  "dotenv": "^16.3.1",
43
- "eslint": "^8.49.0",
44
+ "eslint": "^8.52.0",
44
45
  "inquirer": "^8.2.4",
45
46
  "standard-version": "^9.5.0",
46
47
  "ts-node": "^10.9.1",