mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 00:37:36 -06:00
61 lines
1.3 KiB
JavaScript
61 lines
1.3 KiB
JavaScript
/////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////
|
|
import globals from 'globals';
|
|
import js from '@eslint/js';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
files: ['**/*.js'],
|
|
ignores: [
|
|
'generated',
|
|
'node_modules',
|
|
'vendor',
|
|
'templates/',
|
|
'templates\\',
|
|
'ycache',
|
|
],
|
|
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,
|
|
},
|
|
},
|
|
];
|