* update fastlane * update dev dependencies * update to eslint 9+ * update testing-library * update react-intl * update bottom-sheet * update expo * update reanimated * upgrade msgpack * upgrade datepicker * upgrade react-navigation * update sentry * update FlasList * update fuse.js moment-timezone node-html-parser and semver * update gesture-handler * update image-picker * update react-native-keychain * update react-native-localize * update react-native-navigation * update watermelonDB * update react-native-permissions * update react-native-safe-area-context and react-native-screens * update react-native-share and react-native-svg * update react-native-video and react-native-webrtc * update @mattermost/rnutils * update @mattermost/rnshare * update @mattermost/hardware-keyboard * fix isMainActivity * update android dependencies * fix upload file progress indicator * fix entry update config & license * revert to stable version of @sentry/react-native * update react-intl again * update moment-timezone * upgrade @react-native-camera-roll/camera-roll * update @react-native-clipboard/clipboard * update @react-navigation again * update @shopify/flash-list * update eslint * update expo again * update html-entities * update mime-db * update react-native-permissions * Revert "update react-intl again" This reverts commit e8e6d5a60dfa56b82b810cbbd7cdffec7697ffc7. * Revert "update react-intl" This reverts commit c77f329bb38910aeeba03869b72d77a8b0e00ba1. * update react-native-keychain * update and patch react-intl * mend * feedback during review 1
58 lines
2 KiB
JavaScript
58 lines
2 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import reactPlugin from "eslint-plugin-react";
|
|
|
|
export default {
|
|
plugins: {
|
|
react: reactPlugin
|
|
},
|
|
settings: {
|
|
react: {
|
|
pragma: "React",
|
|
version: "detect"
|
|
}
|
|
},
|
|
rules: {
|
|
"react/display-name": [0, { ignoreTranspilerName: false }],
|
|
"react/forbid-elements": [2, { forbid: ["embed"] }],
|
|
"react/jsx-boolean-value": [2, "always"],
|
|
"react/jsx-closing-bracket-location": [2, { location: "tag-aligned" }],
|
|
"react/jsx-curly-spacing": [2, "never"],
|
|
"react/jsx-equals-spacing": [2, "never"],
|
|
"react/jsx-filename-extension": 2,
|
|
"react/jsx-first-prop-new-line": [2, "multiline"],
|
|
"react/jsx-indent": [2, 4],
|
|
"react/jsx-indent-props": [2, 4],
|
|
"react/jsx-key": 2,
|
|
"react/jsx-max-props-per-line": [2, { maximum: 1 }],
|
|
"react/jsx-no-comment-textnodes": 2,
|
|
"react/jsx-no-duplicate-props": [2, { ignoreCase: false }],
|
|
"react/jsx-no-literals": 2,
|
|
"react/jsx-no-target-blank": 2,
|
|
"react/jsx-no-undef": 2,
|
|
"react/jsx-pascal-case": 2,
|
|
"react/jsx-tag-spacing": [2, { closingSlash: "never", beforeSelfClosing: "never", afterOpening: "never" }],
|
|
"react/jsx-uses-react": 2,
|
|
"react/jsx-uses-vars": 2,
|
|
"react/jsx-wrap-multilines": 2,
|
|
"react/no-array-index-key": 1,
|
|
"react/no-children-prop": 2,
|
|
"react/no-danger": 0,
|
|
"react/no-deprecated": 1,
|
|
"react/no-did-mount-set-state": 2,
|
|
"react/no-did-update-set-state": 2,
|
|
"react/no-direct-mutation-state": 2,
|
|
"react/no-find-dom-node": 1,
|
|
"react/no-multi-comp": [2, { ignoreStateless: true }],
|
|
"react/no-render-return-value": 2,
|
|
"react/no-string-refs": 0,
|
|
"react/no-unescaped-entities": 2,
|
|
"react/no-unknown-property": 2,
|
|
"react/no-unused-prop-types": [1, { skipShapeProps: true }],
|
|
"react/prefer-es6-class": 2,
|
|
"react/require-default-props": 0,
|
|
"react/require-render-return": 2,
|
|
"react/self-closing-comp": 2
|
|
}
|
|
};
|