Skip to content

Instantly share code, notes, and snippets.

@amoshydra
Last active July 9, 2017 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amoshydra/276c797e6fcf94a6c20df9d7f9f5afbc to your computer and use it in GitHub Desktop.
Save amoshydra/276c797e6fcf94a6c20df9d7f9f5afbc to your computer and use it in GitHub Desktop.
My favored eslintrc
// http://eslint.org/docs/user-guide/configuring
module.exports = {
'extends': [
'standard',
'plugin:vue/recommended',
],
'plugins': [
'standard'
],
'env': {
'browser': true,
'commonjs': true,
'jquery': true
},
'globals': {},
'rules': {
'indent': [
'error', 2,
{ 'SwitchCase': 1 }
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'no-console': 'warn',
'linebreak-style': 'off',
'max-len': [
'warn', 120, 2,
{ 'ignoreComments': true }
],
'quote-props': [
'warn',
'consistent-as-needed'
],
'no-cond-assign': [
'off',
'except-parens'
],
'radix': 'off',
'space-infix-ops': 'off',
'no-use-before-define': 'off',
'no-unused-vars': [
'warn',
{
'vars': 'local',
'args': 'none',
'argsIgnorePattern': 'next'
}
],
'default-case': 'error',
'no-else-return': 'off',
'no-param-reassign': 'off',
'eqeqeq': ['error', 'smart'],
'comma-dangle': ['error', 'always-multiline'],
'func-names': 'warn',
'prefer-arrow-callback': 'warn',
'object-shorthand': 'warn',
'prefer-const': 'warn',
'arrow-body-style': 'warn',
'space-before-function-paren': ['error', 'never'],
'strict': ['error', 'safe'],
'no-var': 'error',
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment