mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
6fb8a9ee39
* ci: Fix linting (no-changelog) * lintfix for nodes-base as well
57 lines
1.3 KiB
JavaScript
57 lines
1.3 KiB
JavaScript
const sharedOptions = require('@n8n_io/eslint-config/shared');
|
|
|
|
/**
|
|
* @type {import('@types/eslint').ESLint.ConfigData}
|
|
*/
|
|
module.exports = {
|
|
extends: ['@n8n_io/eslint-config/frontend'],
|
|
|
|
...sharedOptions(__dirname, 'frontend'),
|
|
|
|
rules: {
|
|
'n8n-local-rules/dangerously-use-html-string-missing': 'off',
|
|
|
|
// TODO: Remove these
|
|
'import/no-default-export': 'warn',
|
|
'import/order': 'off',
|
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
|
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
'@typescript-eslint/prefer-optional-chain': 'warn',
|
|
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
|
|
},
|
|
|
|
overrides: [
|
|
{
|
|
files: ['src/**/*.stories.ts'],
|
|
rules: {
|
|
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
|
|
},
|
|
},
|
|
{
|
|
files: ['src/**/*.stories.ts', 'src/**/*.vue', 'src/**/*.spec.ts'],
|
|
rules: {
|
|
'@typescript-eslint/naming-convention': [
|
|
'warn',
|
|
{
|
|
selector: ['variable', 'property'],
|
|
format: ['PascalCase', 'camelCase', 'UPPER_CASE'],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['src/components/N8nFormInput/validators.ts'],
|
|
rules: {
|
|
'@typescript-eslint/naming-convention': [
|
|
'error',
|
|
{
|
|
selector: ['property'],
|
|
format: ['camelCase', 'UPPER_CASE'],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
};
|