(optional š¤) provide a static value for eslintrc. E.g. .eslintrc.json
(optional š¤š¤) derive the value for eslintrc by crawling the file system for process.cwd.
Use a glob to target different formats and naming. E.g. .eslintrc.(ts|js)
[ ] throws if no file is set for options eslintrc
[ ] calling eslintPlugin without patterns options
(optional š¤) provide a static value for patterns. E.g. **/src/**/index.js
(optional š¤š¤) derive the value for patterns by crawling the file system use a combination of early exit like some and a glob patters. Start with a static value or a glob pattern to target different file and naming. E.g. **/src/**/index.js.
[ ] throws if no pattern is set for options patterns
[ ] calling eslintPlugin without options
[ ] throws if no options are given.
e.g. throw the following error:
throw new Error(`${ESLINT_PLUGIN_SLUG} needs configuration to work properly. Please read up the configuration section. ${eslintConfigLink}`)
The optional criteria should go into a followup PR š.
User story
As a developer I want to have as less setup and configuration cost as possible.
At the moment when I'm have the plugin imported i still need to understand how to configure it. Smart defaults could help here.
Acceptance criteria
[ ] calling
eslintPlugin
withouteslintrc
optionseslintrc
. E.g..eslintrc.json
eslintrc
by crawling the file system forprocess.cwd
. Use a glob to target different formats and naming. E.g..eslintrc.(ts|js)
eslintrc
[ ] calling
eslintPlugin
withoutpatterns
optionspatterns
. E.g.**/src/**/index.js
patterns
by crawling the file system use a combination of early exit like some and a glob patters. Start with a static value or a glob pattern to target different file and naming. E.g.**/src/**/index.js
.patterns
[ ] calling
eslintPlugin
without optionse.g. throw the following error:
The optional criteria should go into a followup PR š.
Implementation details
It would be cool to use the plugin like this: