Skip to content

Commit 9d3b02f

Browse files
authored
tweaking wording and order
1 parent d23982a commit 9d3b02f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/loaders/eslint.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ module.exports = {
4343

4444
const message = `No ESLint configration has been found.
4545
46-
${chalk.bgGreen.black('', 'FIX', '')} Run command ${chalk.yellow('./node_modules/.bin/eslint --init')} or create manually a ${chalk.yellow('.eslintrc.js')} file at the root of your project.
46+
${chalk.bgGreen.black('', 'FIX', '')} Run command ${chalk.yellow('./node_modules/.bin/eslint --init')} or manually create a ${chalk.yellow('.eslintrc.js')} file at the root of your project.
4747
48-
If you prefer to create a ${chalk.yellow('.eslintrc.js')} file by yourself, here is an example to get you started!
49-
50-
Install ${chalk.yellow('babel-eslint')} to prevent potential parsing issues with your code: ${packageHelper.getInstallCommand([[{ name: 'babel-eslint' }]])}
51-
52-
And then create the following file:
48+
If you prefer to create a ${chalk.yellow('.eslintrc.js')} file by yourself, here is an example to get you started:
5349
5450
${chalk.yellow(`// .eslintrc.js
5551
module.exports = {
5652
parser: 'babel-eslint',
5753
extends: ['eslint:recommended'],
5854
}
59-
`)}`;
55+
`)}
56+
57+
Install ${chalk.yellow('babel-eslint')} to prevent potential parsing issues: ${packageHelper.getInstallCommand([[{ name: 'babel-eslint' }]])}
58+
59+
`;
6060
throw new Error(message);
6161
}
6262

0 commit comments

Comments
 (0)