In my .eslintrc.js
file, I have configured the following settings:
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
root: true,
env: {
node: true,
jest: true
},
ignorePatterns: ['.eslintrc.js'],
rules: {
// List of error rules specified here
}
};
Contents of my package.json file:
...
"scripts": {
"lint": "eslint \"{src,libs}/**/*.ts\" --fix",
"lint:ci": "eslint \"{src,libs}/**/*.ts\"",
...
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.12.1",
"@typescript-eslint/parser": "5.12.1",
...
List of errors encountered:
// List of errors listed here
I'm unsure of what else needs to be included in my configuration to get eslint
to work properly with the recommended rules. It seems like I'm just experimenting randomly based on the documentation in an attempt to resolve these errors.