Iván Ovejero
88724bb056
ci: Enforce no unused imports (no-changelog) ( #6073 )
2023-04-25 11:47:03 +02:00
कारतोफ्फेलस्क्रिप्ट™
c7b1920943
ci: Update linting dependencies, and setup eslint-plugin-unicorn (no-changelog) ( #6070 )
2023-04-24 14:47:13 +02:00
Iván Ovejero
57aab63c10
refactor: Integrate consistent-type-imports
in FE packages (no-changelog) ( #6060 )
...
* 👕 Move `consistent-type-imports` to top level
* 👕 Apply lintfixes
* 👕 Apply more lintfixes
* 👕 More lintfixes
* 👕 More lintfixes
2023-04-24 12:18:24 +02:00
Michael Kret
0e93fe064e
refactor(core): Forbid raw enums (no-changelog)
2023-04-21 14:23:15 +03:00
Iván Ovejero
946f7f38ba
ci: Fix catch clause lint rule ( #5875 )
...
🐛 Fix catch clause lint rule
2023-03-31 19:16:51 +02:00
Iván Ovejero
62751b5a0b
refactor: Add lint rule no-unused-param-in-catch-clause
( #5868 )
...
👕 Add lint rule `no-unused-param-in-catch-clause`
2023-03-31 16:44:08 +02:00
Iván Ovejero
d548161632
feat(core): Security audit ( #5034 )
...
* ✨ Implement security audit
* ⚡ Use logger
* 🧪 Fix test
* ⚡ Switch logger with stdout
* 🎨 Set new logo
* ⚡ Fill out Public API schema
* ✏️ Fix typo
* ⚡ Break dependency cycle
* ⚡ Add security settings values
* 🧪 Test security settings
* ⚡ Add publicly accessible instance warning
* ⚡ Add metric to CLI command
* ✏️ Fix typo
* 🔥 Remove unneeded path alias
* 📘 Add type import
* 🔥 Remove inferrable output type
* ⚡ Set description at correct level
* ⚡ Rename constant for consistency
* ⚡ Sort URLs
* ⚡ Rename local var
* ⚡ Shorten name
* ✏️ Improve phrasing
* ⚡ Improve naming
* ⚡ Fix casing
* ✏️ Add docline
* ✏️ Relocate comment
* ⚡ Add singular/plurals
* 🔥 Remove unneeded await
* ✏️ Improve test description
* ⚡ Optimize with sets
* ⚡ Adjust post master merge
* ✏️ Improve naming
* ⚡ Adjust in spy
* 🧪 Fix outdated instance test
* 🧪 Make diagnostics check consistent
* ⚡ Refactor `getAllExistingCreds`
* ⚡ Create helper `getNodeTypes`
* 🐛 Fix `InternalHooksManager` call
* 🚚 Rename `execution` to `nodes` risk
* ⚡ Add options to CLI command
* ⚡ Make days configurable
* :revert: Undo changes to `BaseCommand`
* ⚡ Improve CLI command UX
* ⚡ Change no-report return value
Empty array to trigger empty state on FE.
* ⚡ Add empty check to `reportInstanceRisk`
* 🧪 Extend Jest `expect`
* 📘 Augment `jest.Matchers`
* 🧪 Set extend as setup file
* 🔧 Override lint rule for `.d.ts`
* ⚡ Use new matcher
* ⚡ Update check
* 📘 Improve typings
* ⚡ Adjust instance risk check
* ✏️ Rename `execution` → `nodes` in Public API schema
* ✏️ Add clarifying comment
* ✏️ Fix typo
* ⚡ Validate categories in CLI command
* ✏️ Improve naming
* ✏️ Make audit reference consistent
* 📘 Fix typing
* ⚡ Use `finally` in CLI command
2023-01-05 13:28:40 +01:00
Iván Ovejero
0b47f9ce4e
refactor: Lint for no interpolation in regular string ( #5060 ) (no-changelog)
...
* ✨ Create rule `no-interpolation-in-regular-string`
* 👕 Enable rule
* ⚡ Run rule (no issues) and add exception
* ⚡ Simplify regex
To account for expressions and to make it less expensive
2022-12-29 14:24:19 +01:00
Iván Ovejero
d9b98fc8be
refactor: Lint for no unneeded backticks ( #5057 ) (no-changelog)
...
* ✨ Create rule `no-unneeded-backticks`
* 👕 Enable rule
* ⚡ Run rule on `cli`
* ⚡ Run rule on `core`
* ⚡ Run rule on `workflow`
* ⚡ Rule rule on `design-system`
* ⚡ Run rule on `node-dev`
* ⚡ Run rule on `editor-ui`
* ⚡ Run rule on `nodes-base`
2022-12-29 12:20:43 +01:00
कारतोफ्फेलस्क्रिप्ट™
0333b053ee
fix: Fix the linting issue on master (no-changelog) ( #5013 )
...
* get rid of the "`parseForESLint` from parser `@typescript-eslint/parser` is invalid" errors
* fix the formatting issue
2022-12-22 09:42:07 -06:00
कारतोफ्फेलस्क्रिप्ट™
17f13b3b6e
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
2022-12-22 09:55:39 +01:00
Iván Ovejero
0e4cda5763
refactor: Phase out TSLint in editor-ui
(no-changelog) ( #4935 )
...
* 🔥 Remove `tslint.json`
* 🔥 Remove TSLint commands
* 🔥 Remove exceptions in `editor-ui`
* 🔥 Remove from `.npmignore`
* 🔥 Remove from `eslint-config`
* 🔥 Remove exception from `design-system`
* 🎨 Prettify
* 📦 Update pnpm-lock
* 🔥 Remove duplicate import
* 🔥 Remove exemption for `no-explicit-any`
* 👕 Inline `no-explicit-any` exemptions
2022-12-15 14:06:00 +01:00
Iván Ovejero
7b819ad5a1
refactor: Disable ESLint indent
rule (no-changelog) ( #4828 )
...
* 👕 Disable ESLint `indent` rule
* 🔥 Remove redundant rule
2022-12-06 16:07:26 +01:00
Iván Ovejero
cfd32d2642
refactor: Phase out TSLint in nodes-base
(no-changelog) ( #4798 )
...
* 🔥 Remove TSLint scripts
* 🔥 Remove TSLint config
* 🔥 Remove TSLint exceptions
* 👕 Adjust lint config
* ✏️ Add story numbers
2022-12-02 15:25:21 +01:00
कारतोफ्फेलस्क्रिप्ट™
ada73ed41d
ci: Fix linting issues on master (no-changelog) ( #4768 )
...
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2022-11-30 12:16:19 +01:00
कारतोफ्फेलस्क्रिप्ट™
600b285a44
refactor: Migrate Vue slots to the new syntax ( #4603 )
...
Co-authored-by: Alex Grozav <alex@grozav.com>
2022-11-18 14:59:31 +01:00
कारतोफ्फेलस्क्रिप्ट™
53d2526cd1
ci: Fix linting by ignoring eslintrc and jest.config again (no-changelog) ( #4613 )
...
ci: Fix linting on by ignoring eslintrc and jest.config (no-changelog)
2022-11-15 19:56:50 +01:00
कारतोफ्फेलस्क्रिप्ट™
13659d036f
ci: Ensure that eslint runs on all frontend code (no-changelog) ( #4602 )
...
* ensure that eslint runs on all frontend code
* remove tslint from `design-system`
* enable prettier and eslint-prettier for `design-system`
* Delete tslint.json
* use a single editorconfig for the repo
* enable prettier for all code in `design-system`
* more linting fixes on design-system
* ignore coverage for git and prettier
* lintfix on editor-ui
2022-11-15 18:20:54 +01:00
कारतोफ्फेलस्क्रिप्ट™
0148631d28
build: Upgrade some of the backend dev-tooling (no-changelog) ( #4589 )
...
* upgrade ts-node
* move tslint and typescript to a single place
* source-map-support should be loaded in the `n8n` bin script, and not in core
* upgrade jest
* Support only node.js 14, 16, or 18
2022-11-14 15:37:32 +01:00
Iván Ovejero
52f38df867
refactor: Remove unused vars to fix build (no-changelog) ( #4584 )
...
* 🔥 Remove unused vars to fix build
* 👕 Make unused vars severity conditional
2022-11-11 16:07:50 +01:00
कारतोफ्फेलस्क्रिप्ट™
736777385c
feat: Switch from npm to pnpm ( #4429 )
2022-11-09 17:32:05 +01:00
Michael Kret
479644a499
refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ ( #4523 )
...
* ⚡ rule and fixes
* ⚡ clean up
2022-11-08 15:28:21 +01:00
Iván Ovejero
ec5ef0c50d
refactor(core): clear @ts-ignore
from workflow and core packages ( #4467 )
...
* 📘 Clear all `@ts-ignore` comments from workflow package
* 👕 Default to error with package-level overrides
* refactor(core): clear all `@ts-ignore` comments from core package (#4473 )
👕 Clear all `@ts-ignore` comments from core package
* ✏️ Update comment
2022-10-31 12:45:34 +01:00
Iván Ovejero
641d904ee4
refactor: set ESLint to warn on ts-ignore
comment ( #4465 )
...
👕 Set `ban-ts-comment` to warn on @ts-ignore
2022-10-28 10:35:31 +02:00
कारतोफ्फेलस्क्रिप्ट™
99157cf581
feat: setup nightly tests for postgres and mysql schemas ( #4441 )
...
* feat: unify Jest config
* feat: simplify DB setup for tests
* feat: setup nightly tests for postgres and mysql schemas
2022-10-25 22:06:03 +02:00
Iván Ovejero
1732324965
fix(core): amend typing for jsonParse()
options ( #4423 )
...
* 📘 Amend typing for `jsonParse()` options
* ✏️ Update rule message and description
* 🔀 Cherrypick Adi's work
* 🐛 Account for falsy fallback values
* ♻️ Use `else if`
* ⚡ Add explicit error message as type
* ⚡ Consolidate utils tests
* ♻️ Use optional chaining
* 🔥 Remove patchy type error
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2022-10-24 12:48:16 +02:00
Michael Kret
1d57b10942
refactor(core): fix for no-uncaught-json-parse warnings
2022-10-21 21:52:43 +03:00
Michael Kret
9d6a2c32d7
refactor(core): fixes n8n-local-rules/no-json-parse-json-stringify warnings ( #4407 )
...
* 🔨 fixes
* 🔨 set rule to error
2022-10-21 17:24:58 +02:00
Iván Ovejero
6a1838d8c1
refactor: lint for inefficient deep clones ( #4378 )
...
* 👕 Create rule `no-json-parse-json-stringify`
* 🧪 Add tests
* 👕 Enable new rule
* 👕 FIx unrelated lint issue
2022-10-19 09:36:25 +02:00
Iván Ovejero
64fffa0579
fix(lint): Set no-unused-vars
to warn
( #4228 )
...
* 👕 Set `no-unused-vars` to `warn`
* 👕 Fix lint issue in `master`
* ✏️ Fix plugin name
2022-09-29 12:47:07 +02:00
कारतोफ्फेलस्क्रिप्ट™
bc42073e28
ci: Use eslint-plugin-diff
only on the CI ( #4194 )
2022-09-26 14:43:52 +02:00
Mike Arvela
31391a5b19
feat(eslint-config): add custom eslint rule 'no-uncaught-json-parse' ( #4087 )
...
feat(eslint-config): add custom eslint rule 'no-uncaugh-json-parse'
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2022-09-26 11:08:59 +03:00
Iván Ovejero
a2441b8e3f
refactor(ci): Lint PR diffs only ( #4137 )
...
* ✨ Set up `eslint-plugin-diff`
* 🔧 Fix setup
* ⬆️ Upgrade `checkout` and `setup-node`
* 🔧 Fix YAML
* 🧪 Verify `eslint-plugin-diff` behavior
* Revert "🧪 Verify `eslint-plugin-diff` behavior"
This reverts commit 1fcc6c8299
.
* ✏️ Fix comment
2022-09-21 10:24:39 +02:00
कारतोफ्फेलस्क्रिप्ट™
69eb97999d
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.
2022-09-12 11:41:50 +02:00