mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
* Fixed es.json - converted remaining english to spanish in file so as to check more locations. - the `formatjs compile` for Spanish was failing converted back to english for now. build does the correct thing, so it's more just to keep things correct in source. * add support for eslint-plugin-formatjs - eslint rules for formatjs - we are mostly protected by typescript checking, but this is a nice sanity check.
34 lines
631 B
JavaScript
34 lines
631 B
JavaScript
module.exports = {
|
|
'env': {
|
|
'browser': true,
|
|
'es2021': true,
|
|
'node': true,
|
|
},
|
|
'extends': [
|
|
'plugin:react/recommended',
|
|
'plugin:cypress/recommended',
|
|
'google',
|
|
],
|
|
'parser': '@typescript-eslint/parser',
|
|
'parserOptions': {
|
|
'ecmaFeatures': {
|
|
'jsx': true,
|
|
},
|
|
'ecmaVersion': 12,
|
|
'sourceType': 'module',
|
|
},
|
|
'plugins': [
|
|
'react',
|
|
'@typescript-eslint',
|
|
'formatjs',
|
|
],
|
|
'rules': {
|
|
'max-len': [2, {'code': 120, 'tabWidth': 4, 'ignoreUrls': true}],
|
|
'formatjs/no-offset': 'error',
|
|
},
|
|
'settings': {
|
|
'react': {
|
|
'version': 'detect',
|
|
},
|
|
},
|
|
};
|