Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lintest/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lintest/eslint-plugin - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

5

CHANGELOG.md
# Change Log
All notable version changes would be documented in this file.
## 0.4.0
> Minor version updated at 2022.05.11
- Chores: Update dependencies
- Performance Improvements: Clear logs before exit
## 0.3.1

@@ -5,0 +10,0 @@ > Patch version updated at 2021.05.07

2

dist/report.js

@@ -1,1 +0,1 @@

"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.printStats=void 0;var e=t(require("path")),r=require("@mornya/cli-libs"),n=require("./updateLogger"),o=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"],i=[],a={display:"all",progressInterval:1e3,reportMaxFiles:20,reportLimitDuration:200},l=!1,s=0,p=0,u=0;function printStats(){var t=Date.now();p+=i.length?t-i[i.length-1].start:0,r.Log.info("Total "+r.chalk.magenta(i.length)+" files linted in "+r.chalk.magenta((p/1e3).toFixed(1))+" sec."),r.Log.linefeed();var e=i.filter(function(t){return t.duration>a.reportLimitDuration}).sort(function(t,e){return e.duration-t.duration}).slice(0,a.reportMaxFiles);e.length&&(r.Log.info("Slowest top "+e.length+" file"+(e.length>1?"s":"")+" over "+a.reportLimitDuration+" ms:"),r.Log.linefeed(),e.forEach(function(t,e){var n=String(a.reportMaxFiles).length,o=String(e+1).padStart(n," ")+".";r.Log.out(" "+r.chalk.gray(o)+" "+t.name+" ("+r.chalk.magenta(t.duration)+" ms)")}),r.Log.linefeed())}exports.printStats=printStats,exports.default={create:function(t){var g,c,d,f;if(!t)return{};l||(t.options[0]&&(a.display=null!==(g=t.options[0])&&void 0!==g?g:"all"),t.options[1]&&(a.reportMaxFiles=Number(null!==(c=t.options[1])&&void 0!==c?c:10)),t.options[2]&&(a.reportLimitDuration=Number(null!==(d=t.options[2])&&void 0!==d?d:300)),t.options[3]&&(a.progressInterval=Number(null!==(f=t.options[3])&&void 0!==f?f:1e3)),n.startLog(),l=!0,["unhandledRejection","SIGINT","SIGTERM"].forEach(function(t){process.on(t,function(){n.endLog(),process.exit(0)})}),process.on("beforeExit",function(){n.updateLog([" "+r.chalk.gray("Finished lint process.")]),n.endLog(),"progress"!==a.display&&printStats()}));var h=Date.now(),m=t.getFilename().replace(process.cwd()+e.default.sep,"");if("report"!==a.display&&(h>s+a.progressInterval||!s)&&(s=h,++u>o.length-1&&(u=0),i.length?n.updateLog([" "+r.chalk.magenta(o[u])+" Linted "+i.length+" files (+"+(p/1e3).toFixed(1)+" sec)..."].concat(i.filter(function(t,e){return e>=i.length-5}).map(function(t){return" "+r.chalk.magenta("›")+" "+r.chalk.gray(t.name)+" ..."}))):n.updateLog([" "+r.chalk.gray("Preparing...")])),i.length){var v=i[i.length-1],L=h-v.start;v.duration=L,p+=L}return i.push({name:m,start:h,duration:0}),{}}};
"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.printStats=void 0;var e=t(require("path")),n=require("@mornya/cli-libs"),o=require("./updateLogger"),r=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"],a=[],i={display:"all",progressInterval:1e3,reportMaxFiles:20,reportLimitDuration:200},l=!1,c=0,s=0,u=0;function printStats(){var t=Date.now();s+=a.length?t-a[a.length-1].start:0,n.Log.info("Total ".concat(n.chalk.magenta(a.length)," files linted in ").concat(n.chalk.magenta((s/1e3).toFixed(1))," sec.")),n.Log.linefeed();var e=a.filter(function(t){return t.duration>i.reportLimitDuration}).sort(function(t,e){return e.duration-t.duration}).slice(0,i.reportMaxFiles);e.length&&(n.Log.info("Slowest top ".concat(e.length," file").concat(e.length>1?"s":""," over ").concat(i.reportLimitDuration," ms:")),n.Log.linefeed(),e.forEach(function(t,e){var o=String(i.reportMaxFiles).length,r=String(e+1).padStart(o," ")+".";n.Log.out(" ".concat(n.chalk.gray(r)," ").concat(t.name," (").concat(n.chalk.magenta(t.duration)," ms)"))}),n.Log.linefeed())}exports.printStats=printStats,exports.default={create:function(t){var p,g,d,f;if(!t)return{};l||(t.options[0]&&(i.display=null!==(p=t.options[0])&&void 0!==p?p:"all"),t.options[1]&&(i.reportMaxFiles=Number(null!==(g=t.options[1])&&void 0!==g?g:10)),t.options[2]&&(i.reportLimitDuration=Number(null!==(d=t.options[2])&&void 0!==d?d:300)),t.options[3]&&(i.progressInterval=Number(null!==(f=t.options[3])&&void 0!==f?f:1e3)),(0,o.startLog)(),l=!0,["unhandledRejection","SIGINT","SIGTERM"].forEach(function(t){process.on(t,function(){(0,o.endLog)(),process.exit(0)})}),process.on("beforeExit",function(){(0,o.clearLog)(),(0,o.endLog)(),"progress"!==i.display&&printStats()}));var h=Date.now(),m=t.getFilename().replace(process.cwd()+e.default.sep,"");if("report"!==i.display&&(h>c+i.progressInterval||!c)&&(c=h,++u>r.length-1&&(u=0),a.length?(0,o.updateLog)([" ".concat(n.chalk.magenta(r[u])," Linted ").concat(a.length," files (+").concat((s/1e3).toFixed(1)," sec)...")].concat(a.filter(function(t,e){return e>=a.length-5}).map(function(t){return" ".concat(n.chalk.magenta("›")," ").concat(n.chalk.gray(t.name)," ...")}))):(0,o.updateLog)([" ".concat(n.chalk.gray("Preparing..."))])),a.length){var v=a[a.length-1],L=h-v.start;v.duration=L,s+=L}return a.push({name:m,start:h,duration:0}),{}}};

@@ -1,2 +0,1 @@

export declare let isLogEnded: boolean;
export declare function startLog(): void;

@@ -3,0 +2,0 @@ export declare function endLog(): void;

@@ -1,1 +0,1 @@

"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.clearLog=exports.updateLog=exports.endLog=exports.startLog=exports.isLogEnded=void 0;var o=e(require("log-update")),t=null;exports.isLogEnded=!0,exports.startLog=function startLog(){exports.isLogEnded=!1,t||(t=o.default.create(process.stdout,{showCursor:!1}))},exports.endLog=function endLog(){t&&(t.done(),t=null),exports.isLogEnded=!0},exports.updateLog=function updateLog(e,o){!exports.isLogEnded&&t&&t(e.join("\n"))},exports.clearLog=function clearLog(){t&&t.clear()};
"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.clearLog=exports.updateLog=exports.endLog=exports.startLog=void 0;var o=e(require("log-update")),t=!0,r=null;exports.startLog=function startLog(){t=!1,r||(r=o.default.create(process.stdout,{showCursor:!1}))},exports.endLog=function endLog(){r&&(r.done(),r=null),t=!0},exports.updateLog=function updateLog(e,o){!t&&r&&r(e.join("\n"))},exports.clearLog=function clearLog(){r&&r.clear()};
{
"name": "@lintest/eslint-plugin",
"version": "0.3.1",
"version": "0.4.0",
"description": "The ESLint plugin for Lintest.",

@@ -16,11 +16,12 @@ "keywords": [

],
"homepage": "",
"homepage": "https://github.com/lintest-cli/eslint-plugin",
"bugs": "https://github.com/lintest-cli/eslint-plugin/issues",
"license": "ISC",
"author": "mornya <mornya78@gmail.com>",
"private": false,
"repository": "https://bitbucket.org/mornya-web/lintest-eslint-plugin",
"bugs": "",
"repository": "https://github.com/lintest-cli/eslint-plugin.git",
"main": "./lib/index.js",
"types": "./dist",
"scripts": {
"setup": "husky install && lintest install || exit 0",
"prepublishOnly": "vessel prepublish",

@@ -30,4 +31,5 @@ "login": "vessel login",

"build": "vessel build",
"watch": "vessel build watch",
"watch": "vessel build --watch",
"check": "vessel check",
"init": "lintest uninstall && lintest export",
"lint": "lintest lint",

@@ -37,3 +39,4 @@ "lint:fix": "lintest lint --fix",

"test:watch": "lintest test --watch",
"test:coverage": "lintest test --coverage"
"test:coverage": "lintest test --coverage",
"sonar": "sonar-scanner"
},

@@ -56,19 +59,28 @@ "publishConfig": {

],
"type": "commonjs",
"engines": {
"node": ">=10",
"node": ">=14.18",
"npm": ">=6"
},
"dependencies": {
"@mornya/cli-libs": "^0.17.0",
"chalk": "^4.1.1",
"@mornya/cli-libs": "^0.19.2",
"chalk": "^4.1.2",
"log-update": "^4.0.0"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^15.0.2",
"@types/react": "^17.0.5",
"@types/react-dom": "^17.0.3",
"@types/webpack-env": "^1.16.0",
"eslint": "^7.25.0"
"@lintest/core": "^1.4.0",
"@types/jest": "^27.5.0",
"@types/node": "^17.0.32",
"@types/webpack-env": "^1.16.4",
"eslint": "^8.15.0",
"husky": "^8.0.1",
"lint-staged": "^12.4.1",
"typescript": "^4.6.4"
},
"lint-staged": {
"*.{ts,js}": [
"npm run check",
"npm run lint"
]
},
"vessel": {

@@ -75,0 +87,0 @@ "minVersion": "5.0.0"

@@ -1,2 +0,2 @@

# @lintest/eslint-plugin
# ESLint Plugin for Lintest CLI
![npm](https://img.shields.io/npm/v/@lintest/eslint-plugin)

@@ -24,3 +24,3 @@ ![node](https://img.shields.io/node/v/@lintest/eslint-plugin)

ESLint 플러그인 옵션은 아래와 같다.
```js
```json5
{

@@ -27,0 +27,0 @@ "@lintest/report": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc