@rajzik/config-eslint
Version:
Reusable ESLint config.
59 lines (45 loc) • 850 B
Markdown
# ESLint Config
Factory functions for creating preset [ESLint](https://eslint.org) configurations. Primarily used in
unison with the [Lumos](https://www.npmjs.com/package/@rajzik/lumos) CLI.
## Extending config
**Update package.json:**
```json
{
"lumos": {
"eslint": {
"rules": {
"react-hooks/exhaustive-deps": "off"
}
}
}
}
```
**Create file in configs folder:**
`configs/eslint.js`
```js
modules.exports = {
rules: {
'react-hooks/exhaustive-deps': 'off',
},
};
```
## Settings
### Main settings
```ts
export interface ESLintOptions {
next?: boolean;
node?: boolean;
prettier?: boolean;
typescript?: boolean;
}
```
### Default values
```ts
{
next = false,
node = false,
prettier = false,
typescript = false,
}
```
### [Beemo/eslint](https://milesj.gitbook.io/beemo/driver/eslint)