Socket
Socket
Sign inDemoInstall

lint-staged

Package Overview
Dependencies
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lint-staged - npm Package Compare versions

Comparing version 14.0.1 to 15.0.2

7

bin/lint-staged.js

@@ -18,2 +18,4 @@ #!/usr/bin/env node

const debugLog = debug('lint-staged:bin')
// Do not terminate main Listr process on SIGINT

@@ -25,5 +27,2 @@ process.on('SIGINT', () => {})

const debugLog = debug('lint-staged:bin')
debugLog('Running `lint-staged@%s`', version)
const cli = program.version(version)

@@ -95,2 +94,4 @@

debugLog('Running `lint-staged@%s` on Node.js %s (%s)', version, process.version, process.platform)
const options = {

@@ -97,0 +98,0 @@ allowEmpty: !!cliOptions.allowEmpty,

@@ -27,4 +27,6 @@ import debug from 'debug'

const isFn = typeof cmd === 'function'
const resolved = isFn ? await cmd(files) : cmd
/** Pass copy of file list to prevent mutation by function from config file. */
const resolved = isFn ? await cmd([...files]) : cmd
const resolvedArray = Array.isArray(resolved) ? resolved : [resolved] // Wrap non-array command as array

@@ -31,0 +33,0 @@

@@ -286,3 +286,3 @@ /** @typedef {import('./index').Logger} Logger */

{
title: `Running tasks for staged files...`,
title: `Running tasks for ${diff ? 'changed' : 'staged'} files...`,
task: (ctx, task) => task.newListr(listrTasks, { concurrent }),

@@ -289,0 +289,0 @@ skip: () => listrTasks.every((task) => task.skip()),

{
"name": "lint-staged",
"version": "14.0.1",
"version": "15.0.2",
"description": "Lint files staged by git",

@@ -17,3 +17,3 @@ "license": "MIT",

"engines": {
"node": "^16.14.0 || >=18.0.0"
"node": ">=18.12.0"
},

@@ -34,33 +34,40 @@ "type": "module",

"test": "jest --coverage",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"version": "npx changeset version",
"postversion": "npm i --package-lock-only && git commit -am \"chore(changeset): release\"",
"tag": "npx changeset tag"
},
"dependencies": {
"chalk": "5.3.0",
"commander": "11.0.0",
"commander": "11.1.0",
"debug": "4.3.4",
"execa": "7.2.0",
"execa": "8.0.1",
"lilconfig": "2.1.0",
"listr2": "6.6.1",
"listr2": "7.0.2",
"micromatch": "4.0.5",
"pidtree": "0.6.0",
"string-argv": "0.3.2",
"yaml": "2.3.1"
"yaml": "2.3.3"
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/eslint-parser": "7.22.10",
"@babel/preset-env": "7.22.10",
"babel-jest": "29.6.2",
"@babel/core": "7.23.2",
"@babel/eslint-parser": "7.22.15",
"@babel/preset-env": "7.23.2",
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.2",
"@commitlint/cli": "17.8.0",
"@commitlint/config-conventional": "17.8.0",
"babel-jest": "29.7.0",
"babel-plugin-transform-imports": "2.0.0",
"consolemock": "1.1.0",
"eslint": "8.46.0",
"eslint": "8.51.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-prettier": "5.0.1",
"husky": "8.0.3",
"jest": "29.6.2",
"jest": "29.7.0",
"jest-snapshot-serializer-ansi": "2.1.0",
"mock-stdin": "1.0.0",
"prettier": "3.0.1"
"prettier": "3.0.3"
},

@@ -67,0 +74,0 @@ "keywords": [

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

# 🚫💩 lint-staged ![GitHub Actions](https://github.com/okonet/lint-staged/workflows/CI/badge.svg) [![npm version](https://badge.fury.io/js/lint-staged.svg)](https://badge.fury.io/js/lint-staged) [![Codecov](https://codecov.io/gh/okonet/lint-staged/branch/master/graph/badge.svg)](https://codecov.io/gh/okonet/lint-staged)
# 🚫💩 lint-staged [![Test & Release](https://github.com/okonet/lint-staged/actions/workflows/push.yml/badge.svg)](https://github.com/okonet/lint-staged/actions/workflows/push.yml) [![Publish](https://github.com/okonet/lint-staged/actions/workflows/tag.yml/badge.svg)](https://github.com/okonet/lint-staged/actions/workflows/tag.yml) [![npm version](https://badge.fury.io/js/lint-staged.svg)](https://badge.fury.io/js/lint-staged) [![Codecov](https://codecov.io/gh/okonet/lint-staged/branch/master/graph/badge.svg)](https://codecov.io/gh/okonet/lint-staged)

@@ -909,2 +909,19 @@ Run linters against staged git files and don't let :poop: slip into your code base!

#### ESLint >= 8.51.0 && [Flat ESLint config](https://eslint.org/docs/latest/use/configure/configuration-files-new)
<details>
<summary>Click to expand</summary>
ESLint v8.51.0 introduced [`--no-warn-ignored` CLI flag](https://eslint.org/docs/latest/use/command-line-interface#--no-warn-ignored). It suppresses the `warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override` warning, so manually ignoring files via `eslint.isPathIgnored` is no longer necessary.
```json
{
"*.js": "eslint --max-warnings=0 --no-warn-ignored"
}
```
**NOTE:** `--no-warn-ignored` flag is only available when [Flat ESLint config](https://eslint.org/docs/latest/use/configure/configuration-files-new) is used.
</details>
</details>
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