eslint-config-matsuri 1.4.2-alpha-59d7419.0 → 1.5.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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const rulesDirPlugin = require("eslint-plugin-rulesdir");
2
- rulesDirPlugin.RULES_DIR = "./rules";
2
+ rulesDirPlugin.RULES_DIR = __dirname + "/rules";
3
3
 
4
4
  /** @type {import('eslint').Linter.BaseConfig} */
5
5
  const config = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-matsuri",
3
- "version": "1.4.2-alpha-59d7419.0",
3
+ "version": "1.5.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -113,7 +113,7 @@ const rule = {
113
113
  create: (context) => {
114
114
  return {
115
115
  VariableDeclarator: (node) => {
116
- if (node.init.type === "ArrowFunctionExpression") {
116
+ if (node.init?.type === "ArrowFunctionExpression") {
117
117
  reportValidity(
118
118
  context,
119
119
  node,