aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-28 17:31:05 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-28 22:49:08 +0100
commit29658cdcd1c112eb9d0ce66b75f1baf77532f265 (patch)
treee02a24dad45710a3122cb25ba8813b300ac2b6c1
parentc05207e62f7472eecdb9ad9a311f756d1be9a5b7 (diff)
build(deps): configure eslint and babel with formatjs
-rw-r--r--.babelrc1
-rw-r--r--.eslintrc.json6
2 files changed, 6 insertions, 1 deletions
diff --git a/.babelrc b/.babelrc
index 4cdf3d2..28dcb52 100644
--- a/.babelrc
+++ b/.babelrc
@@ -2,6 +2,7 @@
"presets": ["next/babel"],
"plugins": [
"macros",
+ ["formatjs", { "ast": true }],
[
"prismjs",
{
diff --git a/.eslintrc.json b/.eslintrc.json
index 4d765f2..46d209f 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,3 +1,7 @@
{
- "extends": ["next/core-web-vitals", "prettier"]
+ "extends": ["next/core-web-vitals", "prettier"],
+ "plugins": ["formatjs"],
+ "rules": {
+ "formatjs/enforce-default-message": ["error", "literal"]
+ }
}