Created
March 19, 2021 14:09
-
-
Save likern/13b627c28a96a3701a481942c4ee806d to your computer and use it in GitHub Desktop.
yarn lint command for react native pull request branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[me@localhost new-react-native]$ yarn lint | |
yarn run v1.22.0 | |
$ eslint . | |
/home/me/new-react-native/IntegrationTests/AppEventsTest.js | |
41:5 warning Do not use setState in componentDidMount react/no-did-mount-set-state | |
/home/me/new-react-native/Libraries/Animated/__tests__/Animated-test.js | |
139:5 warning Skipped test jest/no-disabled-tests | |
/home/me/new-react-native/Libraries/BatchedBridge/__tests__/NativeModules-test.js | |
48:5 warning 'fs' is assigned a value but never used no-unused-vars | |
49:5 warning 'parseErrorStack' is assigned a value but never used no-unused-vars | |
/home/me/new-react-native/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js | |
20:3 warning 'Int32' is defined but never used no-unused-vars | |
/home/me/new-react-native/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js | |
23:8 warning 'requireNativeComponent' is defined but never used no-unused-vars | |
/home/me/new-react-native/Libraries/Components/TextInput/TextInput.js | |
31:14 warning 'TextInputNativeCommands' is defined but never used no-unused-vars | |
1006:11 warning 'text' is already declared in the upper scope no-shadow | |
/home/me/new-react-native/Libraries/Components/Touchable/PooledClass.js | |
23:9 warning Unexpected alias 'Klass' for 'this' consistent-this | |
34:9 warning Unexpected alias 'Klass' for 'this' consistent-this | |
45:9 warning Unexpected alias 'Klass' for 'this' consistent-this | |
56:9 warning Unexpected alias 'Klass' for 'this' consistent-this | |
67:9 warning Unexpected alias 'Klass' for 'this' consistent-this | |
/home/me/new-react-native/Libraries/Core/InitializeCore.js | |
11:12 warning 'window' is defined but never used no-unused-vars | |
/home/me/new-react-native/Libraries/LogBox/UI/AnsiHighlight.js | |
80:18 warning Inline style: { flexDirection: 'column' } react-native/no-inline-styles | |
82:22 warning Inline style: { flexDirection: 'row' } react-native/no-inline-styles | |
/home/me/new-react-native/Libraries/Pressability/PressabilityDebug.js | |
55:18 warning Inline style: { borderStyle: 'dashed', borderWidth: 1, position: 'absolute' } react-native/no-inline-styles | |
/home/me/new-react-native/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js | |
50:24 warning Using this.refs is deprecated react/no-string-refs | |
51:24 warning Using this.refs is deprecated react/no-string-refs | |
52:24 warning Using this.refs is deprecated react/no-string-refs | |
53:24 warning Using this.refs is deprecated react/no-string-refs | |
58:13 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
59:15 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
60:17 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
62:15 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
/home/me/new-react-native/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js | |
29:5 warning Unexpected alias 'appInstance' for 'this' consistent-this | |
/home/me/new-react-native/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js | |
108:5 warning Unexpected alias 'scrollViewApp' for 'this' consistent-this | |
142:5 warning Unexpected alias 'scrollViewApp' for 'this' consistent-this | |
/home/me/new-react-native/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js | |
330:5 warning Unexpected alias 'appInstance' for 'this' consistent-this | |
/home/me/new-react-native/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js | |
54:5 warning Unexpected alias 'app' for 'this' consistent-this | |
/home/me/new-react-native/ReactAndroid/src/androidTest/js/TextInputTestModule.js | |
73:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
89:5 warning Unexpected alias 'app' for 'this' consistent-this | |
121:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
127:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
132:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
138:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
144:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
/home/me/new-react-native/bots/make-comment.js | |
39:13 warning 'body' is already declared in the upper scope no-shadow | |
/home/me/new-react-native/packages/react-native-codegen/scripts/build.js | |
95:10 warning Unnecessary escape character: \@ no-useless-escape | |
/home/me/new-react-native/packages/rn-tester/e2e/__tests__/Alert-test.js | |
10:11 warning 'device' is defined but never used no-unused-vars | |
10:40 warning 'waitFor' is defined but never used no-unused-vars | |
/home/me/new-react-native/packages/rn-tester/e2e/e2e-helpers.js | |
11:24 warning 'expect' is defined but never used no-unused-vars | |
/home/me/new-react-native/packages/rn-tester/js/components/RNTesterExampleFilter.js | |
21:14 warning 'RNTesterExample' is defined but never used no-unused-vars | |
/home/me/new-react-native/packages/rn-tester/js/examples/Layout/LayoutEventsExample.js | |
99:15 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
101:13 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
115:17 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
/home/me/new-react-native/packages/rn-tester/js/examples/Modal/ModalExample.js | |
175:13 warning Expected { after 'if' condition curly | |
175:52 warning Unexpected alert no-alert | |
178:13 warning Expected { after 'if' condition curly | |
178:49 warning Unexpected alert no-alert | |
/home/me/new-react-native/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js | |
487:7 warning 'AndroidScrollBarOptions' is assigned a value but never used no-unused-vars | |
557:15 warning Expected { after 'if' condition curly | |
744:15 warning Expected { after 'if' condition curly | |
878:11 warning Expected { after 'if' condition curly | |
894:11 warning Expected { after 'if' condition curly | |
/home/me/new-react-native/packages/rn-tester/js/examples/TextInput/TextInputSharedExamples.js | |
189:5 warning Using this.refs is deprecated react/no-string-refs | |
196:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
204:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
213:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
222:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
230:11 warning Using string literals in ref attributes is deprecated react/no-string-refs | |
/home/me/new-react-native/scripts/android-e2e-test.js | |
97:9 warning Expected error to be handled handle-callback-err | |
✖ 62 problems (0 errors, 62 warnings) | |
0 errors and 6 warnings potentially fixable with the `--fix` option. | |
Done in 23.66s. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment