Socket
Socket
Sign inDemoInstall

@rollup/plugin-eslint

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-eslint - npm Package Compare versions

Comparing version 8.0.2 to 8.0.3

dist/cjs/index.js

48

package.json
{
"name": "@rollup/plugin-eslint",
"version": "8.0.2",
"version": "8.0.3",
"publishConfig": {

@@ -16,6 +16,11 @@ "access": "public"

"bugs": "https://github.com/rollup/plugins/issues",
"main": "dist/index.js",
"module": "dist/index.es.js",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"exports": {
"import": "./dist/es/index.js",
"types": "./types/index.d.ts",
"default": "./dist/cjs/index.js"
},
"engines": {
"node": ">= 10.0.0"
"node": ">=14.0.0"
},

@@ -32,3 +37,3 @@ "scripts": {

"pretest": "pnpm build",
"release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name",
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name",
"test": "ava",

@@ -39,2 +44,3 @@ "test:ts": "tsc --noEmit"

"dist",
"!dist/**/*.map",
"types",

@@ -54,26 +60,22 @@ "README.md",

"peerDependencies": {
"rollup": "^1.20.0||^2.0.0"
"rollup": "^1.20.0||^2.0.0||^3.0.0"
},
"peerDependenciesMeta": {
"rollup": {
"optional": true
}
},
"dependencies": {
"@rollup/pluginutils": "^4.0.0",
"eslint": "^7.12.0"
"@rollup/pluginutils": "^4.2.1",
"eslint": "^8.24.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-typescript": "^6.0.0",
"@types/eslint": "^7.2.2",
"rollup": "^2.67.3",
"typescript": "^4.1.2"
"@rollup/plugin-node-resolve": "^14.1.0",
"@rollup/plugin-typescript": "^8.5.0",
"@types/eslint": "^8.4.6",
"rollup": "^3.0.0-7",
"typescript": "^4.8.3"
},
"types": "types/index.d.ts",
"types": "./types/index.d.ts",
"ava": {
"babel": {
"compileEnhancements": false
},
"extensions": [
"ts"
],
"require": [
"ts-node/register"
],
"files": [

@@ -80,0 +82,0 @@ "!**/fixtures/**",

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

[npm]: https://img.shields.io/npm/v/@rollup/plugin-alias
[npm-url]: https://www.npmjs.com/package/@rollup/plugin-alias
[size]: https://packagephobia.now.sh/badge?p=@rollup/plugin-alias
[size-url]: https://packagephobia.now.sh/result?p=@rollup/plugin-alias
[npm]: https://img.shields.io/npm/v/@rollup/plugin-eslint
[npm-url]: https://www.npmjs.com/package/@rollup/plugin-eslint
[size]: https://packagephobia.now.sh/badge?p=@rollup/plugin-eslint
[size-url]: https://packagephobia.now.sh/result?p=@rollup/plugin-eslint

@@ -14,2 +14,6 @@ [![npm][npm]][npm-url]

## Requirements
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v1.20.0+.
## Install

@@ -42,14 +46,14 @@

See more options here [eslint-config](http://eslint.org/docs/developer-guide/nodejs-api#cliengine).
This plugin takes a configuration object intended for the [ESLint constructor](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions) with the addition of a `throwOnWarning`, `throwOnError`, `formatter`, `include` and `exclude` prop.
You can also use eslint configuration in the form of a `.eslintrc.*` file in your project's root. It will be loaded automatically.
### fix
### exclude
Type: `Boolean`<br>
Default: `false`
Type: `String | String[]`<br>
Default: `node_modules/**`
If true, will auto fix source code.
A single [`picomatch`](https://github.com/micromatch/picomatch) pattern or an array of patterns controlling which files this plugin should explicitly include. Gets forwarded to the [`createFilter`](https://github.com/rollup/plugins/tree/master/packages/pluginutils#createfilter) method of `@rollup/pluginutils`.
### throwOnError
### fix

@@ -59,31 +63,31 @@ Type: `Boolean`<br>

If true, will throw an error if any errors were found.
If true, will auto fix source code.
### throwOnWarning
### formatter
Type: `Boolean`<br>
Default: `false`
Type: `Function | String`<br>
Default: `stylish`
If true, will throw an error if any warnings were found.
Custom error formatter, the name of a built-in formatter, or the path to a custom formatter.
### include
Type: `Array | String`<br>
Type: `String | String[]`<br>
Default: `[]`
A single file, or array of files, to include when linting.
A single [`picomatch`](https://github.com/micromatch/picomatch) pattern or an array of patterns controlling which files this plugin should explicitly include. Gets forwarded to the [`createFilter`](https://github.com/rollup/plugins/tree/master/packages/pluginutils#createfilter) method of `@rollup/pluginutils`.
### exclude
### throwOnError
Type: `Array | String`<br>
Default: `node_modules/**`
Type: `Boolean`<br>
Default: `false`
A single file, or array of files, to exclude when linting.
If true, will throw an error and exit the process when ESLint reports any errors.
### formatter
### throwOnWarning
Type: `Function | String`<br>
Default: `stylish`
Type: `Boolean`<br>
Default: `false`
Custom error formatter or the name of a built-in formatter.
If true, will throw an error and exit the process when ESLint reports any warnings.

@@ -90,0 +94,0 @@ ## Meta

import { Plugin } from 'rollup';
import { CLIEngine } from 'eslint';
import { CLIEngine, ESLint } from 'eslint';
import { CreateFilter } from '@rollup/pluginutils';
export interface RollupEslintOptions extends CLIEngine.Options {
export interface RollupEslintOptions extends ESLint.Options {
/**

@@ -7,0 +7,0 @@ * If true, will auto fix source code.

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