aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-19 15:47:08 +0200
committerArmand Philippot <git@armandphilippot.com>2023-09-19 19:16:58 +0200
commit03331c44276ec56e9f235e4d5ee75030455a753f (patch)
treeb9248a7db3090e02bf38fe573f2ea973ed8a1561 /.eslintrc.cjs
parent2faf2e34331703b3bdea3eb487cb8799c8d65377 (diff)
build(deps): bump all dependencies
* MDX type has changed so some components props had to be updated * Since Storybook now supports TS, I renamed the main/preview files
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs18
1 files changed, 18 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
new file mode 100644
index 0000000..af8b3d9
--- /dev/null
+++ b/.eslintrc.cjs
@@ -0,0 +1,18 @@
+module.exports = {
+ extends: ['next/core-web-vitals', 'prettier', 'plugin:storybook/recommended'],
+ plugins: ['formatjs'],
+ parserOptions: {
+ project: ['tsconfig.json'],
+ tsconfigRootDir: __dirname,
+ },
+ rules: {
+ 'formatjs/enforce-default-message': ['error', 'literal'],
+ 'formatjs/enforce-description': ['error', 'literal'],
+ 'formatjs/enforce-id': [
+ 'error',
+ {
+ idInterpolationPattern: '[sha512:contenthash:base64:6]',
+ },
+ ],
+ },
+};