fix(eslint): setup eslint to run on every package - N8N-4553 (#4050)

* fix(eslint): setup eslint to run on every package

Also, unify eslint config and dependencies into a private package in the workspace.
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-09-12 11:41:50 +02:00
committed by GitHub
parent d6b930c7be
commit 69eb97999d
25 changed files with 1041 additions and 1633 deletions

View File

@@ -0,0 +1,12 @@
/**
* @type {import('@types/eslint').ESLint.ConfigData}
*/
module.exports = {
extends: ['@n8n_io/eslint-config/base'],
ignorePatterns: [
'templates/**', // TODO: remove this
],
rules: {
'import/order': 'off', // TODO: remove this
},
};

View File

@@ -23,8 +23,8 @@
"build": "",
"build-node-dev": "tsc",
"format": "cd ../.. && node_modules/prettier/bin-prettier.js packages/node-dev/**/**.ts --write",
"lint": "cd ../.. && node_modules/eslint/bin/eslint.js packages/node-dev",
"lintfix": "cd ../.. && node_modules/eslint/bin/eslint.js packages/node-dev --fix",
"lint": "eslint .",
"lintfix": "eslint . --fix",
"postpack": "rm -f oclif.manifest.json",
"prepack": "echo \"Building project...\" && rm -rf dist && tsc -b && oclif-dev manifest",
"watch": "tsc --watch"
@@ -46,6 +46,7 @@
"src/tsconfig-build.json"
],
"devDependencies": {
"@n8n_io/eslint-config": "",
"@oclif/dev-cli": "^1.22.2",
"@types/copyfiles": "^2.1.1",
"@types/express": "^4.17.6",