j40-cejst-2/client/.eslintrc.js
TomNUSDS e066f459fa
Fixed es.json (#354)
* 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.
2021-07-15 13:00:15 -07:00

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',
},
},
};