0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 06:12:51 +00:00

Fix linter errors

This commit is contained in:
Alexey Sachkov
2021-12-29 21:30:03 +03:00
parent 8a3f52b704
commit 78d4487c58
23 changed files with 28 additions and 28 deletions

View File

@@ -17,7 +17,7 @@ const PAGE_HEIGHT = 1056;
const PPR_THRESHOLD = 50; const PPR_THRESHOLD = 50;
const BrewRenderer = createClass({ const BrewRenderer = createClass({
displayName : 'BrewRenderer', displayName : 'BrewRenderer',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
text : '', text : '',

View File

@@ -5,7 +5,7 @@ const _ = require('lodash');
const cx = require('classnames'); const cx = require('classnames');
const ErrorBar = createClass({ const ErrorBar = createClass({
displayName : 'ErrorBar', displayName : 'ErrorBar',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
errors : [] errors : []

View File

@@ -7,7 +7,7 @@ const cx = require('classnames'); //Unused variable
const DISMISS_KEY = 'dismiss_notification09-9-21'; const DISMISS_KEY = 'dismiss_notification09-9-21';
const NotificationPopup = createClass({ const NotificationPopup = createClass({
displayName : 'NotificationPopup', displayName : 'NotificationPopup',
getInitialState : function() { getInitialState : function() {
return { return {
notifications : {} notifications : {}

View File

@@ -26,7 +26,7 @@ const splice = function(str, index, inject){
const Editor = createClass({ const Editor = createClass({
displayName : 'Editor', displayName : 'Editor',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : { brew : {

View File

@@ -8,7 +8,7 @@ const request = require('superagent');
const SYSTEMS = ['5e', '4e', '3.5e', 'Pathfinder']; const SYSTEMS = ['5e', '4e', '3.5e', 'Pathfinder'];
const MetadataEditor = createClass({ const MetadataEditor = createClass({
displayName : 'MetadataEditor', displayName : 'MetadataEditor',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
metadata : { metadata : {

View File

@@ -14,7 +14,7 @@ const execute = function(val, brew){
}; };
const Snippetbar = createClass({ const Snippetbar = createClass({
displayName : 'SnippetBar', displayName : 'SnippetBar',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : {}, brew : {},
@@ -104,7 +104,7 @@ module.exports = Snippetbar;
const SnippetGroup = createClass({ const SnippetGroup = createClass({
displayName : 'SnippetGroup', displayName : 'SnippetGroup',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : {}, brew : {},

View File

@@ -13,7 +13,7 @@ const NewPage = require('./pages/newPage/newPage.jsx');
const PrintPage = require('./pages/printPage/printPage.jsx'); const PrintPage = require('./pages/printPage/printPage.jsx');
const Homebrew = createClass({ const Homebrew = createClass({
displayName : 'Homebrewery', displayName : 'Homebrewery',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
url : '', url : '',

View File

@@ -3,7 +3,7 @@ const createClass = require('create-react-class');
const Nav = require('naturalcrit/nav/nav.jsx'); const Nav = require('naturalcrit/nav/nav.jsx');
const Account = createClass({ const Account = createClass({
displayName : 'AccountNavItem', displayName : 'AccountNavItem',
getInitialState : function() { getInitialState : function() {
return { return {
url : '' url : ''

View File

@@ -7,7 +7,7 @@ const MAX_TITLE_LENGTH = 50;
const EditTitle = createClass({ const EditTitle = createClass({
displayName : 'EditTitleNavItem', displayName : 'EditTitleNavItem',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
title : '', title : '',

View File

@@ -6,7 +6,7 @@ const Nav = require('naturalcrit/nav/nav.jsx');
const PatreonNavItem = require('./patreon.navitem.jsx'); const PatreonNavItem = require('./patreon.navitem.jsx');
const Navbar = createClass({ const Navbar = createClass({
displayName : 'Navbar', displayName : 'Navbar',
getInitialState : function() { getInitialState : function() {
return { return {
//showNonChromeWarning : false, //showNonChromeWarning : false,

View File

@@ -10,7 +10,7 @@ const VIEW_KEY = 'homebrewery-recently-viewed';
const RecentItems = createClass({ const RecentItems = createClass({
DisplayName : 'RecentItems', DisplayName : 'RecentItems',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
storageKey : '', storageKey : '',

View File

@@ -8,7 +8,7 @@ const MAIN_URL = 'https://www.reddit.com/r/UnearthedArcana/submit?selftext=true'
const RedditShare = createClass({ const RedditShare = createClass({
displayName : 'RedditShareNavItem', displayName : 'RedditShareNavItem',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : { brew : {

View File

@@ -27,7 +27,7 @@ const googleDriveInactive = require('../../googleDriveMono.png');
const SAVE_TIMEOUT = 3000; const SAVE_TIMEOUT = 3000;
const EditPage = createClass({ const EditPage = createClass({
displayName : 'EditPage', displayName : 'EditPage',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : { brew : {

View File

@@ -21,7 +21,7 @@ const BrewRenderer = require('../../brewRenderer/brewRenderer.jsx');
const HomePage = createClass({ const HomePage = createClass({
displayName : 'HomePage', displayName : 'HomePage',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : { brew : {

View File

@@ -23,7 +23,7 @@ const METAKEY = 'homebrewery-new-meta';
const NewPage = createClass({ const NewPage = createClass({
displayName : 'NewPage', displayName : 'NewPage',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : { brew : {

View File

@@ -12,7 +12,7 @@ const STYLEKEY = 'homebrewery-new-style';
const METAKEY = 'homebrewery-new-meta'; const METAKEY = 'homebrewery-new-meta';
const PrintPage = createClass({ const PrintPage = createClass({
displayName : 'PrintPage', displayName : 'PrintPage',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
query : {}, query : {},

View File

@@ -14,7 +14,7 @@ const BrewRenderer = require('../../brewRenderer/brewRenderer.jsx');
const SharePage = createClass({ const SharePage = createClass({
displayName : 'SharePage', displayName : 'SharePage',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : { brew : {

View File

@@ -10,7 +10,7 @@ const googleDriveIcon = require('../../../googleDrive.png');
const dedent = require('dedent-tabs').default; const dedent = require('dedent-tabs').default;
const BrewItem = createClass({ const BrewItem = createClass({
displayName : 'BrewItem', displayName : 'BrewItem',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : { brew : {

View File

@@ -24,7 +24,7 @@ const ReportIssue = require('../../navbar/issue.navitem.jsx');
const UserPage = createClass({ const UserPage = createClass({
displayName : 'UserPage', displayName : 'UserPage',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
username : '', username : '',

View File

@@ -7,7 +7,7 @@ const cx = require('classnames');
const DISMISS_KEY = 'dismiss_render_warning'; const DISMISS_KEY = 'dismiss_render_warning';
const RenderWarnings = createClass({ const RenderWarnings = createClass({
displayName : 'RenderWarnings', displayName : 'RenderWarnings',
getInitialState : function() { getInitialState : function() {
return { return {
warnings : {} warnings : {}

View File

@@ -40,7 +40,7 @@ if(typeof navigator !== 'undefined'){
} }
const CodeEditor = createClass({ const CodeEditor = createClass({
displayName : 'CodeEditor', displayName : 'CodeEditor',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
language : '', language : '',

View File

@@ -9,7 +9,7 @@ const NaturalCritIcon = require('naturalcrit/svg/naturalcrit.svg.jsx');
const Nav = { const Nav = {
base : createClass({ base : createClass({
displayName : 'Nav.base', displayName : 'Nav.base',
render : function(){ render : function(){
return <nav> return <nav>
<div className='navContent'> <div className='navContent'>
{this.props.children} {this.props.children}
@@ -28,7 +28,7 @@ const Nav = {
section : createClass({ section : createClass({
displayName : 'Nav.section', displayName : 'Nav.section',
render : function(){ render : function(){
return <div className='navSection'> return <div className='navSection'>
{this.props.children} {this.props.children}
</div>; </div>;
@@ -36,7 +36,7 @@ const Nav = {
}), }),
item : createClass({ item : createClass({
displayName : 'Nav.item', displayName : 'Nav.item',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
icon : null, icon : null,
@@ -72,7 +72,7 @@ const Nav = {
}), }),
dropdown : createClass({ dropdown : createClass({
displayName : 'Nav.dropdown', displayName : 'Nav.dropdown',
getInitialState : function() { getInitialState : function() {
return { return {
showDropdown : false showDropdown : false

View File

@@ -5,7 +5,7 @@ const _ = require('lodash');
const cx = require('classnames'); const cx = require('classnames');
const SplitPane = createClass({ const SplitPane = createClass({
displayName : 'SplitPane', displayName : 'SplitPane',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
storageKey : 'naturalcrit-pane-split', storageKey : 'naturalcrit-pane-split',
@@ -78,7 +78,7 @@ const SplitPane = createClass({
}); });
const Pane = createClass({ const Pane = createClass({
displayName : 'Pane', displayName : 'Pane',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
width : null width : null