Last active
March 19, 2019 10:46
-
-
Save baruchvlz/4f8223f1da7c5287ee0bb931ece0687c to your computer and use it in GitHub Desktop.
commonly used eslint rules
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, | |
"node": true, | |
"jest/globals": true | |
}, | |
"parser": "babel-eslint", | |
"extends": ["eslint:recommended"], | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"plugins": ["jest"], | |
"rules": { | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"semi": [ | |
"error", | |
"never" | |
], | |
"indent": [ | |
"error", | |
4 | |
], | |
"no-restricted-imports": [ | |
2, | |
{ | |
"patterns": ["./../*"] | |
} | |
], | |
"eol-last": [ | |
"error", | |
"always" | |
], | |
"max-len": [ | |
"error", | |
{ | |
"code": 100, | |
"tabWidth": 4 | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment