Created
March 19, 2021 14:04
-
-
Save likern/c3523de041ff7550aab555fcf2e45570 to your computer and use it in GitHub Desktop.
yarn lint for react-native master 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 test-react-native]$ yarn lint | |
yarn run v1.22.0 | |
$ eslint . | |
/home/me/test-react-native/IntegrationTests/AppEventsTest.js | |
41:5 warning Do not use setState in componentDidMount react/no-did-mount-set-state | |
/home/me/test-react-native/Libraries/Animated/__tests__/Animated-test.js | |
139:5 warning Skipped test jest/no-disabled-tests | |
/home/me/test-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/test-react-native/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js | |
20:3 warning 'Int32' is defined but never used no-unused-vars | |
/home/me/test-react-native/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js | |
23:8 warning 'requireNativeComponent' is defined but never used no-unused-vars | |
/home/me/test-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/test-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/test-react-native/Libraries/Core/InitializeCore.js | |
11:12 warning 'window' is defined but never used no-unused-vars | |
/home/me/test-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/test-react-native/Libraries/Pressability/PressabilityDebug.js | |
55:18 warning Inline style: { borderStyle: 'dashed', borderWidth: 1, position: 'absolute' } react-native/no-inline-styles | |
/home/me/test-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/test-react-native/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js | |
29:5 warning Unexpected alias 'appInstance' for 'this' consistent-this | |
/home/me/test-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/test-react-native/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js | |
330:5 warning Unexpected alias 'appInstance' for 'this' consistent-this | |
/home/me/test-react-native/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js | |
54:5 warning Unexpected alias 'app' for 'this' consistent-this | |
/home/me/test-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/test-react-native/bots/make-comment.js | |
39:13 warning 'body' is already declared in the upper scope no-shadow | |
/home/me/test-react-native/packages/react-native-codegen/scripts/build.js | |
95:10 warning Unnecessary escape character: \@ no-useless-escape | |
/home/me/test-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/test-react-native/packages/rn-tester/e2e/e2e-helpers.js | |
11:24 warning 'expect' is defined but never used no-unused-vars | |
/home/me/test-react-native/packages/rn-tester/js/components/RNTesterExampleFilter.js | |
21:14 warning 'RNTesterExample' is defined but never used no-unused-vars | |
/home/me/test-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/test-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/test-react-native/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js | |
66:19 warning Script URL is a form of eval no-script-url | |
344:19 warning Script URL is a form of eval no-script-url | |
/home/me/test-react-native/packages/rn-tester/js/examples/ScrollView/ScrollViewExample.js | |
470:7 warning 'AndroidScrollBarOptions' is assigned a value but never used no-unused-vars | |
573:15 warning Expected { after 'if' condition curly | |
760:15 warning Expected { after 'if' condition curly | |
894:11 warning Expected { after 'if' condition curly | |
910:11 warning Expected { after 'if' condition curly | |
/home/me/test-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/test-react-native/scripts/android-e2e-test.js | |
97:9 warning Expected error to be handled handle-callback-err | |
✖ 64 problems (0 errors, 64 warnings) | |
0 errors and 6 warnings potentially fixable with the `--fix` option. | |
Done in 23.35s. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment