mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
ESLintify Part 3 (#846)
* ESLintify Part 3 * ESLintify Part 3 * ESLintify Part 3
This commit is contained in:
parent
5ac2cee658
commit
a7a214fb3a
54 changed files with 435 additions and 497 deletions
|
@ -10,7 +10,7 @@
|
|||
require('babel-polyfill');
|
||||
require('babel-register')({
|
||||
babelrc: false,
|
||||
only: [__dirname, process.cwd() + '/core'],
|
||||
only: [__dirname, `${process.cwd()}/core`],
|
||||
plugins: [
|
||||
require('./server/translate-plugin.js'),
|
||||
'transform-class-properties',
|
||||
|
@ -25,7 +25,7 @@ const fs = require('fs');
|
|||
|
||||
const CWD = process.cwd();
|
||||
|
||||
if (!fs.existsSync(CWD + '/siteConfig.js')) {
|
||||
if (!fs.existsSync(`${CWD}/siteConfig.js`)) {
|
||||
console.error(
|
||||
chalk.red('Error: No siteConfig.js file found in website folder!')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue