mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
update eslintrc
This commit is contained in:
parent
4ecbc01df6
commit
ceea914b4a
|
@ -3,30 +3,20 @@ module.exports = {
|
||||||
env: {
|
env: {
|
||||||
node: true,
|
node: true,
|
||||||
},
|
},
|
||||||
extends: [
|
'extends': [
|
||||||
'plugin:vue/essential',
|
'plugin:vue/essential',
|
||||||
'eslint:recommended',
|
'@vue/typescript',
|
||||||
'@vue/typescript/recommended',
|
|
||||||
'@vue/prettier',
|
|
||||||
'@vue/prettier/@typescript-eslint',
|
|
||||||
],
|
],
|
||||||
parserOptions: {
|
|
||||||
ecmaVersion: 2020,
|
|
||||||
},
|
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : '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,
|
||||||
},
|
},
|
||||||
ignorePatterns: ['gulpfile.js'],
|
parserOptions: {
|
||||||
overrides: [
|
parser: '@typescript-eslint/parser',
|
||||||
{
|
|
||||||
files: [
|
|
||||||
'**/__tests__/*.{j,t}s?(x)',
|
|
||||||
'**/tests/unit/**/*.spec.{j,t}s?(x)',
|
|
||||||
],
|
|
||||||
env: {
|
|
||||||
jest: true,
|
|
||||||
},
|
},
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue