Created
November 12, 2017 22:29
-
-
Save pavelruzicka/a6951416fa2f6d6d457e6cac043641af to your computer and use it in GitHub Desktop.
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 = { | |
| root: true, | |
| parser: 'babel-eslint', | |
| parserOptions: { | |
| sourceType: 'module' | |
| }, | |
| env: { | |
| browser: true, | |
| }, | |
| extends: 'airbnb-base', | |
| // required to lint *.vue files | |
| plugins: [ | |
| 'html' | |
| ], | |
| // check if imports actually resolve | |
| 'settings': { | |
| 'import/resolver': { | |
| 'webpack': { | |
| 'config': 'build/webpack.base.conf.js' | |
| } | |
| } | |
| }, | |
| // add your custom rules here | |
| 'rules': { | |
| 'no-new': 0, | |
| 'no-return-assign': 0, | |
| 'global-require': 0, | |
| // don't require .vue extension when importing | |
| 'import/extensions': ['error', 'always', { | |
| 'js': 'never', | |
| 'vue': 'never' | |
| }], | |
| // allow optionalDependencies | |
| 'import/no-extraneous-dependencies': ['error', { | |
| 'optionalDependencies': ['test/unit/index.js'] | |
| }], | |
| // allow debugger during development | |
| 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment