feat: Allow eslint-config to be externally consumable (#6694)

* feat: Allow `eslint-config` to be externally consumable

* refactor: Adjust import styles
This commit is contained in:
Iván Ovejero 2023-07-19 09:35:10 +02:00 committed by GitHub
parent 0a31b8e2b4
commit 3566c13afc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}

View file

@ -1,7 +1,7 @@
/**
* @type {(dir: string, mode: 'frontend' | undefined) => import('@types/eslint').ESLint.ConfigData}
*/
exports.sharedOptions = (tsconfigRootDir, mode) => {
module.exports = (tsconfigRootDir, mode) => {
const isFrontend = mode === 'frontend';
const parser = isFrontend ? 'vue-eslint-parser' : '@typescript-eslint/parser';
const extraParserOptions = isFrontend

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}

View file

@ -1,4 +1,4 @@
const { sharedOptions } = require('@n8n_io/eslint-config/shared');
const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}