-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
We should also create rules for react and jsx.
This can be simple done by creating a react/index.js
In a react project this can be used the following way:
{
"root": true,
"extends": [
"eslint-config-ma",
"eslint-config-ma/react"
],
"parser": "babel-eslint",
"plugins": [
"react"
]
}The configuration should extend from the react recommended which should be added as peerDependency, should be something like:
// react/index.js
module.exports = {
"env": {
"browser": true,
"node": false,
"es6": true
},
"extends": "plugin:react/recommended",
"rules": {
// Add rules here
}
}maybe orientate here by the sulu eslint rules for react and jsx https://github.com/sulu/sulu/blob/develop/.eslintrc.json#L105-L180
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request