Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UW-24112 Update eslint npm dependencies #78

Merged
merged 3 commits into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
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,
},
}],
},
}
};
Loading