diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-28 17:31:05 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-28 22:49:08 +0100 |
| commit | 29658cdcd1c112eb9d0ce66b75f1baf77532f265 (patch) | |
| tree | e02a24dad45710a3122cb25ba8813b300ac2b6c1 | |
| parent | c05207e62f7472eecdb9ad9a311f756d1be9a5b7 (diff) | |
build(deps): configure eslint and babel with formatjs
| -rw-r--r-- | .babelrc | 1 | ||||
| -rw-r--r-- | .eslintrc.json | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -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"] + } } |
