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,9 @@
/**
* @type {import('@types/eslint').ESLint.ConfigData}
*/
module.exports = {
extends: ['@n8n_io/eslint-config/base'],
rules: {
'import/order': 'off', // TODO: remove this
},
};

View File

@@ -18,8 +18,8 @@
"dev": "npm run watch",
"build": "tsc",
"format": "cd ../.. && node_modules/prettier/bin-prettier.js packages/workflow/**/**.ts --write",
"lint": "cd ../.. && node_modules/eslint/bin/eslint.js packages/workflow",
"lintfix": "cd ../.. && node_modules/eslint/bin/eslint.js packages/workflow --fix",
"lint": "eslint .",
"lintfix": "eslint . --fix",
"watch": "tsc --watch",
"test": "jest",
"test:dev": "jest --watch"
@@ -28,6 +28,7 @@
"dist"
],
"devDependencies": {
"@n8n_io/eslint-config": "",
"@types/express": "^4.17.6",
"@types/jest": "^27.4.0",
"@types/jmespath": "^0.15.0",
@@ -37,13 +38,6 @@
"@types/luxon": "^2.0.9",
"@types/node": "^16.11.22",
"@types/xml2js": "^0.4.3",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^27.4.7",
"jest-environment-jsdom": "^27.5.1",
"prettier": "^2.3.2",