eslint-config-sky
Install
$ npm install --save-dev eslint-config-sky
Usage
Add "extends": "sky"
to your .eslintrc.
This includes base + react + flow rules.
base
"extends": "sky/base"
base + react
"extends": "sky/react"
base + flow
"extends": "sky/flow"
Sample
;;;;; const fuga = ;const test1 = 1;const test2 = '2';const obj = test1 : 1 test2 : 2 test13: 13; if test1 == null ; if test2 === '2' ; /** * @description check:) */ { return 'check';} { super; thisname = 'name'; } { return thisname; }
// react ; Component { super; thisstate = opened: false ; } { return <div /> ; } { } const Label = <div> <h1>Label</h1> <button onClick= /> </div>;
// flow const name: string = 'name'; type User = name: string; /** * @description fetchUserNames */: Promise<Array<string>> { return { ; };