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:
committed by
GitHub
parent
d6b930c7be
commit
69eb97999d
12
packages/node-dev/.eslintrc.js
Normal file
12
packages/node-dev/.eslintrc.js
Normal 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
|
||||
},
|
||||
};
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user