Skip to content

Commit

Permalink
fix(eslint): fix eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Feb 18, 2019
1 parent 89ff644 commit bbe7a0e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 23 deletions.
21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions cmds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function generate(argv) {
}
} catch (err) {
console.log(err);
console.log(chalk.yellow(`can't create folder, because it already exists`), `${folderPath}/${file}`);
console.log(chalk.yellow('cannot create folder, because it already exists'), `${folderPath}/${file}`);
}

// Add to tree
Expand Down Expand Up @@ -189,7 +189,7 @@ async function generate(argv) {
await fs.writeFile(`${docsFolder}/README.md`, readMeContent);
}

console.log(`\n${chalk.green.bold(`Finished! 👍 `)}`);
console.log(`\n${chalk.green.bold('Finished! 👍 ')}`);
});
}

Expand Down
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,35 @@
"prettier --write",
"git add"
]
},
"eslintConfig": {
"env": {
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readable",
"SharedArrayBuffer": "readable"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"no-console": "off",
"arrow-parens": [
"error",
"as-needed"
]
}
}
}

0 comments on commit bbe7a0e

Please sign in to comment.