pgadmin4/web/.eslintrc.js

47 lines
745 B
JavaScript
Raw Normal View History

2017-06-12 10:55:14 -05:00
module.exports = {
'env': {
'browser': true,
'es6': true,
'amd': true,
'jasmine': true,
},
2017-06-13 03:50:41 -05:00
'extends': [
'eslint:recommended',
"plugin:react/recommended",
],
2017-06-12 10:55:14 -05:00
'parserOptions': {
'ecmaFeatures': {
'experimentalObjectRestSpread': true,
'jsx': true
},
'sourceType': 'module'
},
'plugins': [
'react'
],
'globals': {
'_': true,
'module': true,
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': 0,
2017-06-12 10:55:14 -05:00
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'comma-dangle': [
'error',
'always-multiline'
2017-06-13 03:50:41 -05:00
],
'no-console': ["error", { allow: ["warn", "error"] }],
},
};