Skip to content

Instantly share code, notes, and snippets.

@Vchekryzhov
Last active June 20, 2018 10:45
Show Gist options
  • Save Vchekryzhov/daba22a2f99a538f319839dbf194f432 to your computer and use it in GitHub Desktop.
Save Vchekryzhov/daba22a2f99a538f319839dbf194f432 to your computer and use it in GitHub Desktop.
esLint
{
esversion: 6,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true
},
"globals": {
'ko': true,
"$":true,
"jQuery":true,
"EventBus": true,
"i18n": true
},
"extends": "eslint:recommended",
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"comma-dangle": ["error", "only-multiline"],
"no-cond-assign": ["error", "always"],
"no-console": ["warn", { allow: ["warn", "error"] }],
"space-in-parens": ["error", "always"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment