mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
69eb97999d
* fix(eslint): setup eslint to run on every package Also, unify eslint config and dependencies into a private package in the workspace.
40 lines
715 B
JavaScript
40 lines
715 B
JavaScript
/**
|
|
* @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,
|
|
},
|
|
};
|