Skip to content

Instantly share code, notes, and snippets.

@SimenB
Created May 26, 2017 09:10
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 SimenB/0d5a3f1db680364399c019eede0a713a to your computer and use it in GitHub Desktop.
Save SimenB/0d5a3f1db680364399c019eede0a713a to your computer and use it in GitHub Desktop.
eslint config
{
"globals": {
"Array": false,
"ArrayBuffer": false,
"Boolean": false,
"constructor": false,
"DataView": false,
"Date": false,
"decodeURI": false,
"decodeURIComponent": false,
"encodeURI": false,
"encodeURIComponent": false,
"Error": false,
"escape": false,
"eval": false,
"EvalError": false,
"Float32Array": false,
"Float64Array": false,
"Function": false,
"hasOwnProperty": false,
"Infinity": false,
"Int16Array": false,
"Int32Array": false,
"Int8Array": false,
"isFinite": false,
"isNaN": false,
"isPrototypeOf": false,
"JSON": false,
"Map": false,
"Math": false,
"NaN": false,
"Number": false,
"Object": false,
"parseFloat": false,
"parseInt": false,
"Promise": false,
"propertyIsEnumerable": false,
"Proxy": false,
"RangeError": false,
"ReferenceError": false,
"Reflect": false,
"RegExp": false,
"Set": false,
"String": false,
"Symbol": false,
"SyntaxError": false,
"System": false,
"toLocaleString": false,
"toString": false,
"TypeError": false,
"Uint16Array": false,
"Uint32Array": false,
"Uint8Array": false,
"Uint8ClampedArray": false,
"undefined": false,
"unescape": false,
"URIError": false,
"valueOf": false,
"WeakMap": false,
"WeakSet": false,
"addEventListener": false,
"alert": false,
"AnalyserNode": false,
"Animation": false,
"AnimationEffectReadOnly": false,
"AnimationEffectTiming": false,
"AnimationEffectTimingReadOnly": false,
"AnimationEvent": false,
"AnimationPlaybackEvent": false,
"AnimationTimeline": false,
"applicationCache": false,
"ApplicationCache": false,
"ApplicationCacheErrorEvent": false,
"atob": false,
"Attr": false,
"Audio": false,
"AudioBuffer": false,
"AudioBufferSourceNode": false,
"AudioContext": false,
"AudioDestinationNode": false,
"AudioListener": false,
"AudioNode": false,
"AudioParam": false,
"AudioProcessingEvent": false,
"AutocompleteErrorEvent": false,
"BarProp": false,
"BatteryManager": false,
"BeforeUnloadEvent": false,
"BiquadFilterNode": false,
"Blob": false,
"blur": false,
"btoa": false,
"Cache": false,
"caches": false,
"CacheStorage": false,
"cancelAnimationFrame": false,
"CanvasGradient": false,
"CanvasPattern": false,
"CanvasRenderingContext2D": false,
"CDATASection": false,
"ChannelMergerNode": false,
"ChannelSplitterNode": false,
"CharacterData": false,
"clearInterval": false,
"clearTimeout": false,
"clientInformation": false,
"ClientRect": false,
"ClientRectList": false,
"ClipboardEvent": false,
"close": false,
"closed": false,
"CloseEvent": false,
"Comment": false,
"CompositionEvent": false,
"confirm": false,
"console": false,
"ConvolverNode": false,
"Credential": false,
"CredentialsContainer": false,
"crypto": false,
"Crypto": false,
"CryptoKey": false,
"CSS": false,
"CSSAnimation": false,
"CSSFontFaceRule": false,
"CSSImportRule": false,
"CSSKeyframeRule": false,
"CSSKeyframesRule": false,
"CSSMediaRule": false,
"CSSPageRule": false,
"CSSRule": false,
"CSSRuleList": false,
"CSSStyleDeclaration": false,
"CSSStyleRule": false,
"CSSStyleSheet": false,
"CSSSupportsRule": false,
"CSSTransition": false,
"CSSUnknownRule": false,
"CSSViewportRule": false,
"customElements": false,
"CustomEvent": false,
"DataTransfer": false,
"DataTransferItem": false,
"DataTransferItemList": false,
"Debug": false,
"defaultStatus": false,
"defaultstatus": false,
"DelayNode": false,
"DeviceMotionEvent": false,
"DeviceOrientationEvent": false,
"devicePixelRatio": false,
"dispatchEvent": false,
"document": false,
"Document": false,
"DocumentFragment": false,
"DocumentTimeline": false,
"DocumentType": false,
"DOMError": false,
"DOMException": false,
"DOMImplementation": false,
"DOMParser": false,
"DOMSettableTokenList": false,
"DOMStringList": false,
"DOMStringMap": false,
"DOMTokenList": false,
"DragEvent": false,
"DynamicsCompressorNode": false,
"Element": false,
"ElementTimeControl": false,
"ErrorEvent": false,
"event": false,
"Event": false,
"EventSource": false,
"EventTarget": false,
"external": false,
"FederatedCredential": false,
"fetch": false,
"File": false,
"FileError": false,
"FileList": false,
"FileReader": false,
"find": false,
"focus": false,
"FocusEvent": false,
"FontFace": false,
"FormData": false,
"frameElement": false,
"frames": false,
"GainNode": false,
"Gamepad": false,
"GamepadButton": false,
"GamepadEvent": false,
"getComputedStyle": false,
"getSelection": false,
"HashChangeEvent": false,
"Headers": false,
"history": false,
"History": false,
"HTMLAllCollection": false,
"HTMLAnchorElement": false,
"HTMLAppletElement": false,
"HTMLAreaElement": false,
"HTMLAudioElement": false,
"HTMLBaseElement": false,
"HTMLBlockquoteElement": false,
"HTMLBodyElement": false,
"HTMLBRElement": false,
"HTMLButtonElement": false,
"HTMLCanvasElement": false,
"HTMLCollection": false,
"HTMLContentElement": false,
"HTMLDataListElement": false,
"HTMLDetailsElement": false,
"HTMLDialogElement": false,
"HTMLDirectoryElement": false,
"HTMLDivElement": false,
"HTMLDListElement": false,
"HTMLDocument": false,
"HTMLElement": false,
"HTMLEmbedElement": false,
"HTMLFieldSetElement": false,
"HTMLFontElement": false,
"HTMLFormControlsCollection": false,
"HTMLFormElement": false,
"HTMLFrameElement": false,
"HTMLFrameSetElement": false,
"HTMLHeadElement": false,
"HTMLHeadingElement": false,
"HTMLHRElement": false,
"HTMLHtmlElement": false,
"HTMLIFrameElement": false,
"HTMLImageElement": false,
"HTMLInputElement": false,
"HTMLIsIndexElement": false,
"HTMLKeygenElement": false,
"HTMLLabelElement": false,
"HTMLLayerElement": false,
"HTMLLegendElement": false,
"HTMLLIElement": false,
"HTMLLinkElement": false,
"HTMLMapElement": false,
"HTMLMarqueeElement": false,
"HTMLMediaElement": false,
"HTMLMenuElement": false,
"HTMLMetaElement": false,
"HTMLMeterElement": false,
"HTMLModElement": false,
"HTMLObjectElement": false,
"HTMLOListElement": false,
"HTMLOptGroupElement": false,
"HTMLOptionElement": false,
"HTMLOptionsCollection": false,
"HTMLOutputElement": false,
"HTMLParagraphElement": false,
"HTMLParamElement": false,
"HTMLPictureElement": false,
"HTMLPreElement": false,
"HTMLProgressElement": false,
"HTMLQuoteElement": false,
"HTMLScriptElement": false,
"HTMLSelectElement": false,
"HTMLShadowElement": false,
"HTMLSourceElement": false,
"HTMLSpanElement": false,
"HTMLStyleElement": false,
"HTMLTableCaptionElement": false,
"HTMLTableCellElement": false,
"HTMLTableColElement": false,
"HTMLTableElement": false,
"HTMLTableRowElement": false,
"HTMLTableSectionElement": false,
"HTMLTemplateElement": false,
"HTMLTextAreaElement": false,
"HTMLTitleElement": false,
"HTMLTrackElement": false,
"HTMLUListElement": false,
"HTMLUnknownElement": false,
"HTMLVideoElement": false,
"IDBCursor": false,
"IDBCursorWithValue": false,
"IDBDatabase": false,
"IDBEnvironment": false,
"IDBFactory": false,
"IDBIndex": false,
"IDBKeyRange": false,
"IDBObjectStore": false,
"IDBOpenDBRequest": false,
"IDBRequest": false,
"IDBTransaction": false,
"IDBVersionChangeEvent": false,
"Image": false,
"ImageBitmap": false,
"ImageData": false,
"indexedDB": false,
"innerHeight": false,
"innerWidth": false,
"InputEvent": false,
"InputMethodContext": false,
"IntersectionObserver": false,
"IntersectionObserverEntry": false,
"Intl": false,
"KeyboardEvent": false,
"KeyframeEffect": false,
"KeyframeEffectReadOnly": false,
"length": false,
"localStorage": false,
"location": false,
"Location": false,
"locationbar": false,
"matchMedia": false,
"MediaElementAudioSourceNode": false,
"MediaEncryptedEvent": false,
"MediaError": false,
"MediaKeyError": false,
"MediaKeyEvent": false,
"MediaKeyMessageEvent": false,
"MediaKeys": false,
"MediaKeySession": false,
"MediaKeyStatusMap": false,
"MediaKeySystemAccess": false,
"MediaList": false,
"MediaQueryList": false,
"MediaQueryListEvent": false,
"MediaSource": false,
"MediaRecorder": false,
"MediaStream": false,
"MediaStreamAudioDestinationNode": false,
"MediaStreamAudioSourceNode": false,
"MediaStreamEvent": false,
"MediaStreamTrack": false,
"menubar": false,
"MessageChannel": false,
"MessageEvent": false,
"MessagePort": false,
"MIDIAccess": false,
"MIDIConnectionEvent": false,
"MIDIInput": false,
"MIDIInputMap": false,
"MIDIMessageEvent": false,
"MIDIOutput": false,
"MIDIOutputMap": false,
"MIDIPort": false,
"MimeType": false,
"MimeTypeArray": false,
"MouseEvent": false,
"moveBy": false,
"moveTo": false,
"MutationEvent": false,
"MutationObserver": false,
"MutationRecord": false,
"name": false,
"NamedNodeMap": false,
"navigator": false,
"Navigator": false,
"Node": false,
"NodeFilter": false,
"NodeIterator": false,
"NodeList": false,
"Notification": false,
"OfflineAudioCompletionEvent": false,
"OfflineAudioContext": false,
"offscreenBuffering": false,
"onbeforeunload": true,
"onblur": true,
"onerror": true,
"onfocus": true,
"onload": true,
"onresize": true,
"onunload": true,
"open": false,
"openDatabase": false,
"opener": false,
"opera": false,
"Option": false,
"OscillatorNode": false,
"outerHeight": false,
"outerWidth": false,
"PageTransitionEvent": false,
"pageXOffset": false,
"pageYOffset": false,
"parent": false,
"PasswordCredential": false,
"Path2D": false,
"performance": false,
"Performance": false,
"PerformanceEntry": false,
"PerformanceMark": false,
"PerformanceMeasure": false,
"PerformanceNavigation": false,
"PerformanceResourceTiming": false,
"PerformanceTiming": false,
"PeriodicWave": false,
"Permissions": false,
"PermissionStatus": false,
"personalbar": false,
"Plugin": false,
"PluginArray": false,
"PopStateEvent": false,
"postMessage": false,
"print": false,
"ProcessingInstruction": false,
"ProgressEvent": false,
"PromiseRejectionEvent": false,
"prompt": false,
"PushManager": false,
"PushSubscription": false,
"RadioNodeList": false,
"Range": false,
"ReadableByteStream": false,
"ReadableStream": false,
"removeEventListener": false,
"Request": false,
"requestAnimationFrame": false,
"requestIdleCallback": false,
"resizeBy": false,
"resizeTo": false,
"Response": false,
"RTCIceCandidate": false,
"RTCSessionDescription": false,
"RTCPeerConnection": false,
"screen": false,
"Screen": false,
"screenLeft": false,
"ScreenOrientation": false,
"screenTop": false,
"screenX": false,
"screenY": false,
"ScriptProcessorNode": false,
"scroll": false,
"scrollbars": false,
"scrollBy": false,
"scrollTo": false,
"scrollX": false,
"scrollY": false,
"SecurityPolicyViolationEvent": false,
"Selection": false,
"self": false,
"ServiceWorker": false,
"ServiceWorkerContainer": false,
"ServiceWorkerRegistration": false,
"sessionStorage": false,
"setInterval": false,
"setTimeout": false,
"ShadowRoot": false,
"SharedKeyframeList": false,
"SharedWorker": false,
"showModalDialog": false,
"SiteBoundCredential": false,
"speechSynthesis": false,
"SpeechSynthesisEvent": false,
"SpeechSynthesisUtterance": false,
"status": false,
"statusbar": false,
"stop": false,
"Storage": false,
"StorageEvent": false,
"styleMedia": false,
"StyleSheet": false,
"StyleSheetList": false,
"SubtleCrypto": false,
"SVGAElement": false,
"SVGAltGlyphDefElement": false,
"SVGAltGlyphElement": false,
"SVGAltGlyphItemElement": false,
"SVGAngle": false,
"SVGAnimateColorElement": false,
"SVGAnimatedAngle": false,
"SVGAnimatedBoolean": false,
"SVGAnimatedEnumeration": false,
"SVGAnimatedInteger": false,
"SVGAnimatedLength": false,
"SVGAnimatedLengthList": false,
"SVGAnimatedNumber": false,
"SVGAnimatedNumberList": false,
"SVGAnimatedPathData": false,
"SVGAnimatedPoints": false,
"SVGAnimatedPreserveAspectRatio": false,
"SVGAnimatedRect": false,
"SVGAnimatedString": false,
"SVGAnimatedTransformList": false,
"SVGAnimateElement": false,
"SVGAnimateMotionElement": false,
"SVGAnimateTransformElement": false,
"SVGAnimationElement": false,
"SVGCircleElement": false,
"SVGClipPathElement": false,
"SVGColor": false,
"SVGColorProfileElement": false,
"SVGColorProfileRule": false,
"SVGComponentTransferFunctionElement": false,
"SVGCSSRule": false,
"SVGCursorElement": false,
"SVGDefsElement": false,
"SVGDescElement": false,
"SVGDiscardElement": false,
"SVGDocument": false,
"SVGElement": false,
"SVGElementInstance": false,
"SVGElementInstanceList": false,
"SVGEllipseElement": false,
"SVGEvent": false,
"SVGExternalResourcesRequired": false,
"SVGFEBlendElement": false,
"SVGFEColorMatrixElement": false,
"SVGFEComponentTransferElement": false,
"SVGFECompositeElement": false,
"SVGFEConvolveMatrixElement": false,
"SVGFEDiffuseLightingElement": false,
"SVGFEDisplacementMapElement": false,
"SVGFEDistantLightElement": false,
"SVGFEDropShadowElement": false,
"SVGFEFloodElement": false,
"SVGFEFuncAElement": false,
"SVGFEFuncBElement": false,
"SVGFEFuncGElement": false,
"SVGFEFuncRElement": false,
"SVGFEGaussianBlurElement": false,
"SVGFEImageElement": false,
"SVGFEMergeElement": false,
"SVGFEMergeNodeElement": false,
"SVGFEMorphologyElement": false,
"SVGFEOffsetElement": false,
"SVGFEPointLightElement": false,
"SVGFESpecularLightingElement": false,
"SVGFESpotLightElement": false,
"SVGFETileElement": false,
"SVGFETurbulenceElement": false,
"SVGFilterElement": false,
"SVGFilterPrimitiveStandardAttributes": false,
"SVGFitToViewBox": false,
"SVGFontElement": false,
"SVGFontFaceElement": false,
"SVGFontFaceFormatElement": false,
"SVGFontFaceNameElement": false,
"SVGFontFaceSrcElement": false,
"SVGFontFaceUriElement": false,
"SVGForeignObjectElement": false,
"SVGGElement": false,
"SVGGeometryElement": false,
"SVGGlyphElement": false,
"SVGGlyphRefElement": false,
"SVGGradientElement": false,
"SVGGraphicsElement": false,
"SVGHKernElement": false,
"SVGICCColor": false,
"SVGImageElement": false,
"SVGLangSpace": false,
"SVGLength": false,
"SVGLengthList": false,
"SVGLinearGradientElement": false,
"SVGLineElement": false,
"SVGLocatable": false,
"SVGMarkerElement": false,
"SVGMaskElement": false,
"SVGMatrix": false,
"SVGMetadataElement": false,
"SVGMissingGlyphElement": false,
"SVGMPathElement": false,
"SVGNumber": false,
"SVGNumberList": false,
"SVGPaint": false,
"SVGPathElement": false,
"SVGPathSeg": false,
"SVGPathSegArcAbs": false,
"SVGPathSegArcRel": false,
"SVGPathSegClosePath": false,
"SVGPathSegCurvetoCubicAbs": false,
"SVGPathSegCurvetoCubicRel": false,
"SVGPathSegCurvetoCubicSmoothAbs": false,
"SVGPathSegCurvetoCubicSmoothRel": false,
"SVGPathSegCurvetoQuadraticAbs": false,
"SVGPathSegCurvetoQuadraticRel": false,
"SVGPathSegCurvetoQuadraticSmoothAbs": false,
"SVGPathSegCurvetoQuadraticSmoothRel": false,
"SVGPathSegLinetoAbs": false,
"SVGPathSegLinetoHorizontalAbs": false,
"SVGPathSegLinetoHorizontalRel": false,
"SVGPathSegLinetoRel": false,
"SVGPathSegLinetoVerticalAbs": false,
"SVGPathSegLinetoVerticalRel": false,
"SVGPathSegList": false,
"SVGPathSegMovetoAbs": false,
"SVGPathSegMovetoRel": false,
"SVGPatternElement": false,
"SVGPoint": false,
"SVGPointList": false,
"SVGPolygonElement": false,
"SVGPolylineElement": false,
"SVGPreserveAspectRatio": false,
"SVGRadialGradientElement": false,
"SVGRect": false,
"SVGRectElement": false,
"SVGRenderingIntent": false,
"SVGScriptElement": false,
"SVGSetElement": false,
"SVGStopElement": false,
"SVGStringList": false,
"SVGStylable": false,
"SVGStyleElement": false,
"SVGSVGElement": false,
"SVGSwitchElement": false,
"SVGSymbolElement": false,
"SVGTests": false,
"SVGTextContentElement": false,
"SVGTextElement": false,
"SVGTextPathElement": false,
"SVGTextPositioningElement": false,
"SVGTitleElement": false,
"SVGTransform": false,
"SVGTransformable": false,
"SVGTransformList": false,
"SVGTRefElement": false,
"SVGTSpanElement": false,
"SVGUnitTypes": false,
"SVGURIReference": false,
"SVGUseElement": false,
"SVGViewElement": false,
"SVGViewSpec": false,
"SVGVKernElement": false,
"SVGZoomAndPan": false,
"SVGZoomEvent": false,
"Text": false,
"TextDecoder": false,
"TextEncoder": false,
"TextEvent": false,
"TextMetrics": false,
"TextTrack": false,
"TextTrackCue": false,
"TextTrackCueList": false,
"TextTrackList": false,
"TimeEvent": false,
"TimeRanges": false,
"toolbar": false,
"top": false,
"Touch": false,
"TouchEvent": false,
"TouchList": false,
"TrackEvent": false,
"TransitionEvent": false,
"TreeWalker": false,
"UIEvent": false,
"URL": false,
"URLSearchParams": false,
"ValidityState": false,
"VTTCue": false,
"WaveShaperNode": false,
"WebGLActiveInfo": false,
"WebGLBuffer": false,
"WebGLContextEvent": false,
"WebGLFramebuffer": false,
"WebGLProgram": false,
"WebGLRenderbuffer": false,
"WebGLRenderingContext": false,
"WebGLShader": false,
"WebGLShaderPrecisionFormat": false,
"WebGLTexture": false,
"WebGLUniformLocation": false,
"WebSocket": false,
"WheelEvent": false,
"window": false,
"Window": false,
"Worker": false,
"XDomainRequest": false,
"XMLDocument": false,
"XMLHttpRequest": false,
"XMLHttpRequestEventTarget": false,
"XMLHttpRequestProgressEvent": false,
"XMLHttpRequestUpload": false,
"XMLSerializer": false,
"XPathEvaluator": false,
"XPathException": false,
"XPathExpression": false,
"XPathNamespace": false,
"XPathNSResolver": false,
"XPathResult": false,
"XSLTProcessor": false,
"FINN": true,
"Kalendae": false,
"d3": false,
"c3": false,
"L": false,
"YT": false
},
"env": {
"es6": true,
"node": false,
"browser": true,
"jasmine": false,
"mocha": false
},
"rules": {
"constructor-super": "error",
"generator-star-spacing": "off",
"generator-star": "off",
"no-this-before-super": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"strict": [
"error",
"safe"
],
"handle-callback-err": "off",
"no-mixed-requires": "off",
"no-new-require": "off",
"no-path-concat": "off",
"no-process-exit": "off",
"no-restricted-modules": "off",
"no-sync": "off",
"no-underscore-dangle": "off",
"no-unexpected-multiline": "warn",
"accessor-pairs": "error",
"block-scoped-var": "error",
"curly": 0,
"dot-notation": "error",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"keyword-spacing": "off",
"no-alert": "error",
"no-caller": "error",
"no-div-regex": "error",
"no-else-return": "off",
"no-eq-null": "off",
"no-eval": "error",
"no-extend-native": "off",
"no-extra-bind": "error",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "off",
"no-multi-str": "error",
"no-native-reassign": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-octal-escape": "error",
"no-octal": "error",
"no-param-reassign": "off",
"no-process-env": "off",
"no-proto": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unused-expressions": "error",
"no-void": "error",
"vars-on-top": "off",
"wrap-iife": [
"off",
"inside"
],
"no-catch-shadow": "off",
"no-delete-var": "error",
"no-shadow": [
"off",
{
"allow": [
"resolve",
"reject",
"cb",
"err"
]
}
],
"no-undef-init": "error",
"no-undef": "error",
"no-undefined": "off",
"no-unused-vars": "error",
"no-use-before-define": [
"error",
{
"functions": false
}
],
"brace-style": [
"off",
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": [
"error",
{
"properties": "always"
}
],
"comma-spacing": [
"off",
{
"before": false,
"after": true
}
],
"comma-style": [
"off",
"last"
],
"consistent-this": [
"error",
"self"
],
"eol-last": "off",
"func-style": [
"off",
"declaration"
],
"indent": [
"off",
4,
{
"SwitchCase": 1
}
],
"key-spacing": [
"off",
{
"beforeColon": false,
"afterColon": true
}
],
"max-nested-callbacks": [
"error",
5
],
"new-cap": [
"error",
{
"capIsNewExceptions": [
"E",
"FullscreenDecorator"
]
}
],
"new-parens": "off",
"no-array-constructor": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": [
"off",
{
"max": 2
}
],
"no-nested-ternary": "error",
"object-curly-spacing": [
"off",
"always"
],
"no-unneeded-ternary": "error",
"operator-assignment": [
"error",
"always"
],
"operator-linebreak": [
"off",
"after"
],
"padded-blocks": [
"off",
"never"
],
"quotes": [
0,
"single",
{
"avoidEscape": true
}
],
"semi": [
"off",
"always"
],
"space-before-blocks": [
"off",
"always"
],
"spaced-comment": [
"error",
"always",
{
"exceptions": [
"eslint-disable",
"global",
"eslint",
"eslint-env"
]
}
],
"global-strict": "off",
"array-bracket-spacing": "off",
"array-callback-return": "error",
"arrow-body-style": [
"error",
"as-needed"
],
"arrow-spacing": "off",
"block-spacing": "off",
"comma-dangle": [
"off",
"always-multiline"
],
"computed-property-spacing": "off",
"lines-around-directive": [
"error",
{
"before": "never",
"after": "always"
}
],
"max-depth": [
"error"
],
"max-len": [
0,
{
"code": 140,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
],
"max-params": [
"error",
5
],
"newline-per-chained-call": "off",
"no-case-declarations": "error",
"no-class-assign": "error",
"no-cond-assign": [
"error",
"always"
],
"no-confusing-arrow": [
0,
{
"allowParens": true
}
],
"no-console": "off",
"no-debugger": "error",
"no-duplicate-imports": "error",
"no-negated-condition": "error",
"no-negated-in-lhs": "error",
"no-shadow-restricted-names": "error",
"no-spaced-func": "off",
"no-trailing-spaces": "off",
"no-useless-call": "error",
"no-useless-escape": "error",
"one-var": [
"error",
"never"
],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": true
}
],
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quote-props": [
"off",
"consistent-as-needed"
],
"space-before-function-paren": "off",
"space-infix-ops": "off",
"space-unary-ops": "off",
"template-curly-spacing": "off",
"yoda": "error",
"react/display-name": "off",
"react/jsx-boolean-value": "error",
"jsx-quotes": [
"off",
"prefer-double"
],
"react/jsx-no-undef": "error",
"react/jsx-sort-props": "off",
"react/jsx-sort-prop-types": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-wrap-multilines": "off",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-multi-comp": [
"error",
{
"ignoreStateless": true
}
],
"react/no-unknown-property": "warn",
"react/prop-types": [
"warn",
{
"ignore": [
"children",
"className"
]
}
],
"react/react-in-jsx-scope": "error",
"react/self-closing-comp": "error",
"react/sort-comp": [
"error",
{
"order": [
"constructor",
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"getDefaultProps",
"getInitialState",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount",
"everything-else",
"/^render.+$/",
"render"
]
}
],
"no-mixed-operators": 0,
"arrow-parens": "off",
"dot-location": "off",
"func-call-spacing": "off",
"multiline-ternary": "off",
"no-arrow-condition": "off",
"no-comma-dangle": "off",
"no-extra-parens": "off",
"no-extra-semi": "off",
"no-mixed-spaces-and-tabs": "off",
"no-reserved-keys": "off",
"no-space-before-semi": "off",
"no-whitespace-before-property": "off",
"no-wrap-func": "off",
"nonblock-statement-body-position": "off",
"object-curly-newline": "off",
"object-property-newline": "off",
"one-var-declaration-per-line": "off",
"rest-spread-spacing": "off",
"semi-spacing": "off",
"space-after-function-name": "off",
"space-after-keywords": "off",
"space-before-function-parentheses": "off",
"space-before-keywords": "off",
"space-in-brackets": "off",
"space-in-parens": "off",
"space-return-throw-case": "off",
"space-unary-word-ops": "off",
"template-tag-spacing": "off",
"unicode-bom": "off",
"wrap-regex": "off",
"yield-star-spacing": "off",
"prettier/prettier": [
"error",
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "es5"
}
],
"react/jsx-closing-bracket-location": "off",
"react/jsx-curly-spacing": "off",
"react/jsx-equals-spacing": "off",
"react/jsx-first-prop-new-line": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-max-props-per-line": "off",
"react/jsx-space-before-closing": "off",
"react/jsx-tag-spacing": "off"
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"extends": [
"finn",
"finn/es-modules",
"finn-react",
"finn-prettier",
"finn-prettier/react"
],
"plugins": [
"react",
"prettier"
],
"root": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment