@petbee/eslint-config 1.0.15 → 1.0.16

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/eslint.config.mjs +1 -0
  2. package/package.json +50 -2
package/eslint.config.mjs CHANGED
@@ -18,6 +18,7 @@ const ensureArray = (config) => {
18
18
  if (Array.isArray(config)) return config
19
19
  // If it's an object with rules, convert to a config object
20
20
  if (config.rules || config.extends || config.plugins) return [config]
21
+
21
22
  return []
22
23
  }
23
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petbee/eslint-config",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Petbee's eslint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -16,5 +16,53 @@
16
16
  },
17
17
  "./legacy": "./index.js"
18
18
  },
19
- "gitHead": "49aa2f61479d9bdebb6e702856bc79e5f579393f"
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/petbee/typescript.git",
22
+ "directory": "packages/eslint-config"
23
+ },
24
+ "scripts": {
25
+ "eslint-check": "eslint-config-prettier index.js",
26
+ "dump-config": "eslint-config-prettier index.js > config-dump.json",
27
+ "format": "prettier --ignore-path='.gitignore' --list-different --write .",
28
+ "format:check": "prettier --ignore-path='.gitignore' --check .",
29
+ "lint": "eslint --ignore-path='.gitignore' '{src,tests}/**/*.{ts,tsx}'"
30
+ },
31
+ "eslintConfig": {
32
+ "extends": [
33
+ "petbee"
34
+ ]
35
+ },
36
+ "prettier": "@petbee/prettier-config",
37
+ "bugs": {
38
+ "url": "https://github.com/petbee/typescript/issues"
39
+ },
40
+ "dependencies": {
41
+ "@typescript-eslint/eslint-plugin": "^5.15.0",
42
+ "@typescript-eslint/parser": "^5.15.0",
43
+ "confusing-browser-globals": "^1.0.11",
44
+ "eslint-config-prettier": "^9.0.0",
45
+ "eslint-plugin-cypress": "^2.15.1",
46
+ "eslint-plugin-import": "^2.29.0",
47
+ "eslint-plugin-jest": "^27.6.0",
48
+ "eslint-plugin-node": "^11.1.0",
49
+ "eslint-plugin-prettier": "^5.0.1",
50
+ "eslint-plugin-react": "7.33.2"
51
+ },
52
+ "peerDependencies": {
53
+ "eslint": ">=5.0.0",
54
+ "prettier": ">=2.4",
55
+ "typescript": "^4.0.0 || ^5.0.0"
56
+ },
57
+ "devDependencies": {
58
+ "@types/react": "18.2.37",
59
+ "eslint": "8.53.0",
60
+ "prettier": "3.0.3",
61
+ "react": "18.2.0",
62
+ "typescript": "5.2.2"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "gitHead": "c93961f575f961f43e9995e3b9d6b8bbddb5e0a6"
20
68
  }