SHARE
TWEET

Untitled

a guest May 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // http://eslint.org/docs/user-guide/configuring
  2.  
  3. module.exports = {
  4.   root: true,
  5.   parserOptions: {
  6.     parser: 'babel-eslint',
  7.     sourceType: 'module'
  8.   },
  9.   env: {
  10.     browser: true,
  11.   },
  12.   extends: [
  13.     'eslint:recommended',
  14.     'plugin:vue/recommended',
  15.   ],
  16.   // check if imports actually resolve
  17.   'settings': {
  18.     'import/resolver': {
  19.       'webpack': {
  20.         'config': 'build/webpack.base.conf.js'
  21.       }
  22.     }
  23.   },
  24.   // add your custom rules here
  25.   'rules': {
  26.     // don't require .vue extension when importing
  27.     'import/extensions': ['error', 'always', {
  28.       'js': 'never',
  29.       'vue': 'never'
  30.     }],
  31.     // allow optionalDependencies
  32.     'import/no-extraneous-dependencies': ['error', {
  33.       'optionalDependencies': ['test/unit/index.js']
  34.     }],
  35.     // allow debugger during development
  36.     'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
  37.     // allow import with script-loader in main.js
  38.     'import/no-webpack-loader-syntax': 0,
  39.     'no-console': 'off',
  40.     "vue/html-self-closing": "off",
  41.    
  42.   },
  43.   globals: {
  44.     'Foundation': false,
  45.     '$': false
  46.   }
  47. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top