Created
November 13, 2018 12:38
-
-
Save niekvandepas/1fa80ff8eedad7c051f2efb3971c2583 to your computer and use it in GitHub Desktop.
Preferred React/Redux eslint configuration
This file contains hidden or 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
module.exports = { | |
"env": { | |
"browser": true, | |
"es6": true, | |
"jest": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react" | |
], | |
"rules": { | |
"indent": [ | |
"error", | |
2, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"eol-last": [ | |
"error", | |
"always" | |
], | |
"max-len": [ | |
"error", { | |
"code": 100 | |
} | |
], | |
"no-warning-comments": [ | |
"error" | |
], | |
"comma-dangle": [ | |
"error", | |
"only-multiline" | |
], | |
"require-jsdoc": [ | |
"error", | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment