@rollup/plugin-eslint
Advanced tools
Comparing version 8.0.2 to 8.0.3
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11212
96
156
1
+ Added@eslint-community/eslint-utils@4.4.0(transitive)
+ Added@eslint-community/regexpp@4.11.1(transitive)
+ Added@eslint/eslintrc@2.1.4(transitive)
+ Added@eslint/js@8.57.1(transitive)
+ Added@humanwhocodes/config-array@0.13.0(transitive)
+ Added@humanwhocodes/module-importer@1.0.1(transitive)
+ Added@humanwhocodes/object-schema@2.0.3(transitive)
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@ungap/structured-clone@1.2.0(transitive)
+ Addedacorn@8.12.1(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedeslint@8.57.1(transitive)
+ Addedeslint-scope@7.2.2(transitive)
+ Addedeslint-visitor-keys@3.4.3(transitive)
+ Addedespree@9.6.1(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedglob-parent@6.0.2(transitive)
+ Addedgraphemer@1.4.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrollup@3.29.5(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removed@babel/code-frame@7.12.11(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/highlight@7.24.7(transitive)
- Removed@eslint/eslintrc@0.4.3(transitive)
- Removed@humanwhocodes/config-array@0.5.0(transitive)
- Removed@humanwhocodes/object-schema@1.2.1(transitive)
- Removedacorn@7.4.1(transitive)
- Removedajv@8.17.1(transitive)
- Removedansi-colors@4.1.3(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedargparse@1.0.10(transitive)
- Removedastral-regex@2.0.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedenquirer@2.4.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedeslint@7.32.0(transitive)
- Removedeslint-scope@5.1.1(transitive)
- Removedeslint-utils@2.1.0(transitive)
- Removedeslint-visitor-keys@1.3.02.1.0(transitive)
- Removedespree@7.3.1(transitive)
- Removedesprima@4.0.1(transitive)
- Removedestraverse@4.3.0(transitive)
- Removedfast-uri@3.0.2(transitive)
- Removedfunctional-red-black-tree@1.0.1(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedignore@4.0.6(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjson-schema-traverse@1.0.0(transitive)
- Removedlodash.truncate@4.4.2(transitive)
- Removedpicocolors@1.1.0(transitive)
- Removedprogress@2.0.3(transitive)
- Removedregexpp@3.2.0(transitive)
- Removedrequire-from-string@2.0.2(transitive)
- Removedrollup@2.79.2(transitive)
- Removedsemver@7.6.3(transitive)
- Removedslice-ansi@4.0.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedtable@6.8.2(transitive)
- Removedv8-compile-cache@2.4.0(transitive)
Updated@rollup/pluginutils@^4.2.1
Updatedeslint@^8.24.0