-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
34 lines (33 loc) · 897 Bytes
/
.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
const path = require('path');
module.exports = {
root: true,
extends: ['@acme/eslint-config/react-native-library.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'),
'home.json': path.resolve('./translations/en/home.json'),
'hello.json': path.resolve('./translations/en/hello.json'),
'users.json': path.resolve('./translations/en/users.json'),
},
},
],
},
};