@sj_lk/eslint-plugin-sj-plugin 0.0.2 → 0.0.4

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/lib/index.js +9 -4
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /**
2
3
  * @fileoverview test plugin for project
3
4
  * @author SJ
@@ -8,15 +9,19 @@
8
9
  // Requirements
9
10
  //------------------------------------------------------------------------------
10
11
 
11
- const requireIndex = require("requireindex");
12
+ const pathChecker = require("./rules/path-checker")
12
13
 
13
14
  //------------------------------------------------------------------------------
14
15
  // Plugin Definition
16
+ const plugin = {
17
+ rules: {
18
+ "path-checker": pathChecker,
19
+ },
20
+ };
15
21
  //------------------------------------------------------------------------------
16
22
 
17
23
 
18
24
  // import all rules in lib/rules
19
- module.exports.rules = requireIndex(__dirname + "/rules");
20
-
21
-
22
25
 
26
+ module.exports = plugin
27
+ module.exports.default = plugin
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sj_lk/eslint-plugin-sj-plugin",
3
- "version": "0.0.2",
4
- "description": "fix eslint.config file",
3
+ "version": "0.0.4",
4
+ "description": "fix index.js file",
5
5
  "keywords": [
6
6
  "eslint",
7
7
  "eslintplugin",