Skip to content

Commit 7b01ad0

Browse files
authored
chore: improve husky prettier config (#878)
* chore: improve husky, prettier, eslint config * chore: update tests & format scripts * chore: fix eslint config to handle classes correctly * chore: format all with new prettier rules * chore: update lint config * fix: props & test * chore: remove unused deps & update test script
1 parent 8359c1b commit 7b01ad0

File tree

389 files changed

+4664
-2894
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389 files changed

+4664
-2894
lines changed

.editorconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.yaml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

109
## Describe the bug

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
## Feature Description

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn lint-staged

.husky/pre-push

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
5+
"importOrder": ["^react$", "<THIRD_PARTY_MODULES>", "^@/(.*)$", "^[./]"],
6+
"importOrderSeparation": true,
7+
"importOrderSortSpecifiers": true
8+
}

e2e/create-question.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const genericInput = require('./po/generic-input');
22
const editQuestion = require('./po/edit-question');
33

44
module.exports = {
5-
'Should close the model if Cancel is clicked': browser => {
5+
'Should close the model if Cancel is clicked': (browser) => {
66
// PLEASE MAKE YOUR TESTS DATA AGNOSTICS
77
// browser
88
// .url(`${browser.globals.launch_url}/#/questionnaire/fr.insee-POPO-QPO-DOC`)
@@ -13,7 +13,7 @@ module.exports = {
1313
// .waitForElementNotPresent(editQuestion.Tabs)
1414
// .end()
1515
},
16-
'Should show declaration panel': browser => {
16+
'Should show declaration panel': (browser) => {
1717
// PLEASE MAKE YOUR TESTS DATA AGNOSTICS
1818
// browser
1919
// .url(`${browser.globals.launch_url}/#/questionnaire/fr.insee-POPO-QPO-DOC`)

0 commit comments

Comments
 (0)