Skip to content

Instantly share code, notes, and snippets.

@stramel
Last active June 13, 2017 15:16
Show Gist options
  • Save stramel/6e8e3da93a87320aee9a7b97d762603b to your computer and use it in GitHub Desktop.
Save stramel/6e8e3da93a87320aee9a7b97d762603b to your computer and use it in GitHub Desktop.
Linter files
module.exports = {
'extends': ['eslint:recommended', 'google'],
'env': {
browser: true,
es6: true
},
'globals': {
Polymer: true
},
'rules': {
// 2 == error, 1 == warning, 0 == off
'arrow-parens': [2, 'always'],
'indent': [2, 2, {
SwitchCase: 1,
VariableDeclarator: 2
}],
'prefer-const': 2,
'no-unused-expressions': [2, {
allowShortCircuit: true,
allowTernary: false
}],
'no-unused-vars': [2, {
vars: 'all',
args: 'after-used'
}]
}
};
# Use https instead of git and git+ssh
[url "https://github.com/"]
insteadOf = git://github.com/
[url "https://github.com/"]
insteadOf = git@github.com:
[url "https://github.com/"]
insteadOf = ssh://git@github.com:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment