@asd14/eslint-config 7.0.1 → 7.3.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/README.md CHANGED
@@ -47,16 +47,8 @@ packages needed.
47
47
  It should be something like:
48
48
 
49
49
  ```javascript
50
- "eslint": "^8.8.0",
51
- "eslint-config-prettier": "^8.3.0",
52
- "eslint-plugin-import": "^2.25.4",
53
- "eslint-plugin-jsdoc": "^37.7.0",
54
- "eslint-plugin-json": "^3.1.0",
55
- "eslint-plugin-no-inferred-method-name": "^2.0.0",
56
- "eslint-plugin-prettier": "^4.0.0",
57
- "eslint-plugin-promise": "^6.0.0",
58
- "eslint-plugin-unicorn": "^40.1.0",
59
- "prettier": "^2.5.1"
50
+ "eslint": "^8.13.0",
51
+ "prettier": "^2.6.0"
60
52
  ```
61
53
 
62
54
  Add these packages to your `devDependencies` in `package.json`.
@@ -76,12 +68,6 @@ Link ESLint to `node` target.
76
68
 
77
69
  ### Node.js with Typescript
78
70
 
79
- Install additional packages:
80
-
81
- ```bash
82
- npm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript
83
- ```
84
-
85
71
  Link ESLint to `node-ts` target.
86
72
 
87
73
  ```javascript
@@ -95,12 +81,6 @@ Link ESLint to `node-ts` target.
95
81
 
96
82
  ### React
97
83
 
98
- Install additional packages:
99
-
100
- ```bash
101
- npm install -D eslint-plugin-html eslint-plugin-react eslint-plugin-react-hooks
102
- ```
103
-
104
84
  Link ESLint to `react` target.
105
85
 
106
86
  ```javascript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asd14/eslint-config",
3
- "version": "7.0.1",
3
+ "version": "7.3.0",
4
4
  "description": "JavaScript ESLint rules",
5
5
  "homepage": "https://github.com/asd-xiv/eslint-config",
6
6
  "main": "targets/node.js",
@@ -43,42 +43,43 @@
43
43
  "lint.md": "markdownlint '*.md' --ignore CHANGELOG.md",
44
44
  "lint": "npm run lint.js && npm run lint.md",
45
45
  "----PUBLISH": "",
46
- "publish": "semantic-release"
46
+ "release": "semantic-release"
47
47
  },
48
48
  "lint-staged": {
49
49
  "*.{js,json}": "eslint --quiet",
50
50
  "*.md": "markdownlint --ignore CHANGELOG.md",
51
51
  ".circleci/config.yml": "circleci config validate"
52
52
  },
53
+ "dependencies": {
54
+ "@typescript-eslint/eslint-plugin": "^5.19.0",
55
+ "@typescript-eslint/parser": "^5.19.0",
56
+ "eslint-config-prettier": "^8.5.0",
57
+ "eslint-plugin-import": "^2.26.0",
58
+ "eslint-plugin-jsdoc": "^39.2.2",
59
+ "eslint-plugin-json": "^3.1.0",
60
+ "eslint-plugin-no-inferred-method-name": "^2.0.0",
61
+ "eslint-plugin-prettier": "^4.0.0",
62
+ "eslint-plugin-promise": "^6.0.0",
63
+ "eslint-plugin-unicorn": "^42.0.0",
64
+ "eslint-plugin-html": "^6.2.0",
65
+ "eslint-plugin-react": "^7.29.4",
66
+ "eslint-plugin-react-hooks": "^4.4.0"
67
+ },
53
68
  "devDependencies": {
54
69
  "@commitlint/cli": "^16.2.3",
55
70
  "@commitlint/config-conventional": "^16.2.1",
56
71
  "@semantic-release/changelog": "^6.0.1",
57
72
  "@semantic-release/git": "^10.0.1",
58
- "@typescript-eslint/eslint-plugin": "^5.19.0",
59
- "@typescript-eslint/parser": "^5.19.0",
60
- "eslint-plugin-html": "^6.2.0",
61
- "eslint-plugin-react": "^7.29.4",
62
- "eslint-plugin-react-hooks": "^4.4.0",
63
73
  "lint-staged": "^12.3.8",
64
74
  "npm-check-updates": "^12.5.9",
65
75
  "markdownlint-cli": "^0.31.1",
66
76
  "semantic-release": "^19.0.2"
67
77
  },
68
78
  "peerDependencies": {
69
- "eslint": "~8.13.0",
70
- "eslint-config-prettier": "~8.5.0",
71
- "eslint-plugin-import": "~2.26.0",
72
- "eslint-plugin-jsdoc": "~39.2.0",
73
- "eslint-plugin-json": "~3.1.0",
74
- "eslint-plugin-no-inferred-method-name": "~2.0.0",
75
- "eslint-plugin-prettier": "~4.0.0",
76
- "eslint-plugin-promise": "~6.0.0",
77
- "eslint-plugin-unicorn": "~42.0.0",
78
- "prettier": "~2.6.0"
79
+ "eslint": "^8.13.0",
80
+ "prettier": "^2.6.0"
79
81
  },
80
82
  "engines": {
81
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0",
82
- "npm": ">=8"
83
+ "node": ">=14.0.0"
83
84
  }
84
85
  }
@@ -0,0 +1,33 @@
1
+ /* eslint-env node */
2
+
3
+ module.exports = {
4
+ parserOptions: {
5
+ ecmaVersion: 2021,
6
+ sourceType: "module",
7
+ },
8
+
9
+ env: {
10
+ node: true,
11
+ },
12
+
13
+ extends: [
14
+ ...[
15
+ "../rules/json",
16
+ "../rules/best.practices",
17
+ "../rules/comments",
18
+ "../rules/errors",
19
+ "../rules/es6",
20
+ "../rules/jsdoc",
21
+ "../rules/node",
22
+ "../rules/promise",
23
+ "../rules/style",
24
+ "../rules/unicorn",
25
+ "../rules/variables",
26
+ "../rules/prettier",
27
+ ].map(require.resolve),
28
+ ],
29
+
30
+ plugins: ["no-inferred-method-name"],
31
+
32
+ settings: {},
33
+ }