Skip to content

Instantly share code, notes, and snippets.

@youngjuning
Last active December 29, 2018 07:55
Show Gist options
  • Save youngjuning/dbe2415ea9ea039fe6cac724d7fcc3b2 to your computer and use it in GitHub Desktop.
Save youngjuning/dbe2415ea9ea039fe6cac724d7fcc3b2 to your computer and use it in GitHub Desktop.
airbnb-base-eslintrc
module.exports = {
"extends": ["airbnb-base"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "script",
"ecmaFeatures": {
"impliedStrict": true,
}
},
"env": {
"node": true,
"browser": true,
"jest": true
},
"plugins": [
"html"
],
"rules": {
"linebreak-style": [2 ,"unix"],
"semi": [2, 'never'],
"max-len": [0,{ "code": 200 }],
"object-curly-newline": 0,
"global-require":0,
"no-unused-vars": [1, { "args": "none" }],
"no-shadow": [2, { "allow": ["err","error"] }],
"no-lone-blocks": 0,
"no-plusplus":0,
"no-param-reassign": 0,
}
}
module.exports = {
"extends": ["airbnb-base"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "script",
"ecmaFeatures": {
"impliedStrict": true,
}
},
"env": {
"node": true,
"jest": true
},
"rules": {
"linebreak-style": [2 ,"unix"],
"semi": [2, 'never'],
"max-len": [0,{ "code": 200 }],
"object-curly-newline": 0,
"global-require":0,
"no-unused-vars": [1, { "args": "none" }],
"no-shadow": [2, { "allow": ["err","error"] }],
"no-lone-blocks": 0,
"no-plusplus":0,
"no-param-reassign": 0,
}
}
@youngxiaoran
Copy link

module.exports = {
  "extends": ["airbnb-base"],
  "parserOptions": {
    "ecmaVersion": 2017,
    "sourceType": "script",
    "ecmaFeatures": {
      "impliedStrict": true,
    }
  },
  "env": {
    "node": true,
    "jest": true
  },
  "rules": {
    "linebreak-style": [2 ,"unix"],
    "semi": [2, 'never'],
    "max-len": [0,{ "code": 200 }],
    "object-curly-newline": 0,
    "global-require":0,
    "no-unused-vars": [1, { "args": "none" }],
    "no-shadow": [2, { "allow": ["err","error"] }],
    "no-lone-blocks": 0,
    "no-plusplus":0
  }
}

@youngjuning
Copy link
Author

youngjuning commented Dec 28, 2018

vue-cli 3

module.exports = {
  root: true,
  env: {
    node: true,
  },
  extends: [
    'plugin:vue/essential',
    '@vue/airbnb',
  ],
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'linebreak-style': [2, 'unix'],
    'semi': [2, 'never'],
    'max-len': [0, { code: 200 }],
    'object-curly-newline': 0,
    'global-require': 0,
    'no-unused-vars': 1,
    'no-shadow': [2, { allow: ['err', 'error'] }],
    'no-lone-blocks': 0,
    'no-plusplus': 0,
    'no-param-reassign': 0,
  },
  parserOptions: {
    parser: 'babel-eslint',
  },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment