Skip to content

Commit

Permalink
Merge pull request #392 from bcgov/update-eslint-and-eslint-parser
Browse files Browse the repository at this point in the history
Updated eslint and eslint-parser version
  • Loading branch information
esune authored Nov 30, 2023
2 parents 2e28ff4 + 5d8e18c commit 363d841
Show file tree
Hide file tree
Showing 3 changed files with 7,183 additions and 20,357 deletions.
48 changes: 26 additions & 22 deletions demo/vue/app/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,28 @@ module.exports = {
env: {
es6: true,
jest: true,
node: true
node: true,
},
extends: ['plugin:vue/essential', 'eslint:recommended'],
plugins: ['vuetify'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
_: false
_: false,
},
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 8
parser: '@babel/eslint-parser',
ecmaVersion: 8,
},
rules: {
'eol-last': ['error', 'always'],
indent: ['error', 2, {
'SwitchCase': 1
}],
indent: [
'error',
2,
{
SwitchCase: 1,
},
],
'linebreak-style': ['error', 'unix'],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
Expand All @@ -30,8 +34,8 @@ module.exports = {
'off',
{
singleline: 'never',
multiline: 'never'
}
multiline: 'never',
},
],
'vue/html-indent': [
'error',
Expand All @@ -41,40 +45,40 @@ module.exports = {
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}
ignores: [],
},
],
'vue/max-attributes-per-line': [
'off',
{
singleline: 1,
multiline: {
max: 1,
allowFirstLine: true
}
}
allowFirstLine: true,
},
},
],
'vue/multi-word-component-names': 'off',
'vue/no-multi-spaces': [
'error',
{
ignoreProperties: false
}
ignoreProperties: false,
},
],
'vue/no-spaces-around-equal-signs-in-attribute': ['error'],
'vuetify/no-deprecated-classes': 'error',
'vuetify/grid-unknown-attributes': 'error',
'vuetify/no-legacy-grid': 'error'
'vuetify/no-legacy-grid': 'error',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true
}
}
]
jest: true,
},
},
],
};
Loading

0 comments on commit 363d841

Please sign in to comment.