1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Fixing CRA

This commit is contained in:
Laurent Cozic 2020-02-15 15:21:58 +00:00
parent a52c261d95
commit 2fef4a0c09
69 changed files with 0 additions and 154 deletions

View File

@ -50,11 +50,6 @@ module.exports = {
// possible race conditions in contexts where we know it cannot happen.
"require-atomic-updates": 0,
// -------------------------------
// Coding style preferences
// -------------------------------
"enforce-react-hooks/enforce-react-hooks": 2,
// -------------------------------
// Formatting
// -------------------------------
@ -92,6 +87,5 @@ module.exports = {
"plugins": [
"react",
"@typescript-eslint",
"enforce-react-hooks",
],
};

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
import React, { Component } from 'react';
import './App.css';
import led_red from './led_red.png';

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { bridge } = require('electron').remote.require('./bridge');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const styleSelector = require('./style/ConfigMenuBar');
const Setting = require('lib/models/Setting');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const Setting = require('lib/models/Setting.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { _ } = require('lib/locale.js');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { bridge } = require('electron').remote.require('./bridge');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const Setting = require('lib/models/Setting');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { bridge } = require('electron').remote.require('./bridge');
const styleSelector = require('./style/ExtensionBadge');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const Folder = require('lib/models/Folder.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
class ItemList extends React.Component {

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { Header } = require('./Header.min.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const { ItemList } = require('./ItemList.min.js');
const React = require('react');
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { _ } = require('lib/locale.js');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { time } = require('lib/time-utils.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Note = require('lib/models/Note.js');
const BaseItem = require('lib/models/BaseItem.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { reg } = require('lib/registry.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { _ } = require('lib/locale.js');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { render } = require('react-dom');
const { connect, Provider } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
import * as React from 'react';
import { useState, useEffect } from 'react';
import JoplinServerApi from '../lib/JoplinServerApi';

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const shared = require('lib/components/shared/side-menu-shared.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const Setting = require('lib/models/Setting.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { themeStyle } = require('../theme.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { bridge } = require('electron').remote.require('./bridge');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const smalltalk = require('smalltalk');
class Dialogs {

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');
const { _ } = require('lib/locale.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { TouchableOpacity, TouchableWithoutFeedback, Dimensions, Text, Modal, View } = require('react-native');
const { ItemList } = require('lib/components/ItemList.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { View, ScrollView } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { Text, Modal, View, StyleSheet, Button } = require('react-native');
const { themeStyle } = require('lib/components/global-style.js');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { StyleSheet } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { StyleSheet } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { View, TouchableHighlight } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const Setting = require('lib/models/Setting.js');
const { Platform } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { Platform, View, Text } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { StyleSheet, View, Text, FlatList, TouchableOpacity, TextInput } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { Platform, TouchableOpacity, Linking, View, Switch, StyleSheet, Text, Button, ScrollView, TextInput, Alert } = require('react-native');
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { View, Button, Text, TextInput, TouchableOpacity, StyleSheet, ScrollView } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { TextInput, TouchableOpacity, Linking, View, StyleSheet, Text, Button, ScrollView } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { View, TextInput, StyleSheet } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { FlatList, View, Text, Button, StyleSheet, Platform } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { Platform, Clipboard, Keyboard, View, TextInput, StyleSheet, Linking, Image, Share } = require('react-native');
const { connect } = require('react-redux');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { AppState, View, StyleSheet } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { View } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { StyleSheet, View, TextInput, FlatList, TouchableHighlight } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { StyleSheet, View, Text, Button, FlatList } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { View, Text, FlatList, StyleSheet, TouchableOpacity } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
import React from 'react';
import { View } from 'react-native';
import PopupDialog, { DialogTitle, DialogButton } from 'react-native-popup-dialog';

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { TouchableOpacity, Text, StyleSheet, ScrollView, View } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const Component = React.Component;
const { Easing, Animated, TouchableOpacity, Text, StyleSheet, ScrollView, View, Alert } = require('react-native');

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const { connect } = require('react-redux');
const SideMenu_ = require('react-native-side-menu').default;

View File

@ -1,5 +1,3 @@
/* eslint-disable enforce-react-hooks/enforce-react-hooks */
const React = require('react');
const { AppState, Keyboard, NativeModules, BackHandler, Platform, Animated, View, StatusBar } = require('react-native');
const SafeAreaView = require('lib/components/SafeAreaView');

15
package-lock.json generated
View File

@ -774,15 +774,6 @@
"v8-compile-cache": "^2.0.3"
}
},
"eslint-plugin-enforce-react-hooks": {
"version": "github:osdnk/eslint-enforce-react-hooks#c98c942678e8f21e60fcfca777cbe57a395ce7a4",
"from": "github:osdnk/eslint-enforce-react-hooks",
"dev": true,
"requires": {
"eslint-plugin-react": "^7.11.1",
"requireindex": "~1.1.0"
}
},
"eslint-plugin-react": {
"version": "7.18.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.18.0.tgz",
@ -2125,12 +2116,6 @@
"integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==",
"dev": true
},
"requireindex": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz",
"integrity": "sha1-5UBLgVV+91225JxacgBIk/4D4WI=",
"dev": true
},
"resolve": {
"version": "1.11.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.1.tgz",

View File

@ -31,7 +31,6 @@
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"eslint": "^6.1.0",
"eslint-plugin-enforce-react-hooks": "github:osdnk/eslint-enforce-react-hooks",
"eslint-plugin-react": "^7.18.0",
"husky": "^3.0.2",
"lint-staged": "^9.2.1",