Browse Source

`react/jsx-no-literals` eslint rule added

master
Thibaut Boustany 7 years ago
parent
commit
e806d65274
No known key found for this signature in database GPG Key ID: 32475B11A2B13EEC
  1. 7
      .eslintrc

7
.eslintrc

@ -54,6 +54,7 @@
"react/jsx-curly-brace-presence": 0,
"react/jsx-filename-extension": 0,
"react/jsx-no-target-blank": 0,
"react/jsx-no-literals": [1, {"noStrings": true}],
"react/prefer-stateless-function": 0,
"react/require-default-props": 0,
"react/sort-comp": [1, {
@ -73,4 +74,10 @@
"onlyFilesWithFlowAnnotation": true,
}
},
"overrides": [{
"files": [ "*stories.js" ],
"rules": {
"react/jsx-no-literals": 0
}
}]
}

Loading…
Cancel
Save