Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ESLint configuration
env:
browser: true
es2020: true
plugins:
- fp
- promise
- svelte3
overrides:
- processor: "svelte3/svelte3"
files: "*.svelte"
parserOptions:
sourceType: module
rules:
complexity:
- warn
- 5
max-lines:
- warn
- 200
max-lines-per-function:
- warn
- 20
max-nested-callbacks:
- warn
- 2
max-depth:
- warn
- 3
max-params:
- warn
- 2
fp/no-mutating-assign: warn
fp/no-mutating-methods: warn
fp/no-mutation: warn
fp/no-delete: warn
fp/no-this: warn
fp/no-loops: warn
fp/no-let: warn
fp/no-throw: warn
promise/always-return: 2
promise/catch-or-return: 2
promise/no-nesting: 1
no-param-reassign: warn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment