Skip to content

Commit 9ed1c6a

Browse files
committed
Add prettier and eslint config
1 parent 1f4e7b2 commit 9ed1c6a

File tree

5 files changed

+42
-4
lines changed

5 files changed

+42
-4
lines changed

.eslintcache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/webapp/public/**
1+
/webapp/public/**
2+
/webapp/javascript/util/**
3+
/webapp/__tests__/**

.eslintrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"parser": "babel-eslint",
3-
"extends": ["airbnb"],
4-
"rules": {}
3+
"plugins": ["prettier"],
4+
"extends": ["airbnb", "prettier"],
5+
"rules": {
6+
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
7+
"prettier/prettier": ["error"]
8+
}
59
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
"enzyme-adapter-react-16": "^1.15.5",
2929
"eslint": "7.2.0",
3030
"eslint-config-airbnb": "18.2.1",
31+
"eslint-config-prettier": "^7.1.0",
3132
"eslint-plugin-import": "^2.22.1",
3233
"eslint-plugin-jsx-a11y": "^6.4.1",
34+
"eslint-plugin-prettier": "^3.3.1",
3335
"eslint-plugin-react": "^7.21.5",
3436
"eslint-plugin-react-hooks": "4.0.0",
3537
"eslint-webpack-plugin": "^2.4.1",
@@ -40,6 +42,7 @@
4042
"postcss-browser-reporter": "^0.6.0",
4143
"postcss-loader": "^3.0.0",
4244
"postcss-reporter": "^6.0.1",
45+
"prettier": "^2.2.1",
4346
"redux-mock-store": "^1.5.4",
4447
"sass": "^1.26.10",
4548
"sass-loader": "^9.0.2",

yarn.lock

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3809,6 +3809,11 @@ [email protected]:
38093809
object.assign "^4.1.2"
38103810
object.entries "^1.1.2"
38113811

3812+
eslint-config-prettier@^7.1.0:
3813+
version "7.1.0"
3814+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-7.1.0.tgz#5402eb559aa94b894effd6bddfa0b1ca051c858f"
3815+
integrity sha512-9sm5/PxaFG7qNJvJzTROMM1Bk1ozXVTKI0buKOyb0Bsr1hrwi0H/TzxF/COtf1uxikIK8SwhX7K6zg78jAzbeA==
3816+
38123817
eslint-import-resolver-node@^0.3.4:
38133818
version "0.3.4"
38143819
resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz#85ffa81942c25012d8231096ddf679c03042c717"
@@ -3861,6 +3866,13 @@ eslint-plugin-jsx-a11y@^6.4.1:
38613866
jsx-ast-utils "^3.1.0"
38623867
language-tags "^1.0.5"
38633868

3869+
eslint-plugin-prettier@^3.3.1:
3870+
version "3.3.1"
3871+
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz#7079cfa2497078905011e6f82e8dd8453d1371b7"
3872+
integrity sha512-Rq3jkcFY8RYeQLgk2cCwuc0P7SEFwDravPhsJZOQ5N4YI4DSg50NyqJ/9gdZHzQlHf8MvafSesbNJCcP/FF6pQ==
3873+
dependencies:
3874+
prettier-linter-helpers "^1.0.0"
3875+
38643876
38653877
version "4.0.0"
38663878
resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.0.tgz#81196b990043cde339e25c6662aeebe32ac52d01"
@@ -4171,6 +4183,11 @@ fast-deep-equal@^3.1.1:
41714183
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
41724184
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
41734185

4186+
fast-diff@^1.1.2:
4187+
version "1.2.0"
4188+
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
4189+
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
4190+
41744191
fast-glob@^3.1.1, fast-glob@^3.2.4:
41754192
version "3.2.4"
41764193
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3"
@@ -7436,6 +7453,18 @@ preserve@^0.2.0:
74367453
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
74377454
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
74387455

7456+
prettier-linter-helpers@^1.0.0:
7457+
version "1.0.0"
7458+
resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
7459+
integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
7460+
dependencies:
7461+
fast-diff "^1.1.2"
7462+
7463+
prettier@^2.2.1:
7464+
version "2.2.1"
7465+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
7466+
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
7467+
74397468
pretty-error@^2.1.1:
74407469
version "2.1.1"
74417470
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3"

0 commit comments

Comments
 (0)