@lntvow/eslint-plugin 9.20.5 → 9.21.2

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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@lntvow/eslint-plugin";
4
- const version = "9.20.5";
4
+ const version = "9.21.2";
5
5
 
6
6
  exports.name = name;
7
7
  exports.version = version;
@@ -1,4 +1,4 @@
1
1
  const name = "@lntvow/eslint-plugin";
2
- const version = "9.20.5";
2
+ const version = "9.21.2";
3
3
 
4
4
  export { name, version };
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('../utils/index.cjs');
4
-
5
- const newlineBeforeDescribeTest = index.createEslintRule({
3
+ const newlineBeforeDescribeTest = {
6
4
  meta: {
7
5
  type: "layout",
8
6
  docs: {
@@ -35,6 +33,7 @@ const newlineBeforeDescribeTest = index.createEslintRule({
35
33
  }
36
34
  return {
37
35
  CallExpression(node) {
36
+ console.log("node: ", node);
38
37
  if (node.callee.type === "Identifier") {
39
38
  const calleeName = node.callee.name;
40
39
  if (calleeName === "test" || calleeName === "describe") {
@@ -44,6 +43,6 @@ const newlineBeforeDescribeTest = index.createEslintRule({
44
43
  }
45
44
  };
46
45
  }
47
- });
46
+ };
48
47
 
49
48
  exports.newlineBeforeDescribeTest = newlineBeforeDescribeTest;
@@ -1,6 +1,4 @@
1
- import { createEslintRule } from '../utils/index.mjs';
2
-
3
- const newlineBeforeDescribeTest = createEslintRule({
1
+ const newlineBeforeDescribeTest = {
4
2
  meta: {
5
3
  type: "layout",
6
4
  docs: {
@@ -33,6 +31,7 @@ const newlineBeforeDescribeTest = createEslintRule({
33
31
  }
34
32
  return {
35
33
  CallExpression(node) {
34
+ console.log("node: ", node);
36
35
  if (node.callee.type === "Identifier") {
37
36
  const calleeName = node.callee.name;
38
37
  if (calleeName === "test" || calleeName === "describe") {
@@ -42,6 +41,6 @@ const newlineBeforeDescribeTest = createEslintRule({
42
41
  }
43
42
  };
44
43
  }
45
- });
44
+ };
46
45
 
47
46
  export { newlineBeforeDescribeTest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-plugin",
3
- "version": "9.20.5",
3
+ "version": "9.21.2",
4
4
  "description": "eslint-plugin",
5
5
  "type": "module",
6
6
  "author": "lntvow",
@@ -12,16 +12,9 @@
12
12
  "files": [
13
13
  "dist"
14
14
  ],
15
- "main": "./dist/index.cjs",
16
- "module": "./dist/index.mjs",
17
- "types": "./dist/index.d.ts",
18
- "exports": {
19
- ".": {
20
- "types": "./dist/index.d.ts",
21
- "import": "./dist/index.mjs",
22
- "require": "./dist/index.cjs"
23
- }
24
- },
15
+ "main": "dist/index.cjs",
16
+ "module": "dist/index.mjs",
17
+ "types": "dist/index.d.ts",
25
18
  "peerDependencies": {
26
19
  "eslint": ">=9.0.0"
27
20
  },
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- function createEslintRule(options) {
4
- return options;
5
- }
6
-
7
- exports.createEslintRule = createEslintRule;
@@ -1,5 +0,0 @@
1
- function createEslintRule(options) {
2
- return options;
3
- }
4
-
5
- export { createEslintRule };