aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
blob: 09a4e71187f1309057bc63eef7043b903afac317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = {
  extends: ['next/core-web-vitals', 'prettier', 'plugin:storybook/recommended'],
  plugins: ['formatjs'],
  parserOptions: {
    project: ['tsconfig.json', './tests/cypress/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]',
      },
    ],
  },
};