mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
65105da797
* 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>
51 lines
1.3 KiB
JSON
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
|
|
}
|
|
}
|
|
}
|