mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-29 09:27:32 +00:00
* lint fixes: frontend * lint fixes: marketplace * lint fixes: plugins-client js files * typo fix * eslint updates/fixes for marketplace * eslint updates/fixes for plugins * removing "@typescript-eslint/no-floating-promises for plugins" * ignore client.js and server.js * ignore client.js and server.js * ignore client.js and server.tss * Delete client.js * ignore cypress-test/**
50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
module.exports = {
|
|
env: {
|
|
node: true,
|
|
jest: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
ignorePatterns: ['.eslintrc.js'],
|
|
parser: '@typescript-eslint/parser',
|
|
overrides: [
|
|
{
|
|
files: ['*.ts'],
|
|
parserOptions: {
|
|
project: ['./tsconfig.json'],
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
},
|
|
],
|
|
plugins: ['@typescript-eslint', 'jest', 'prettier'],
|
|
rules: {
|
|
'prettier/prettier': [
|
|
'error',
|
|
{
|
|
semi: true,
|
|
trailingComma: 'es5',
|
|
printWidth: 120,
|
|
singleQuote: true,
|
|
},
|
|
],
|
|
'@typescript-eslint/interface-name-prefix': 'off',
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['error', { vars: 'all', args: 'none' }],
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
'@typescript-eslint/no-empty-function': 0,
|
|
'@typescript-eslint/ban-types': [
|
|
'error',
|
|
{
|
|
types: {
|
|
object: false,
|
|
},
|
|
extendDefaults: true,
|
|
},
|
|
],
|
|
},
|
|
};
|