mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 14:19:58 +00:00
7bc219422e
* Update Babel and ESLint and fix all related errors * Update babel-jest
49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
{
|
|
"parser": "babel-eslint",
|
|
"extends": ["semistandard", "plugin:flowtype/recommended"],
|
|
"plugins": ["react", "jest", "html", "json", "filenames", "flowtype"],
|
|
"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",
|
|
"space-before-function-paren": [
|
|
"error",
|
|
{
|
|
"anonymous": "never",
|
|
"named": "never",
|
|
"asyncArrow": "always"
|
|
}
|
|
],
|
|
"filenames/match-exported": ["error", "kebab"]
|
|
},
|
|
"settings": {
|
|
"flowtype": {
|
|
"onlyFilesWithFlowAnnotation": true
|
|
}
|
|
}
|
|
}
|