mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
59 lines
1.4 KiB
JavaScript
59 lines
1.4 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
jest: true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:cypress/recommended',
|
|
],
|
|
ignorePatterns: ['.eslintrc.js'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 12,
|
|
sourceType: 'module',
|
|
project: ['./tsconfig.json'],
|
|
"warnOnUnsupportedTypeScriptVersion": false
|
|
},
|
|
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,
|
|
'no-unsafe-optional-chaining': 'off',
|
|
'@typescript-eslint/ban-types': [
|
|
'error',
|
|
{
|
|
types: {
|
|
object: false,
|
|
},
|
|
extendDefaults: true,
|
|
},
|
|
],
|
|
},
|
|
};
|