insomnia/.eslintrc.json
Opender Singh 65105da797
The One With Hooks (#2286)
* Add

* Update

* Remove extra peer dep

* Remove extra peer dep undo

* Undo stuff

* Convert two components (validation)

* Undo packed dep change

* Fix for react-dom alias to @hot-loader/react-dom (#2292)

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-06-13 16:56:15 +12:00

51 lines
1.3 KiB
JSON

{
"parser": "babel-eslint",
"extends": ["semistandard", "plugin:flowtype/recommended", "plugin:prettier/recommended", "plugin:react-hooks/recommended"],
"plugins": ["react", "jest", "html", "json", "filenames", "flowtype", "react-hooks"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"__DEV__": true,
"fail": true,
"HTMLDivElement": true,
"HTMLElement": true,
"HTMLInputElement": true,
"HTMLSelectElement": true
},
"env": {
"jest/globals": true
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"indent": "off",
"no-var": "error",
"no-async-promise-executor": "off",
"no-case-declarations": "off",
"no-prototype-builtins": "off",
"no-duplicate-imports": "off",
"flowtype/space-after-type-colon": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"space-in-parens": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"filenames/match-exported": ["error", "kebab"]
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
}