aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
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]',
+ },
+ ],
+ },
+};