@lntvow/eslint-plugin 10.2.0 → 10.3.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/dist/index.d.mts +6 -0
- package/dist/index.mjs +2 -2
- package/package.json +12 -8
- package/dist/index.cjs +0 -2
- package/dist/index.d.ts +0 -5
package/dist/index.d.mts
ADDED
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
`)}}))}return{CallExpression(e){if(e.callee.type
|
|
1
|
+
const e={meta:{name:`@lntvow/eslint-plugin`,version:`10.3.0`},rules:{"newline-before-specified-function-call":{meta:{type:`layout`,docs:{description:`Enforce newline before specified keywords`,recommended:!0,url:`https://eslint.org/docs/rules/newline-before`},fixable:`whitespace`,schema:[]},create(e){let{sourceCode:t}=e;function n(n){let r=t.getTokenBefore(n);r&&(r.type===`Punctuator`&&r.value===`{`||r&&r.loc.end.line===n.loc.start.line-1&&e.report({node:n,message:`Expected at least one empty line before function call.`,fix(e){return e.insertTextBefore(n,`
|
|
2
|
+
`)}}))}return{CallExpression(e){if(e.callee.type===`Identifier`){let t=e.callee.name;(t===`test`||t===`describe`)&&n(e)}}}}}},configs:{}};export{e as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-plugin",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "Custom ESLint plugin with additional rules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-plugin"
|
|
@@ -8,22 +8,23 @@
|
|
|
8
8
|
"homepage": "https://github.com/lntvow/eslint-config/tree/main/packages/eslint-plugin",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/lntvow/eslint-config.git",
|
|
11
|
+
"url": "git+https://github.com/lntvow/eslint-config.git",
|
|
12
12
|
"directory": "packages/eslint-plugin"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "lntvow",
|
|
16
|
+
"sideEffects": false,
|
|
16
17
|
"type": "module",
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
|
-
"types": "./dist/index.d.
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
20
21
|
"import": "./dist/index.mjs",
|
|
21
|
-
"require": "./dist/index.
|
|
22
|
+
"require": "./dist/index.mjs"
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
|
-
"main": "./dist/index.
|
|
25
|
+
"main": "./dist/index.mjs",
|
|
25
26
|
"module": "./dist/index.mjs",
|
|
26
|
-
"types": "./dist/index.d.
|
|
27
|
+
"types": "./dist/index.d.mts",
|
|
27
28
|
"files": [
|
|
28
29
|
"dist"
|
|
29
30
|
],
|
|
@@ -33,9 +34,12 @@
|
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"eslint": ">=9.0.0"
|
|
35
36
|
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=20.19.0"
|
|
39
|
+
},
|
|
36
40
|
"scripts": {
|
|
37
|
-
"dev": "
|
|
38
|
-
"build": "
|
|
41
|
+
"dev": "tsdown",
|
|
42
|
+
"build": "tsdown",
|
|
39
43
|
"clean": "cli clean ./node_modules/",
|
|
40
44
|
"tidy": "cli tidy",
|
|
41
45
|
"test": "mocha --import=tsx --watch"
|
package/dist/index.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=(n,t)=>{for(var s in t)o(n,s,{get:t[s],enumerable:!0})},g=(n,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of d(t))!f.call(n,e)&&e!==s&&o(n,e,{get:()=>t[e],enumerable:!(i=u(t,e))||i.enumerable});return n};var y=n=>g(o({},"__esModule",{value:!0}),n);var b={};m(b,{default:()=>h});module.exports=y(b);var r="@lntvow/eslint-plugin",c="10.2.0";var p={meta:{type:"layout",docs:{description:"Enforce newline before specified keywords",category:"Stylistic Issues",recommended:!0,url:"https://eslint.org/docs/rules/newline-before"},fixable:"whitespace",schema:[]},create(n){let{sourceCode:t}=n;function s(i){let e=t.getTokenBefore(i);e&&(e.type==="Punctuator"&&e.value==="{"||e&&e.loc.end.line===i.loc.start.line-1&&n.report({node:i,message:"Expected at least one empty line before function call.",fix(a){return a.insertTextBefore(i,`
|
|
2
|
-
`)}}))}return{CallExpression(i){if(i.callee.type==="Identifier"){let e=i.callee.name;(e==="test"||e==="describe")&&s(i)}}}}};var w={meta:{name:r,version:c},rules:{"newline-before-specified-function-call":p},configs:{}},h=w;
|