From ba1013cbc2fdec883ce79ba64ed98f8d50dd0abe Mon Sep 17 00:00:00 2001 From: Amar Ubhe Date: Wed, 11 Sep 2024 18:06:38 +0530 Subject: [PATCH] Pre commit rules added --- .lintstagedrc.json | 3 +++ .prettierignore | 2 ++ generators/app/index.js | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .lintstagedrc.json diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 0000000..5189da9 --- /dev/null +++ b/.lintstagedrc.json @@ -0,0 +1,3 @@ +{ + "*.js": "eslint" +} diff --git a/.prettierignore b/.prettierignore index b6fe938..6999437 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,5 @@ test/*/ # Ignore all source files using the placeholders to kill the syntax +generators/app/templates/webapp/Component.js +generators/app/templates/webapp/test/* \ No newline at end of file diff --git a/generators/app/index.js b/generators/app/index.js index 20f8256..552a4f2 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -105,7 +105,7 @@ export default class extends Generator { type: "checkbox", name: "features", message: "Do you want to add sample code?", - choices: (props) => { + choices: () => { return [ "Add button to launchpad header", "Add a launchpad footer with button",