2019-01-02 04:24:12 -06:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2022-01-04 02:24:25 -06:00
|
|
|
// Copyright (C) 2013 - 2022, The pgAdmin Development Team
|
2019-01-02 04:24:12 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
2017-06-12 10:55:14 -05:00
|
|
|
module.exports = {
|
|
|
|
'env': {
|
|
|
|
'browser': true,
|
|
|
|
'es6': true,
|
|
|
|
'amd': true,
|
|
|
|
'jasmine': true,
|
|
|
|
},
|
2019-04-05 02:37:43 -05:00
|
|
|
'extends': [
|
|
|
|
'eslint:recommended',
|
2020-07-29 04:19:22 -05:00
|
|
|
'plugin:react/recommended',
|
2021-12-01 06:13:20 -06:00
|
|
|
/* Uncomment the below line to use linter error for React Hooks.
|
|
|
|
By Default commented so that builds are generated successfully.
|
|
|
|
Once all the errors will be resolved will uncomment it and commit it.
|
|
|
|
*/
|
|
|
|
// "plugin:react-hooks/recommended",
|
2019-04-05 02:37:43 -05:00
|
|
|
],
|
2021-02-10 01:17:52 -06:00
|
|
|
'parser': '@babel/eslint-parser',
|
2017-06-12 10:55:14 -05:00
|
|
|
'parserOptions': {
|
2021-02-10 01:17:52 -06:00
|
|
|
'requireConfigFile': false,
|
2019-03-14 10:11:16 -05:00
|
|
|
'ecmaVersion': 2018,
|
2020-07-29 04:19:22 -05:00
|
|
|
'ecmaFeatures': {
|
2021-02-10 01:17:52 -06:00
|
|
|
'jsx': true,
|
2020-07-29 04:19:22 -05:00
|
|
|
},
|
2019-03-14 10:11:16 -05:00
|
|
|
'sourceType': 'module',
|
2021-02-10 01:17:52 -06:00
|
|
|
'babelOptions': {
|
|
|
|
'plugins': [
|
|
|
|
'@babel/plugin-syntax-jsx',
|
2021-04-08 07:26:18 -05:00
|
|
|
'@babel/plugin-proposal-class-properties',
|
2021-02-10 01:17:52 -06:00
|
|
|
],
|
|
|
|
},
|
2017-06-12 10:55:14 -05:00
|
|
|
},
|
|
|
|
'plugins': [
|
2021-02-10 01:17:52 -06:00
|
|
|
'react',
|
|
|
|
'@babel',
|
2017-06-12 10:55:14 -05:00
|
|
|
],
|
|
|
|
'globals': {
|
|
|
|
'_': true,
|
|
|
|
'module': true,
|
|
|
|
},
|
|
|
|
'rules': {
|
|
|
|
'indent': [
|
|
|
|
'error',
|
2021-02-10 01:17:52 -06:00
|
|
|
2,
|
2017-06-12 10:55:14 -05:00
|
|
|
],
|
2017-11-23 03:34:44 -06:00
|
|
|
'linebreak-style': 0,
|
2017-06-12 10:55:14 -05:00
|
|
|
'quotes': [
|
|
|
|
'error',
|
2021-02-10 01:17:52 -06:00
|
|
|
'single',
|
2017-06-12 10:55:14 -05:00
|
|
|
],
|
|
|
|
'semi': [
|
|
|
|
'error',
|
2021-02-10 01:17:52 -06:00
|
|
|
'always',
|
2017-06-12 10:55:14 -05:00
|
|
|
],
|
|
|
|
'comma-dangle': [
|
|
|
|
'error',
|
2021-02-10 01:17:52 -06:00
|
|
|
'only-multiline',
|
2017-06-13 03:50:41 -05:00
|
|
|
],
|
2021-02-10 01:17:52 -06:00
|
|
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
2019-04-05 02:37:43 -05:00
|
|
|
// We need to exclude below for RegEx case
|
2021-02-10 01:17:52 -06:00
|
|
|
'no-useless-escape': 0,
|
|
|
|
'no-prototype-builtins': 0,
|
|
|
|
'no-global-assign': 0,
|
|
|
|
'no-import-assign': 0,
|
2017-10-24 06:26:17 -05:00
|
|
|
},
|
2020-07-29 04:19:22 -05:00
|
|
|
'settings': {
|
|
|
|
'react': {
|
|
|
|
'version': 'detect',
|
|
|
|
},
|
2021-02-10 01:17:52 -06:00
|
|
|
},
|
2017-10-24 06:26:17 -05:00
|
|
|
};
|