I have set up a simple Node/Express + Typescript application
app.listen(PORT, (): void => {
console.log(`app is running in ${environment} and listening on port ${PORT}!`);
});
I am encountering an error and I am unsure of the cause?
Replace
PORT,
with⏎··PORT,⏎·
(prettier/prettier)Insert
··
(prettier/prettier)Replace
}
with··},⏎
(prettier/prettier)
Attempting to resolve these errors displayed in Codacy dashboard triggers ESLint errors in Vscode. I am uncertain how to disable them as Codacy might be reading it from the eslintrc file. Here is my eslintrc configuration:
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'@typescript-eslint/no-unused-vars': 'error',
'array-callback-return': 'error',
// "no-console": "error",
// these we probably do not care about
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
Any suggestions or insights?