j40-cejst-2/client/.eslintrc.js
Vim ce6f7974fb
Add Spanish to site (#1541)
* Add script to un-nest the translated es.json file

* Update unit tests

* Update i18n IDs to conformity

* Update READMEs

* Make ordinal values in sidepanel i18n compliant

* remove redudant IDs in en.json

* Add oridinal i18n to IndicatorValue sub-text

* Update plurals in sidepanel

- Disadvantaged in 1 category
- Disadvantaged in 5 categories
- At or above 1 threshold
- At or above 10 thresholds

* Add en.json link to GHA

* Enable FormatJS linter rules to catch i18n issues

* Testing if commit hash will render in PR message

* Testing if commit hash will render in PR message

* Enable allow repeats

* Try to add run command

* remove attempts to link to en.json

* Define COMMIT HASH env variable

* Move commit hash to deploy job
2022-04-11 15:51:38 -07:00

37 lines
771 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',
'formatjs/enforce-description': 'error',
'formatjs/enforce-default-message': 'error',
'formatjs/enforce-placeholders': 'error',
},
'settings': {
'react': {
'version': 'detect',
},
},
};