From 8e1bac7cf24ecb293cebacf453c8de73f710d15f Mon Sep 17 00:00:00 2001 From: Jerry Chang Date: Sat, 14 Dec 2019 16:27:39 -0800 Subject: [PATCH] Update doc about passing eslint file as path to plugin --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2b6fe7c..8bb77cd 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,19 @@ export default { }; ``` +**Note:** You can pass a relative path to your eslint config file +```js +import { rollup } from "rollup"; +import { eslint } from "rollup-plugin-eslint"; + +export default { + input: "main.js", + plugins: [ + eslint('./path-to-my-eslintconfig') + ] +}; +``` + ## Options See more options here [eslint-config].