Skip to content

Instantly share code, notes, and snippets.

@rrosiek
Created January 3, 2021 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rrosiek/46c712b6fce93df0b293387d40a1df5d to your computer and use it in GitHub Desktop.
Save rrosiek/46c712b6fce93df0b293387d40a1df5d to your computer and use it in GitHub Desktop.
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