@viclafouch/eslint-config-viclafouch 4.15.0 → 4.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "main": "index.js",
6
6
  "keywords": [
package/rules/react.js CHANGED
@@ -309,7 +309,12 @@ module.exports = {
309
309
 
310
310
  // Disallow unnecessary fragments
311
311
  // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md
312
- 'react/jsx-no-useless-fragment': 'error',
312
+ 'react/jsx-no-useless-fragment': [
313
+ 'error',
314
+ {
315
+ allowExpressions: true
316
+ }
317
+ ],
313
318
 
314
319
  // This rule is turned off with the new JSX transform
315
320
  // since `eslint-plugin-react` is used.
@@ -56,7 +56,8 @@ module.exports = {
56
56
  'obj',
57
57
  'el',
58
58
  'elem',
59
- 'req'
59
+ 'req',
60
+ 'str'
60
61
  ],
61
62
 
62
63
  // disallow declaration of variables that are not used in the code