@asd14/eslint-config 9.0.0 → 9.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.
Files changed (2) hide show
  1. package/package.json +9 -8
  2. package/rules/import.js +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asd14/eslint-config",
3
- "version": "9.0.0",
3
+ "version": "9.2.0",
4
4
  "description": "JavaScript ESLint rules",
5
5
  "homepage": "https://github.com/asd-xiv/eslint-config",
6
6
  "main": "targets/node.js",
@@ -51,28 +51,29 @@
51
51
  ".circleci/config.yml": "circleci config validate"
52
52
  },
53
53
  "dependencies": {
54
- "@typescript-eslint/eslint-plugin": "^5.50.0",
55
- "@typescript-eslint/parser": "^5.50.0",
54
+ "@typescript-eslint/eslint-plugin": "^5.51.0",
55
+ "@typescript-eslint/parser": "^5.51.0",
56
56
  "eslint-config-prettier": "^8.6.0",
57
+ "eslint-plugin-html": "^7.1.0",
57
58
  "eslint-plugin-import": "^2.27.5",
58
59
  "eslint-plugin-jsdoc": "^39.8.0",
59
60
  "eslint-plugin-json": "^3.1.0",
60
61
  "eslint-plugin-no-inferred-method-name": "^2.0.0",
62
+ "eslint-plugin-no-relative-import-paths": "^1.5.2",
61
63
  "eslint-plugin-prettier": "^4.2.1",
62
64
  "eslint-plugin-promise": "^6.1.1",
63
- "eslint-plugin-unicorn": "^45.0.2",
64
- "eslint-plugin-html": "^7.1.0",
65
65
  "eslint-plugin-react": "^7.32.2",
66
- "eslint-plugin-react-hooks": "^4.6.0"
66
+ "eslint-plugin-react-hooks": "^4.6.0",
67
+ "eslint-plugin-unicorn": "^45.0.2"
67
68
  },
68
69
  "devDependencies": {
69
70
  "@commitlint/cli": "^17.4.2",
70
71
  "@commitlint/config-conventional": "^17.4.2",
71
72
  "@semantic-release/changelog": "^6.0.2",
72
73
  "@semantic-release/git": "^10.0.1",
73
- "lint-staged": "^13.1.0",
74
- "npm-check-updates": "^16.6.3",
74
+ "lint-staged": "^13.1.1",
75
75
  "markdownlint-cli": "^0.33.0",
76
+ "npm-check-updates": "^16.7.4",
76
77
  "semantic-release": "^20.1.0"
77
78
  },
78
79
  "peerDependencies": {
package/rules/import.js CHANGED
@@ -1,11 +1,14 @@
1
1
  /* eslint-env node */
2
2
 
3
3
  module.exports = {
4
- plugins: ["import"],
5
-
4
+ plugins: ["import", "no-relative-import-paths"],
6
5
  extends: ["plugin:import/recommended"],
7
-
8
6
  rules: {
7
+ "no-relative-import-paths/no-relative-import-paths": [
8
+ "error",
9
+ { allowSameFolder: true },
10
+ ],
11
+
9
12
  /*
10
13
  * If a default import is requested, this rule will report if there is
11
14
  * no default export in the imported module.