eslint-config-dabapps
Version:
DabApps ESLint Configuration
55 lines (54 loc) • 1.23 kB
JSON
{
"extends": [
"../base/.eslintrc.json",
"plugin:import/recommended",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["react", "react-hooks"],
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"jsx-quotes": [2, "prefer-double"],
"react/jsx-handler-names": [
2,
{
"eventHandlerPrefix": "on",
"eventHandlerPropPrefix": "on"
}
],
"react/jsx-pascal-case": [
2,
{
"allowAllCaps": true
}
],
"react/jsx-no-duplicate-props": 2,
"react/jsx-boolean-value": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-key": 2,
"react/react-in-jsx-scope": 2,
"react/no-children-prop": 2,
"react/no-direct-mutation-state": 2,
"react/no-string-refs": 2,
"react/no-unknown-property": 2,
"react/no-unescaped-entities": 0,
"react/prop-types": 0,
"react/require-render-return": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/jsx-no-bind": 2,
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 2
}
}