2021-05-25 16:21:21 -04:00
|
|
|
module.exports = {
|
|
|
|
'env': {
|
|
|
|
'browser': true,
|
|
|
|
'es2021': true,
|
|
|
|
'node': true,
|
|
|
|
},
|
|
|
|
'extends': [
|
|
|
|
'plugin:react/recommended',
|
2021-06-02 20:53:22 -04:00
|
|
|
'plugin:cypress/recommended',
|
2021-05-25 16:21:21 -04:00
|
|
|
'google',
|
|
|
|
],
|
|
|
|
'parser': '@typescript-eslint/parser',
|
|
|
|
'parserOptions': {
|
|
|
|
'ecmaFeatures': {
|
|
|
|
'jsx': true,
|
|
|
|
},
|
|
|
|
'ecmaVersion': 12,
|
|
|
|
'sourceType': 'module',
|
|
|
|
},
|
|
|
|
'plugins': [
|
|
|
|
'react',
|
|
|
|
'@typescript-eslint',
|
2021-07-15 13:00:15 -07:00
|
|
|
'formatjs',
|
2021-05-25 16:21:21 -04:00
|
|
|
],
|
|
|
|
'rules': {
|
2021-06-16 18:16:49 -04:00
|
|
|
'max-len': [2, {'code': 120, 'tabWidth': 4, 'ignoreUrls': true}],
|
2021-07-15 13:00:15 -07:00
|
|
|
'formatjs/no-offset': 'error',
|
2022-04-11 18:51:38 -04:00
|
|
|
'formatjs/enforce-description': 'error',
|
|
|
|
'formatjs/enforce-default-message': 'error',
|
|
|
|
'formatjs/enforce-placeholders': 'error',
|
2021-05-25 16:21:21 -04:00
|
|
|
},
|
|
|
|
'settings': {
|
|
|
|
'react': {
|
|
|
|
'version': 'detect',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|