forked from hms-dbmi/viv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
31 lines (31 loc) · 1.21 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
30
31
extends:
- react-app
- eslint:recommended
- plugin:react/recommended
- airbnb
- prettier
plugins:
- react
settings:
react:
version: detect
import/resolver:
node:
extensions: ['.js', '.ts', '.jsx']
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/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/hubmapconsortium/vitessce/issues/144
import/prefer-default-export: [0] # Hit eslint error: SyntaxError: Unexpected token, expected {
react/jsx-curly-newline: [0]
import/no-extraneous-dependencies:
[2, { 'devDependencies': ['tests/**/*.js'] }]
# For some locations, just having a dev dependency is sufficient.
no-underscore-dangle: [0]
# https://github.com/benmosher/eslint-plugin-import/issues/1615#issuecomment-577500405
import/extensions:
['error', 'ignorePackages', { js: 'never', ts: 'never', jsx: 'never' }]