forked from vitessce/vitessce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
29 lines (29 loc) · 1.03 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
extends:
- react-app
- eslint:recommended
- plugin:react/recommended
- plugin:cypress/recommended
- airbnb
plugins:
- react
- cypress
- vitessce-rules
settings:
react:
version: detect
env:
cypress/globals: true
rules:
no-console: [2, { "allow": ["warn", "error", "info", "groupCollapsed", "groupEnd"]}]
# My practice is to use "log" for messages I intend to clean up before merging.
# All these others reflect the intension that they should be left in the codebase.
react/jsx-filename-extension: [0] # Imports don't work if I change extension.
react/sort-comp: [0] # Non-alphabetical groupings can make more sense.
react/jsx-one-expression-per-line: [0] # Makes punctuation after tab awkward.
react/prop-types: [0] # Re-enable: https://github.com/vitessce/vitessce/issues/144
import/prefer-default-export: [0] # Hit eslint error: SyntaxError: Unexpected token, expected {
vitessce-rules/prevent-pubsub-import: [2]
overrides:
- files: '*Subscriber.js'
rules:
vitessce-rules/prevent-pubsub-import: 0