Skip to content

Commit

Permalink
Merge pull request #78 from brophdawg11/mjames/UW-24112-eslint-npm-de…
Browse files Browse the repository at this point in the history
…pendencies

UW-24112 Update eslint npm dependencies
  • Loading branch information
urbnjamesmi1 committed Nov 3, 2020
2 parents e90a7ed + 01efb2a commit 261d974
Show file tree
Hide file tree
Showing 3 changed files with 885 additions and 499 deletions.
24 changes: 12 additions & 12 deletions .eslintrc.js
Expand Up @@ -3,16 +3,16 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
parser: '@babel/eslint-parser',
sourceType: 'module',
},
env: {
browser: true,
jest: true,
},
extends: [
'airbnb-base',
'plugin:vue/recommended'
'plugin:vue/recommended',
],
plugins: [
'vue',
Expand All @@ -21,13 +21,13 @@ module.exports = {
// Kept from airbnb-base@13, that switched to 'always' in 14
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
// 4 space indent
'indent': [ 'error', 4 ],
indent: ['error', 4],
// Don't enforce newlines on function parens
'function-paren-newline': 'off',
// Max length 0f 80 characters in source code
'max-len': ['error', {
code: 100,
ignoreUrls: true
ignoreUrls: true,
}],
// Don't allow console.*, force logger usage
'no-console': 'error',
Expand All @@ -51,11 +51,11 @@ module.exports = {
// Allow max 2 attributes on a single line element, but once the
// element is spread across multiple, require one attribute per line
'vue/max-attributes-per-line': ['error', {
'singleline': 3,
'multiline': {
'max': 1,
'allowFirstLine': true
}
}]
singleline: 3,
multiline: {
max: 1,
allowFirstLine: true,
},
}],
},
}
};

0 comments on commit 261d974

Please sign in to comment.