@asd14/eslint-config 10.0.0 → 10.2.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/package.json +13 -13
- package/rules/import.js +14 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asd14/eslint-config",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "JavaScript ESLint rules",
|
|
5
5
|
"homepage": "https://github.com/asd-xiv/eslint-config",
|
|
6
6
|
"main": "targets/node.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"----UTIL": "",
|
|
36
36
|
"prepare": "git config --local core.hooksPath .githook",
|
|
37
|
-
"setup": "npm ci --
|
|
37
|
+
"setup": "npm ci --include=dev --cache .npm --prefer-offline --no-audit",
|
|
38
38
|
"update": "ncu --interactive",
|
|
39
39
|
"postupdate": "npm audit fix",
|
|
40
40
|
"format": "npm run lint.js -- --fix",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"release": "semantic-release"
|
|
47
47
|
},
|
|
48
48
|
"lint-staged": {
|
|
49
|
-
"*.
|
|
50
|
-
"*.
|
|
49
|
+
"*.js": "eslint --quiet",
|
|
50
|
+
"*.json": "prettier",
|
|
51
51
|
"*.md": "markdownlint --ignore CHANGELOG.md",
|
|
52
52
|
".circleci/config.yml": "circleci config validate"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
56
|
-
"@typescript-eslint/parser": "^5.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
56
|
+
"@typescript-eslint/parser": "^5.59.2",
|
|
57
57
|
"eslint-config-prettier": "^8.8.0",
|
|
58
58
|
"eslint-plugin-html": "^7.1.0",
|
|
59
59
|
"eslint-plugin-import": "^2.27.5",
|
|
60
|
-
"eslint-plugin-jsdoc": "^
|
|
60
|
+
"eslint-plugin-jsdoc": "^43.1.1",
|
|
61
61
|
"eslint-plugin-json": "^3.1.0",
|
|
62
62
|
"eslint-plugin-no-inferred-method-name": "^2.0.0",
|
|
63
63
|
"eslint-plugin-no-relative-import-paths": "^1.5.2",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"eslint-plugin-unicorn": "^46.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@commitlint/cli": "^17.
|
|
72
|
-
"@commitlint/config-conventional": "^17.
|
|
71
|
+
"@commitlint/cli": "^17.6.1",
|
|
72
|
+
"@commitlint/config-conventional": "^17.6.1",
|
|
73
73
|
"@semantic-release/changelog": "^6.0.3",
|
|
74
74
|
"@semantic-release/git": "^10.0.1",
|
|
75
|
-
"lint-staged": "^13.2.
|
|
76
|
-
"markdownlint-cli": "^0.
|
|
77
|
-
"npm-check-updates": "^16.9
|
|
78
|
-
"semantic-release": "^21.0.
|
|
75
|
+
"lint-staged": "^13.2.2",
|
|
76
|
+
"markdownlint-cli": "^0.34.0",
|
|
77
|
+
"npm-check-updates": "^16.10.9",
|
|
78
|
+
"semantic-release": "^21.0.2"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"eslint": "^8.37.0",
|
package/rules/import.js
CHANGED
|
@@ -2,9 +2,21 @@ module.exports = {
|
|
|
2
2
|
plugins: ["import", "no-relative-import-paths"],
|
|
3
3
|
extends: ["plugin:import/recommended"],
|
|
4
4
|
rules: {
|
|
5
|
-
"no-relative-import-paths/no-relative-import-paths":
|
|
5
|
+
"no-relative-import-paths/no-relative-import-paths": "off",
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Sort alphabetically, and enforce that all imports are at the top
|
|
9
|
+
* of the file.
|
|
10
|
+
*/
|
|
11
|
+
"import/order": [
|
|
6
12
|
"error",
|
|
7
|
-
{
|
|
13
|
+
{
|
|
14
|
+
"newlines-between": "always",
|
|
15
|
+
"alphabetize": {
|
|
16
|
+
order: "asc",
|
|
17
|
+
caseInsensitive: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
8
20
|
],
|
|
9
21
|
|
|
10
22
|
/*
|