Update codestyle: remove JS space in brackets; Fix formatting & lint
parent
4a7b1d60d5
commit
e099ff572f
|
@ -60,12 +60,10 @@ const app = express();
|
|||
|
||||
// setup CORS-middleware
|
||||
const corsOptions = {
|
||||
methods: [ 'GET' ],
|
||||
methods: ['GET'],
|
||||
optionsSuccessStatus: 200,
|
||||
};
|
||||
|
||||
let cronInitialized = false;
|
||||
|
||||
app.use(cors(corsOptions));
|
||||
|
||||
app.use(favicon(path.join(__dirname + '/..', 'public', 'favicon.ico')));
|
||||
|
@ -131,8 +129,8 @@ if (process.env.NODE_ENV === config.test.unit.env || process.env.NODE_ENV === co
|
|||
const mongoPortAndDB = mongoUri.replace('mongodb://localhost:', '').split('/');
|
||||
exec(
|
||||
__dirname + '/apib/dredd/populate-data.sh'
|
||||
.concat(' -p ').concat(mongoPortAndDB[ 0 ])
|
||||
.concat(' -d ').concat(mongoPortAndDB[ 1 ]), (err, stdout, stderr) => {
|
||||
.concat(' -p ').concat(mongoPortAndDB[0])
|
||||
.concat(' -d ').concat(mongoPortAndDB[1]), (err, stdout, stderr) => {
|
||||
if (err) {
|
||||
error(err.message);
|
||||
} else {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
<option name="RIGHT_MARGIN" value="120" />
|
||||
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
|
||||
<option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" />
|
||||
<option name="SPACE_WITHIN_BRACKETS" value="true" />
|
||||
<option name="CALL_PARAMETERS_WRAP" value="1" />
|
||||
<option name="METHOD_PARAMETERS_WRAP" value="1" />
|
||||
<option name="EXTENDS_KEYWORD_WRAP" value="1" />
|
||||
|
|
Loading…
Reference in New Issue