Skip to content

Commit 419dde1

Browse files
committed
Lint:fix
1 parent 17ce50a commit 419dde1

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

eslint.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export default [
2525
pluginJs.configs.recommended,
2626
eslintConfigPrettier,
2727
{
28-
ignores: ['tests/fixture/*', 'tests/fixture-ts/*', 'files/ember-cli-build.js'],
28+
ignores: [
29+
'tests/fixture/*',
30+
'tests/fixture-ts/*',
31+
'files/ember-cli-build.js',
32+
],
2933
},
3034
];

index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ module.exports = {
2424
let name = stringUtil.dasherize(rawName);
2525
let namespace = stringUtil.classify(rawName);
2626

27-
let hasOptions = !options.welcome || options.packageManager || options.ciProvider;
27+
let hasOptions =
28+
!options.welcome || options.packageManager || options.ciProvider;
2829
let blueprintOptions = '';
2930
if (hasOptions) {
3031
let indent = `\n `;
@@ -66,7 +67,8 @@ module.exports = {
6667
blueprintVersion: require('./package').version,
6768
yarn: options.packageManager === 'yarn',
6869
pnpm: options.packageManager === 'pnpm',
69-
npm: options.packageManager !== 'yarn' && options.packageManager !== 'pnpm',
70+
npm:
71+
options.packageManager !== 'yarn' && options.packageManager !== 'pnpm',
7072
invokeScriptPrefix,
7173
execBinPrefix,
7274
welcome: options.welcome,
@@ -93,7 +95,9 @@ module.exports = {
9395

9496
if (!options.typescript) {
9597
files = files.filter(
96-
(file) => !['tsconfig.json', 'app/config/', 'types/'].includes(file) && !file.endsWith('.d.ts')
98+
(file) =>
99+
!['tsconfig.json', 'app/config/', 'types/'].includes(file) &&
100+
!file.endsWith('.d.ts'),
97101
);
98102
}
99103

@@ -110,7 +114,12 @@ module.exports = {
110114
beforeInstall() {
111115
const prependEmoji = require('./lib/prepend-emoji');
112116

113-
this.ui.writeLine(prependEmoji('✨', `Creating a new Ember app in ${chalk.yellow(process.cwd())}:`));
117+
this.ui.writeLine(
118+
prependEmoji(
119+
'✨',
120+
`Creating a new Ember app in ${chalk.yellow(process.cwd())}:`,
121+
),
122+
);
114123
},
115124

116125
/**

lib/prepend-emoji.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
function supportEmoji() {
44
const hasEmojiTurnedOff = process.argv.indexOf('--no-emoji') > -1;
5-
return process.stdout.isTTY && process.platform !== 'win32' && !hasEmojiTurnedOff;
5+
return (
6+
process.stdout.isTTY && process.platform !== 'win32' && !hasEmojiTurnedOff
7+
);
68
}
79

810
const areEmojiSupported = supportEmoji();

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"main": "index.js",
1515
"scripts": {
1616
"lint": "concurrently 'pnpm:lint:*(!fix)'",
17+
"lint:fix": "pnpm lint:eslint && pnpm format",
1718
"lint:eslint": "eslint .",
1819
"lint:prettier": "prettier . --check",
1920
"format": "prettier . --write",

0 commit comments

Comments
 (0)