mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(lint): Set no-unused-vars to warn (#4228)
* 👕 Set `no-unused-vars` to `warn` * 👕 Fix lint issue in `master` * ✏️ Fix plugin name
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @type {import('@types/eslint').ESLint.ConfigData}
|
||||
*/
|
||||
const config = module.exports = {
|
||||
const config = (module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
@@ -361,6 +361,13 @@ const config = module.exports = {
|
||||
*/
|
||||
'prefer-spread': 'error',
|
||||
|
||||
/**
|
||||
* https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-vars.md
|
||||
*
|
||||
* Disabled because eslint-plugin-diff fails to catch it. TODO: Revisit.
|
||||
*/
|
||||
'@typescript-eslint/no-unused-vars': 'warn',
|
||||
|
||||
// ----------------------------------
|
||||
// import
|
||||
// ----------------------------------
|
||||
@@ -370,7 +377,7 @@ const config = module.exports = {
|
||||
*/
|
||||
'import/prefer-default-export': 'off',
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
if ('ESLINT_PLUGIN_DIFF_COMMIT' in process.env) {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user