fuel-ui/static/.eslintrc

48 lines
1.2 KiB
Plaintext

---
plugins:
- react
parserOptions:
sourceType: module
ecmaFeatures:
ecmaVersion: 6
jsx: true
rules:
# es6
computed-property-spacing: 2
no-useless-call: 2
object-shorthand: [2, methods]
prefer-arrow-callback: 2
prefer-spread: 2
# react
jsx-quotes: [2, prefer-single]
react/jsx-boolean-value: [2, never]
react/jsx-closing-bracket-location: [2, {nonEmpty: false, selfClosing: line-aligned}]
react/jsx-curly-spacing: 2
react/jsx-equals-spacing: 2
react/jsx-first-prop-new-line: 0
react/jsx-indent: [2, 2]
react/jsx-indent-props: [2, 2]
react/jsx-key: 2
react/jsx-no-duplicate-props: 2
react/jsx-no-literals: 0
react/jsx-no-undef: 2
react/jsx-pascal-case: 2
react/jsx-space-before-closing: 2
react/jsx-uses-react: 2
react/jsx-uses-vars: 2
react/no-deprecated: 2
react/no-unknown-property: 2
react/prefer-es6-class: [2, never]
react/prop-types: 0
react/react-in-jsx-scope: 2
react/require-render-return: 2
react/self-closing-comp: 2
react/sort-comp: 0
env:
es6: true
browser: true
node: false
globals:
app: false