Skip to content

Commit

Permalink
Upgrade all linting devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed May 22, 2021
1 parent afa8985 commit a25c796
Show file tree
Hide file tree
Showing 4 changed files with 1,298 additions and 1,300 deletions.
31 changes: 8 additions & 23 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
{
"extends": [
"standard-kit/prettier",
"standard-kit/prettier/node",
"standard-kit/prettier/jsx",
"standard-kit/prettier/flow",
"plugin:react-native/all",
"plugin:react/recommended"
"standard-kit/prettier/node",
"standard-kit/prettier/react",
"plugin:react-native/all"
],
"globals": {
"fetch": true
},
"parser": "babel-eslint",
"plugins": ["react-native", "react", "simple-import-sort", "detox"],
"plugins": [
"detox", "simple-import-sort"
],
"rules": {
"camelcase": "warn",
"flowtype/array-style-complex-type": ["error", "verbose"],
"flowtype/array-style-simple-type": ["error", "shorthand"],
"flowtype/require-valid-file-annotation": [2, "always"],
"no-var": "error",
"react-native/no-inline-styles": 0,
"react-native/no-inline-styles": "off",
"react-native/no-raw-text": ["error", { "skip": ["FormattedText", "T", "B"] }],
"react-native/no-unused-styles": 0,
"react-native/split-platform-components": 2,
"react/jsx-indent-props": ["error", 2],
"react/jsx-no-duplicate-props": ["error", { "ignoreCase": true }],
"react/no-array-index-key": "error",
"react/no-string-refs": 0,
"react/no-typos": "error",
"react/prop-types": 0,
"react/self-closing-comp": ["error", { "component": true }],
"simple-import-sort/sort": "error",
"no-prototype-builtins": "off",
"react/jsx-handler-names": "off",
"react-native/sort-styles": "off"
"simple-import-sort/imports": "error"
},
"settings": {
"react": { "pragma": "React", "version": "16.8.0", "flowVersion": "0.66" }
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,28 +201,28 @@
"edge-plugin-bity": "https://github.com/EdgeApp/edge-plugin-bity.git#f04ee29c23bf5621f87dedb6d2fb1c83a18781bc",
"edge-plugin-simplex": "https://github.com/EdgeApp/edge-plugin-simplex.git#efb0f2280192894e4c24e28e297d0e466f2d333b",
"edge-plugin-wyre": "https://github.com/EdgeApp/edge-plugin-wyre.git#5aa2379dbd4045b8a514427b442bd59ca57c21b0",
"eslint": "7.14.0",
"eslint-config-standard-kit": "^0.14.4",
"eslint": "^7.14.0",
"eslint-config-standard-kit": "0.15.1",
"eslint-plugin-detox": "^1.0.0",
"eslint-plugin-flowtype": "^5.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-native": "^3.8.1",
"eslint-plugin-simple-import-sort": "^5.0.3",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-simple-import-sort": "^6.0.1",
"express": "^4.16.2",
"flow-bin": "^0.84.0",
"husky": "^4.2.5",
"husky": "^4.3.0",
"jest": "^26.6.3",
"jest-junit": "^9.0.0",
"jetifier": "^1.6.5",
"lint-staged": "^10.2.6",
"lint-staged": "^10.5.3",
"metro-react-native-babel-preset": "^0.64.0",
"patch-package": "^6.2.2",
"prettier": "^2.0.5",
"prettier": "^2.2.0",
"react-test-renderer": "17.0.1",
"rollup": "^1.1.2",
"rollup-plugin-node-resolve": "4.0.0",
Expand Down
7 changes: 6 additions & 1 deletion testSetup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
/* eslint-disable flowtype/require-valid-file-annotation */
/* globals jest */

import dateformat from 'dateformat'
import RNPermissionsMock from 'react-native-permissions/mock'

/* globals jest */
jest.mock('usb', () => {})
jest.mock('react-native-gesture-handler', () => ({
PanGestureHandler() {}
}))

jest.mock('dateformat', () => (number, format) => dateformat(number, format, true)) // force timezone to UTC

jest.mock('@react-native-firebase/analytics', () => () => ({
Expand Down
Loading

0 comments on commit a25c796

Please sign in to comment.