@lntvow/eslint-plugin 9.24.4 → 9.24.5

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.d.cts CHANGED
@@ -2,4 +2,4 @@ import { ESLint } from 'eslint';
2
2
 
3
3
  declare const plugin: ESLint.Plugin;
4
4
 
5
- export { plugin as default };
5
+ export = plugin;
package/dist/index.d.ts CHANGED
@@ -2,4 +2,4 @@ import { ESLint } from 'eslint';
2
2
 
3
3
  declare const plugin: ESLint.Plugin;
4
4
 
5
- export { plugin as default };
5
+ export = plugin;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { name, version } from './package.json.mjs';
1
+ import { version, name } from './package.json.mjs';
2
2
  import { newlineBeforeSpecifiedFunctionCall } from './src/rules/newline-before-specified-function-call.mjs';
3
3
 
4
4
  const plugin = {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@lntvow/eslint-plugin";
4
- const version = "9.24.4";
4
+ const version = "9.24.5";
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.24.4";
2
+ const version = "9.24.5";
3
3
 
4
4
  export { name, version };
@@ -16,8 +16,7 @@ const newlineBeforeSpecifiedFunctionCall = {
16
16
  const { sourceCode } = context;
17
17
  function checkNewLineBefore(node) {
18
18
  const tokenBefore = sourceCode.getTokenBefore(node);
19
- if (!tokenBefore)
20
- return;
19
+ if (!tokenBefore) return;
21
20
  if (tokenBefore.type === "Punctuator" && tokenBefore.value === "{") {
22
21
  return;
23
22
  }
@@ -14,8 +14,7 @@ const newlineBeforeSpecifiedFunctionCall = {
14
14
  const { sourceCode } = context;
15
15
  function checkNewLineBefore(node) {
16
16
  const tokenBefore = sourceCode.getTokenBefore(node);
17
- if (!tokenBefore)
18
- return;
17
+ if (!tokenBefore) return;
19
18
  if (tokenBefore.type === "Punctuator" && tokenBefore.value === "{") {
20
19
  return;
21
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-plugin",
3
- "version": "9.24.4",
3
+ "version": "9.24.5",
4
4
  "description": "eslint-plugin",
5
5
  "author": "lntvow",
6
6
  "license": "MIT",