2019-06-10 02:38:33 +02:00
|
|
|
parser: "@typescript-eslint/parser"
|
|
|
|
parserOptions:
|
|
|
|
ecmaVersion: 6
|
2020-07-03 22:55:33 +02:00
|
|
|
ecmaFeatures:
|
|
|
|
jsx: true
|
2019-06-10 02:38:33 +02:00
|
|
|
project: "./tsconfig.json"
|
|
|
|
tsconfigRootDir: "./"
|
2020-07-03 22:55:33 +02:00
|
|
|
settings:
|
|
|
|
react:
|
|
|
|
pragma: "React"
|
|
|
|
version: "detect"
|
|
|
|
linkComponents:
|
|
|
|
- name: Link
|
|
|
|
linkAttribute: to
|
|
|
|
- name: NavLink
|
|
|
|
linkAttribute: to
|
2019-06-10 02:38:33 +02:00
|
|
|
env:
|
|
|
|
browser: true
|
|
|
|
es6: true
|
|
|
|
plugins:
|
2020-07-03 22:55:33 +02:00
|
|
|
- "react"
|
2019-10-13 00:29:45 +02:00
|
|
|
- "react-hooks"
|
2020-07-03 22:55:33 +02:00
|
|
|
- "@typescript-eslint"
|
2019-06-10 02:38:33 +02:00
|
|
|
extends:
|
|
|
|
- "standard"
|
2020-07-03 22:55:33 +02:00
|
|
|
- "plugin:react/recommended"
|
2019-06-10 02:38:33 +02:00
|
|
|
- "plugin:@typescript-eslint/recommended"
|
|
|
|
rules:
|
2020-07-12 19:43:37 +02:00
|
|
|
quotes:
|
|
|
|
- warn
|
|
|
|
- single
|
2020-02-12 06:15:40 +01:00
|
|
|
indent:
|
2020-07-12 19:43:37 +02:00
|
|
|
- warn
|
2020-02-12 06:15:40 +01:00
|
|
|
- 4
|
2020-07-03 22:55:33 +02:00
|
|
|
- SwitchCase: 1
|
2019-06-10 02:38:33 +02:00
|
|
|
semi:
|
2020-07-12 19:43:37 +02:00
|
|
|
- warn
|
2019-06-10 02:38:33 +02:00
|
|
|
- always
|
|
|
|
comma-dangle:
|
2020-07-12 19:43:37 +02:00
|
|
|
- warn
|
2019-06-10 02:38:33 +02:00
|
|
|
- always-multiline
|
2020-08-23 03:13:59 +02:00
|
|
|
spaced-comment:
|
|
|
|
- warn
|
2020-07-03 23:19:05 +02:00
|
|
|
array-bracket-spacing:
|
|
|
|
- warn
|
|
|
|
- always
|
2019-10-13 00:29:45 +02:00
|
|
|
"react-hooks/rules-of-hooks":
|
|
|
|
- error
|
2020-02-09 00:23:08 +01:00
|
|
|
"react-hooks/exhaustive-deps": 0
|
2019-06-10 02:38:33 +02:00
|
|
|
"@typescript-eslint/explicit-function-return-type": 0
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": 0
|
2020-02-23 05:07:56 +01:00
|
|
|
"@typescript-eslint/ban-ts-ignore": 0
|
2019-06-10 02:38:33 +02:00
|
|
|
"@typescript-eslint/no-explicit-any": 0
|
|
|
|
"@typescript-eslint/no-non-null-assertion": 0
|
2020-07-04 18:13:41 +02:00
|
|
|
"@typescript-eslint/ban-ts-comment": 0
|
2020-07-05 03:30:50 +02:00
|
|
|
# This would be nice to have, but don't want to deal with the warning spam at the moment.
|
2020-07-03 23:19:05 +02:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": 0
|
2020-07-03 22:55:33 +02:00
|
|
|
no-restricted-imports:
|
|
|
|
- error
|
|
|
|
- paths:
|
|
|
|
- name: styled-components
|
|
|
|
message: Please import from styled-components/macro.
|
|
|
|
patterns:
|
|
|
|
- "!styled-components/macro"
|
2020-07-05 03:30:50 +02:00
|
|
|
# Not sure, this rule just doesn't work right and is protected by our use of Typescript anyways
|
|
|
|
# so I'm just not going to worry about it.
|
2020-07-03 22:55:33 +02:00
|
|
|
"react/prop-types": 0
|
|
|
|
"react/display-name": 0
|
|
|
|
"react/jsx-indent-props":
|
|
|
|
- warn
|
|
|
|
- 4
|
|
|
|
"react/jsx-boolean-value":
|
|
|
|
- warn
|
|
|
|
- never
|
|
|
|
"react/jsx-closing-bracket-location":
|
|
|
|
- 1
|
|
|
|
- "line-aligned"
|
|
|
|
"react/jsx-closing-tag-location": 1
|
2019-06-10 02:38:33 +02:00
|
|
|
overrides:
|
|
|
|
- files:
|
|
|
|
- "**/*.tsx"
|
|
|
|
rules:
|
|
|
|
operator-linebreak:
|
|
|
|
- error
|
|
|
|
- before
|
|
|
|
- overrides:
|
|
|
|
"&&": "after"
|
|
|
|
"?": "ignore"
|
|
|
|
":": "ignore"
|