mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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
39
packages/@n8n_io/eslint-config/frontend.js
Normal file
39
packages/@n8n_io/eslint-config/frontend.js
Normal file
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* @type {import('@types/eslint').ESLint.ConfigData}
|
||||
*/
|
||||
module.exports = {
|
||||
plugins: ['vue'],
|
||||
|
||||
extends: [
|
||||
'plugin:vue/essential',
|
||||
'@vue/typescript',
|
||||
'@n8n_io/eslint-config/base',
|
||||
],
|
||||
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
|
||||
parser: 'vue-eslint-parser',
|
||||
parserOptions: {
|
||||
parser: '@typescript-eslint/parser',
|
||||
},
|
||||
|
||||
ignorePatterns: [
|
||||
'**/*.js',
|
||||
'**/*.d.ts',
|
||||
'vite.config.ts',
|
||||
],
|
||||
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||
semi: [2, 'always'],
|
||||
indent: ['error', 'tab'],
|
||||
'comma-dangle': ['error', 'always-multiline'],
|
||||
'no-tabs': 0,
|
||||
'no-labels': 0,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user