@lntvow/eslint-plugin 9.23.0 → 9.23.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.
package/dist/index.cjs CHANGED
@@ -1,16 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  const _package = require('./package.json.cjs');
4
- const newlineBeforeDescribeTest = require('./src/rules/newline-before-describe-test.cjs');
4
+ const newlineBeforeSpecifiedFunctionCall = require('./src/rules/newline-before-specified-function-call.cjs');
5
5
 
6
6
  const plugin = {
7
- meta: {
8
- name: _package.name,
9
- version: _package.version
10
- },
7
+ meta: { name: _package.name, version: _package.version },
11
8
  rules: {
12
- "newline-before-describe-test": newlineBeforeDescribeTest.newlineBeforeDescribeTest
13
- }
9
+ "newline-before-specified-function-call": newlineBeforeSpecifiedFunctionCall.newlineBeforeSpecifiedFunctionCall
10
+ },
11
+ configs: {}
14
12
  };
15
13
 
16
14
  module.exports = plugin;
package/dist/index.mjs CHANGED
@@ -1,14 +1,12 @@
1
1
  import { name, version } from './package.json.mjs';
2
- import { newlineBeforeDescribeTest } from './src/rules/newline-before-describe-test.mjs';
2
+ import { newlineBeforeSpecifiedFunctionCall } from './src/rules/newline-before-specified-function-call.mjs';
3
3
 
4
4
  const plugin = {
5
- meta: {
6
- name,
7
- version
8
- },
5
+ meta: { name, version },
9
6
  rules: {
10
- "newline-before-describe-test": newlineBeforeDescribeTest
11
- }
7
+ "newline-before-specified-function-call": newlineBeforeSpecifiedFunctionCall
8
+ },
9
+ configs: {}
12
10
  };
13
11
 
14
12
  export { plugin as default };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@lntvow/eslint-plugin";
4
- const version = "9.23.0";
4
+ const version = "9.23.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.23.0";
2
+ const version = "9.23.2";
3
3
 
4
4
  export { name, version };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const newlineBeforeDescribeTest = {
3
+ const newlineBeforeSpecifiedFunctionCall = {
4
4
  meta: {
5
5
  type: "layout",
6
6
  docs: {
@@ -33,7 +33,6 @@ const newlineBeforeDescribeTest = {
33
33
  }
34
34
  return {
35
35
  CallExpression(node) {
36
- console.log("node: ", node);
37
36
  if (node.callee.type === "Identifier") {
38
37
  const calleeName = node.callee.name;
39
38
  if (calleeName === "test" || calleeName === "describe") {
@@ -45,4 +44,4 @@ const newlineBeforeDescribeTest = {
45
44
  }
46
45
  };
47
46
 
48
- exports.newlineBeforeDescribeTest = newlineBeforeDescribeTest;
47
+ exports.newlineBeforeSpecifiedFunctionCall = newlineBeforeSpecifiedFunctionCall;
@@ -1,4 +1,4 @@
1
- const newlineBeforeDescribeTest = {
1
+ const newlineBeforeSpecifiedFunctionCall = {
2
2
  meta: {
3
3
  type: "layout",
4
4
  docs: {
@@ -31,7 +31,6 @@ const newlineBeforeDescribeTest = {
31
31
  }
32
32
  return {
33
33
  CallExpression(node) {
34
- console.log("node: ", node);
35
34
  if (node.callee.type === "Identifier") {
36
35
  const calleeName = node.callee.name;
37
36
  if (calleeName === "test" || calleeName === "describe") {
@@ -43,4 +42,4 @@ const newlineBeforeDescribeTest = {
43
42
  }
44
43
  };
45
44
 
46
- export { newlineBeforeDescribeTest };
45
+ export { newlineBeforeSpecifiedFunctionCall };
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-plugin",
3
- "version": "9.23.0",
3
+ "version": "9.23.2",
4
4
  "description": "eslint-plugin",
5
- "type": "module",
6
5
  "author": "lntvow",
7
6
  "license": "MIT",
8
7
  "keywords": [
@@ -12,6 +11,7 @@
12
11
  "files": [
13
12
  "dist"
14
13
  ],
14
+ "type": "module",
15
15
  "main": "dist/index.cjs",
16
16
  "module": "dist/index.mjs",
17
17
  "types": "dist/index.d.ts",
@@ -25,8 +25,13 @@
25
25
  "peerDependencies": {
26
26
  "eslint": ">=9.0.0"
27
27
  },
28
+ "devDependencies": {
29
+ "tsx": "^4.16.2"
30
+ },
28
31
  "scripts": {
32
+ "dev": "unbuild --stub",
29
33
  "build": "unbuild",
30
- "rimraf": "rimraf ./node_modules/"
34
+ "rimraf": "rimraf ./node_modules/",
35
+ "test": "mocha --import=tsx"
31
36
  }
32
37
  }