ci: Setup eslint-import-resolver-typescript for improved TS linting (#4996)

* Setup stricter linting for typescript

* make `import/no-unresolved` an error everywhere

* use prettier to format `.vscode/settings.default.json`

* address PR comments
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-12-22 09:55:39 +01:00
committed by GitHub
parent 9568b747c7
commit 17f13b3b6e
21 changed files with 181 additions and 58 deletions

View File

@@ -1,14 +1,12 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}
*/
module.exports = {
extends: ['@n8n_io/eslint-config/frontend'],
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
extraFileExtensions: ['.vue'],
},
...sharedOptions(__dirname, 'frontend'),
rules: {
// TODO: Remove these