2021-01-29 02:08:27 -06:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2024-01-01 02:43:48 -06:00
|
|
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
2021-01-29 02:08:27 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
2024-07-01 00:57:42 -05:00
|
|
|
import globals from 'globals';
|
|
|
|
import js from '@eslint/js';
|
2021-01-29 02:08:27 -06:00
|
|
|
|
2024-07-01 00:57:42 -05:00
|
|
|
export default [
|
|
|
|
js.configs.recommended,
|
|
|
|
{
|
|
|
|
files: ['**/*.js'],
|
|
|
|
ignores: [
|
|
|
|
'generated',
|
|
|
|
'node_modules',
|
|
|
|
'vendor',
|
|
|
|
'templates/',
|
|
|
|
'templates\\',
|
|
|
|
'ycache',
|
2021-01-29 02:08:27 -06:00
|
|
|
],
|
2024-07-01 00:57:42 -05:00
|
|
|
languageOptions: {
|
|
|
|
ecmaVersion: 2022,
|
|
|
|
sourceType: 'module',
|
|
|
|
globals: {
|
|
|
|
...globals.browser,
|
|
|
|
...globals.es2017,
|
|
|
|
...globals.amd,
|
|
|
|
'_': 'readonly',
|
|
|
|
'module': 'readonly',
|
|
|
|
'process': 'readonly',
|
|
|
|
'platform': 'readonly',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'rules': {
|
|
|
|
'indent': [
|
|
|
|
'error',
|
|
|
|
2,
|
|
|
|
],
|
|
|
|
'linebreak-style': 0,
|
|
|
|
'quotes': [
|
|
|
|
'error',
|
|
|
|
'single',
|
|
|
|
],
|
|
|
|
'semi': [
|
|
|
|
'error',
|
|
|
|
'always',
|
|
|
|
],
|
|
|
|
'comma-dangle': [
|
|
|
|
'error',
|
|
|
|
'always-multiline',
|
|
|
|
],
|
|
|
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
|
|
// We need to exclude below for RegEx case
|
|
|
|
'no-useless-escape': 0,
|
|
|
|
},
|
2021-01-29 02:08:27 -06:00
|
|
|
},
|
2024-07-01 00:57:42 -05:00
|
|
|
];
|