A eslint config for for 'hz-9' (TypeScript).
To install the @hz-9/eslint-config-airbnb-ts
package, run the following command:
npm install @hz-9/eslint-config-airbnb-ts --save-dev
To use this configuration, add the following code to your .eslintrc.js
file:
module.exports = {
extends: [
'@hz-9/eslint-config-airbnb-ts/node'
],
parserOptions: {
tsconfigRootDir: __dirname,
},
}
After that, you can run the ESLint fix command to automatically fix linting issues:
eslint --fix .
You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser
You can set parseOptions.project
params.
module.exports = {
extends: [
'@hz-9/eslint-config-airbnb-ts/node'
],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
},
}