Created
January 3, 2021 14:44
-
-
Save rrosiek/46c712b6fce93df0b293387d40a1df5d to your computer and use it in GitHub Desktop.
ESLint configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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