@asd14/eslint-config 7.1.0 → 7.4.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
@@ -68,12 +68,6 @@ Link ESLint to `node` target.
68
68
 
69
69
  ### Node.js with Typescript
70
70
 
71
- Install additional packages:
72
-
73
- ```bash
74
- npm install -D @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript
75
- ```
76
-
77
71
  Link ESLint to `node-ts` target.
78
72
 
79
73
  ```javascript
@@ -87,12 +81,6 @@ Link ESLint to `node-ts` target.
87
81
 
88
82
  ### React
89
83
 
90
- Install additional packages:
91
-
92
- ```bash
93
- npm install -D eslint-plugin-html eslint-plugin-react eslint-plugin-react-hooks
94
- ```
95
-
96
84
  Link ESLint to `react` target.
97
85
 
98
86
  ```javascript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asd14/eslint-config",
3
- "version": "7.1.0",
3
+ "version": "7.4.0",
4
4
  "description": "JavaScript ESLint rules",
5
5
  "homepage": "https://github.com/asd-xiv/eslint-config",
6
6
  "main": "targets/node.js",
@@ -43,39 +43,41 @@
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
- "devDependencies": {
54
- "@commitlint/cli": "^16.2.3",
55
- "@commitlint/config-conventional": "^16.2.1",
56
- "@semantic-release/changelog": "^6.0.1",
57
- "@semantic-release/git": "^10.0.1",
58
- "@typescript-eslint/eslint-plugin": "^5.19.0",
59
- "@typescript-eslint/parser": "^5.19.0",
53
+ "dependencies": {
54
+ "@typescript-eslint/eslint-plugin": "^5.27.0",
55
+ "@typescript-eslint/parser": "^5.27.0",
60
56
  "eslint-config-prettier": "^8.5.0",
61
57
  "eslint-plugin-import": "^2.26.0",
62
- "eslint-plugin-jsdoc": "^39.2.2",
58
+ "eslint-plugin-jsdoc": "^39.3.2",
63
59
  "eslint-plugin-json": "^3.1.0",
64
60
  "eslint-plugin-no-inferred-method-name": "^2.0.0",
65
61
  "eslint-plugin-prettier": "^4.0.0",
66
62
  "eslint-plugin-promise": "^6.0.0",
67
63
  "eslint-plugin-unicorn": "^42.0.0",
68
64
  "eslint-plugin-html": "^6.2.0",
69
- "eslint-plugin-react": "^7.29.4",
70
- "eslint-plugin-react-hooks": "^4.4.0",
71
- "lint-staged": "^12.3.8",
72
- "npm-check-updates": "^12.5.9",
65
+ "eslint-plugin-react": "^7.30.0",
66
+ "eslint-plugin-react-hooks": "^4.5.0"
67
+ },
68
+ "devDependencies": {
69
+ "@commitlint/cli": "^17.0.2",
70
+ "@commitlint/config-conventional": "^17.0.2",
71
+ "@semantic-release/changelog": "^6.0.1",
72
+ "@semantic-release/git": "^10.0.1",
73
+ "lint-staged": "^13.0.0",
74
+ "npm-check-updates": "^13.1.1",
73
75
  "markdownlint-cli": "^0.31.1",
74
76
  "semantic-release": "^19.0.2"
75
77
  },
76
78
  "peerDependencies": {
77
- "eslint": "^8.13.0",
78
- "prettier": "^2.6.0"
79
+ "eslint": "^8.17.0",
80
+ "prettier": "^2.6.2"
79
81
  },
80
82
  "engines": {
81
83
  "node": ">=14.0.0"
@@ -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
+ }
@@ -9,6 +9,7 @@ module.exports = {
9
9
  },
10
10
 
11
11
  env: {
12
+ node: true,
12
13
  es6: true,
13
14
  },
14
15