Last active
July 9, 2017 15:08
-
-
Save amoshydra/276c797e6fcf94a6c20df9d7f9f5afbc to your computer and use it in GitHub Desktop.
My favored eslintrc
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
// 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