mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
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 1fcc6c82996f89c2be88899978524b00b898ee8f. * ✏️ Fix comment
This commit is contained in:
@@ -33,6 +33,13 @@ module.exports = {
|
||||
* https://github.com/prettier/eslint-plugin-prettier
|
||||
*/
|
||||
'eslint-plugin-prettier',
|
||||
|
||||
/**
|
||||
* Plugin to lint only changes
|
||||
*
|
||||
* https://github.com/paleite/eslint-plugin-diff#plugindiffdiff-recommended
|
||||
*/
|
||||
'eslint-plugin-diff',
|
||||
],
|
||||
|
||||
extends: [
|
||||
@@ -64,6 +71,13 @@ module.exports = {
|
||||
* https://github.com/prettier/eslint-config-prettier
|
||||
*/
|
||||
'eslint-config-prettier',
|
||||
|
||||
/**
|
||||
* Config for eslint-plugin-diff
|
||||
*
|
||||
* https://github.com/paleite/eslint-plugin-diff#plugindiffdiff-recommended
|
||||
*/
|
||||
'plugin:diff/diff',
|
||||
],
|
||||
|
||||
rules: {
|
||||
@@ -180,10 +194,7 @@ module.exports = {
|
||||
/**
|
||||
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
|
||||
*/
|
||||
'@typescript-eslint/explicit-member-accessibility': [
|
||||
'error',
|
||||
{ accessibility: 'no-public' },
|
||||
],
|
||||
'@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'no-public' }],
|
||||
|
||||
/**
|
||||
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md
|
||||
|
||||
Reference in New Issue
Block a user