misc_pterodactyl-panel/resources/scripts/.eslintrc.yml

84 lines
1.9 KiB
YAML
Raw Normal View History

2019-06-10 00:38:33 +00:00
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 6
ecmaFeatures:
jsx: true
2019-06-10 00:38:33 +00:00
project: "./tsconfig.json"
tsconfigRootDir: "./"
settings:
react:
pragma: "React"
version: "detect"
linkComponents:
- name: Link
linkAttribute: to
- name: NavLink
linkAttribute: to
2019-06-10 00:38:33 +00:00
env:
browser: true
es6: true
plugins:
- "react"
2019-10-12 22:29:45 +00:00
- "react-hooks"
- "@typescript-eslint"
2019-06-10 00:38:33 +00:00
extends:
- "standard"
- "plugin:react/recommended"
2019-06-10 00:38:33 +00:00
- "plugin:@typescript-eslint/recommended"
rules:
indent:
- error
- 4
- SwitchCase: 1
2019-06-10 00:38:33 +00:00
semi:
- error
- always
comma-dangle:
- error
- always-multiline
2020-07-03 21:19:05 +00:00
array-bracket-spacing:
- warn
- always
2019-10-12 22:29:45 +00:00
"react-hooks/rules-of-hooks":
- error
2020-02-08 23:23:08 +00:00
"react-hooks/exhaustive-deps": 0
2019-06-10 00:38:33 +00:00
"@typescript-eslint/explicit-function-return-type": 0
"@typescript-eslint/explicit-member-accessibility": 0
"@typescript-eslint/ban-ts-ignore": 0
2019-06-10 00:38:33 +00:00
"@typescript-eslint/no-unused-vars": 0
"@typescript-eslint/no-explicit-any": 0
"@typescript-eslint/no-non-null-assertion": 0
"@typescript-eslint/ban-ts-comment": 0
2020-07-03 21:19:05 +00:00
# @todo this would be nice to have, but don't want to deal with the warning spam at the moment.
"@typescript-eslint/explicit-module-boundary-types": 0
no-restricted-imports:
- error
- paths:
- name: styled-components
message: Please import from styled-components/macro.
patterns:
- "!styled-components/macro"
"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 00:38:33 +00:00
overrides:
- files:
- "**/*.tsx"
rules:
operator-linebreak:
- error
- before
- overrides:
"&&": "after"
"?": "ignore"
":": "ignore"