Add prettier and re-configure lint according to current best practises

This commit is contained in:
SleepWalker
2019-11-27 11:03:32 +02:00
parent 991031f211
commit d795ec164f
353 changed files with 23198 additions and 21951 deletions

View File

@@ -1,6 +1,6 @@
/* eslint-env node */
const path = require("path");
const { transform } = require("../../webpack-utils/intl-loader");
const path = require('path');
const { transform } = require('../../webpack-utils/intl-loader');
module.exports = {
/**
@@ -9,14 +9,10 @@ module.exports = {
* @param {{[key: string]: any}} config - jest config
* @param {{instrument: boolean}} options - additional options
*
* @return {string}
* @returns {string}
*/
// eslint-disable-next-line no-unused-vars
process(src, filename, config, options) {
return transform(
src,
filename,
path.resolve(`${__dirname}/../../..`)
);
}
return transform(src, filename, path.resolve(`${__dirname}/../../..`));
},
};