This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/.eslintrc

64 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-02-27 21:53:11 +00:00
{
"parser": "babel-eslint",
2017-05-04 05:49:08 +00:00
"extends": [
"react-app",
"plugin:import/errors",
2017-05-12 00:23:56 +00:00
"plugin:import/warnings",
"plugin:flowtype/recommended"
2017-05-04 05:49:08 +00:00
],
2017-10-15 23:51:25 +00:00
"plugins": ["prettier", "flowtype"],
2016-02-27 21:53:11 +00:00
"rules": {
2017-07-02 00:19:45 +00:00
"eqeqeq": 2,
"no-unused-vars": 2,
2017-05-12 00:39:23 +00:00
// // Bring back after we remove CSS Modules 100%
// "import/order": "warn",
// Prettier automatically uses the least amount of parens possible, so this
// does more harm than good.
"no-mixed-operators": "off",
2017-08-29 04:02:11 +00:00
// Temporary fix for a failing import lint
"import/no-unresolved": [
"error",
{
2017-10-15 23:51:25 +00:00
"ignore": ["slate-drop-or-paste-images"]
2017-08-29 04:02:11 +00:00
}
],
2017-05-12 00:23:56 +00:00
// Flow
"flowtype/require-valid-file-annotation": [
2,
"always",
{
"annotationStyle": "line"
}
],
2017-10-15 23:51:25 +00:00
"flowtype/space-after-type-colon": [2, "always"],
"flowtype/space-before-type-colon": [2, "never"],
// Enforce that code is formatted with prettier.
2017-05-04 05:49:08 +00:00
"prettier/prettier": [
"error",
{
"printWidth": 80,
2017-05-04 05:49:08 +00:00
"trailingComma": "es5",
"singleQuote": true
2016-07-01 06:21:58 +00:00
}
2017-05-04 05:49:08 +00:00
]
},
"settings": {
2017-05-12 00:23:56 +00:00
"import/resolver": "webpack",
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
2016-07-26 05:49:32 +00:00
},
"env": {
2017-05-04 05:49:08 +00:00
"jest": true
},
2016-07-26 05:49:32 +00:00
"globals": {
2017-05-04 05:49:08 +00:00
"__DEV__": true,
"SLACK_KEY": true,
"DEPLOYMENT": true,
2017-05-12 00:23:56 +00:00
"BASE_URL": true,
2017-10-15 23:51:25 +00:00
"BUGSNAG_KEY": true,
2017-07-19 06:36:49 +00:00
"afterAll": true,
"Bugsnag": true
2017-05-04 05:49:08 +00:00
}
2017-10-15 23:51:25 +00:00
}