Created
April 4, 2017 15:20
-
-
Save matrunchyk/c6d1635421f6027afadf6edd2a298823 to your computer and use it in GitHub Desktop.
This file contains 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 = { | |
root: true, | |
parser: 'babel-eslint', | |
parserOptions: { | |
sourceType: 'module', | |
}, | |
env: { | |
browser: true, | |
mocha: true, | |
}, | |
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style | |
extends: [ | |
'eslint:recommended', | |
'airbnb-base', | |
'vue', | |
], | |
// required to lint *.vue files | |
plugins: [ | |
'html', | |
'vue', | |
'flowtype-errors', | |
], | |
// check if imports actually resolve | |
settings: { | |
'import/resolver': { | |
'webpack': { | |
'config': './node_modules/laravel-mix/setup/webpack.config.js', | |
}, | |
}, | |
}, | |
globals: { | |
expect: true, | |
sinon: true, | |
}, | |
// add your custom rules here | |
rules: { | |
// don't require .vue extension when importing | |
// 'import/extensions': ['off', 'never', { | |
// 'js': 'never', | |
// 'vue': 'never' | |
// }], | |
// allow optionalDependencies | |
'import/no-extraneous-dependencies': ['error', { | |
'optionalDependencies': ['test/unit/index.js'] | |
}], | |
'semi': ['error', 'always'], | |
'comma-dangle': ['error', 'only-multiline'], | |
'space-before-function-paren': ['error', 'never'], | |
'object-curly-spacing': ['error', 'always'], | |
// 'import/no-unresolved': [0, { commonjs: true, amd: true }], | |
'flowtype-errors/show-errors': 2, | |
// allow debugger during development | |
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, | |
'indent': ['error', 4], | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment