Skip to content

Commit

Permalink
🎨 : add .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubuisson committed Apr 9, 2020
1 parent 9f9090c commit 1f5cc15
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = {
root: true,

env: {
node: true,
},

extends: [
'plugin:vue/recommended',
'@vue/airbnb',
],

rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
quotes: ['error', 'single'],
semi: ['error', 'always'],
indent: ['error', 2],
'max-len': ['error', 120],
'import/prefer-default-export': 0,
'vue/script-indent': ['error', 2, {baseIndent: 1, switchCase: 1, ignores: []}],
'vue/html-indent': ['error', 2, {baseIndent: 1, switchCase: 1, ignores: []}],
'padded-blocks': 'off'
},

parserOptions: {
parser: 'babel-eslint',
},

overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off',
},
},
],
};

0 comments on commit 1f5cc15

Please sign in to comment.