generated from Rock-n-Prog/web-ts-monorepo-starter-pack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
36 lines (35 loc) · 1.05 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const path = require('path');
module.exports = {
root: true,
extends: ['@acme/eslint-config/react-library.js', '@acme/eslint-config/next.js', 'plugin:i18n-json/recommended'],
rules: {
'i18n-json/valid-message-syntax': [
'error',
{
syntax: 'non-empty-string',
},
],
'i18n-json/valid-json': 'error',
'i18n-json/sorted-keys': [
'warn',
{
order: 'asc',
indentSpaces: 2,
},
],
'i18n-json/identical-keys': [
'error',
{
filePath: {
'common.json': path.resolve('./translations/en/common.json'),
'forms.json': path.resolve('./translations/en/forms.json'),
'index.json': path.resolve('./translations/en/index.json'),
'contents.json': path.resolve('./translations/en/contents.json'),
'reviews.json': path.resolve('./translations/en/reviews.json'),
'hello.json': path.resolve('./translations/en/hello.json'),
'users.json': path.resolve('./translations/en/users.json'),
},
},
],
},
};