After successfully running eslint with the provided .eslintrc file, I encountered an issue when making a simple change to use 'standard' instead of 'airbnb-base' as the extend:
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
extends: 'standard',
plugins: [
'html'
],
'rules': {
'import/no-unresolved': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
}
This modification resulted in an error during the build process:
ERROR in ./src/main.js
Module build failed: Error: standard:
Configuration for rule "eqeqeq" is invalid:
Value "always,[object Object]" has more items than allowed.
I can confirm that there are no equality operations present in the main.js file.
To address this issue, I transitioned from using 'airbnb-base' to 'standard' after installing standard post airbnb-base by running the following command:
npm install --save-dev eslint-config-standard eslint-plugin-standard eslint-plugin-promise
The version of eslint being used is 3.17.0. Any suggestions on how to resolve this?