pgadmin4/web/.eslintrc.js

53 lines
995 B
JavaScript
Raw Normal View History

2019-01-02 10:24:12 +00:00
/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
2020-01-02 14:43:50 +00:00
// Copyright (C) 2013 - 2020, The pgAdmin Development Team
2019-01-02 10:24:12 +00:00
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
2017-06-12 15:55:14 +00:00
module.exports = {
'env': {
'browser': true,
'es6': true,
'amd': true,
'jasmine': true,
},
'extends': [
'eslint:recommended',
],
2017-06-12 15:55:14 +00:00
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module',
2017-06-12 15:55:14 +00:00
},
'plugins': [
],
'globals': {
'_': true,
'module': true,
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': 0,
2017-06-12 15:55:14 +00:00
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'comma-dangle': [
'error',
'always-multiline'
2017-06-13 08:50:41 +00:00
],
'no-console': ["error", { allow: ["warn", "error"] }],
// We need to exclude below for RegEx case
"no-useless-escape": 0,
},
};