kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'eslint-upgrades' into 'develop'
Eslint upgrades See merge request soapbox-pub/soapbox!2698environments/review-develop-3zknud/deployments/3890
commit
7ccb5edd2c
|
@ -77,6 +77,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'comma-style': ['warn', 'last'],
|
'comma-style': ['warn', 'last'],
|
||||||
|
'import/no-duplicates': 'error',
|
||||||
'space-before-function-paren': ['error', 'never'],
|
'space-before-function-paren': ['error', 'never'],
|
||||||
'space-infix-ops': 'error',
|
'space-infix-ops': 'error',
|
||||||
'space-in-parens': ['error', 'never'],
|
'space-in-parens': ['error', 'never'],
|
||||||
|
@ -258,7 +259,6 @@ module.exports = {
|
||||||
alphabetize: { order: 'asc' },
|
alphabetize: { order: 'asc' },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
||||||
'@typescript-eslint/member-delimiter-style': [
|
'@typescript-eslint/member-delimiter-style': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,8 +11,8 @@ import { selectCache, selectListState, useListState } from '../selectors';
|
||||||
|
|
||||||
import { parseEntitiesPath } from './utils';
|
import { parseEntitiesPath } from './utils';
|
||||||
|
|
||||||
import type { Entity } from '../types';
|
|
||||||
import type { EntitiesPath, EntityFn, EntitySchema, ExpandedEntitiesPath } from './types';
|
import type { EntitiesPath, EntityFn, EntitySchema, ExpandedEntitiesPath } from './types';
|
||||||
|
import type { Entity } from '../types';
|
||||||
import type { RootState } from 'soapbox/store';
|
import type { RootState } from 'soapbox/store';
|
||||||
|
|
||||||
interface UseBatchedEntitiesOpts<TEntity extends Entity> {
|
interface UseBatchedEntitiesOpts<TEntity extends Entity> {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import { importEntities } from '../actions';
|
||||||
|
|
||||||
import { parseEntitiesPath } from './utils';
|
import { parseEntitiesPath } from './utils';
|
||||||
|
|
||||||
import type { Entity } from '../types';
|
|
||||||
import type { EntityCallbacks, EntityFn, EntitySchema, ExpandedEntitiesPath } from './types';
|
import type { EntityCallbacks, EntityFn, EntitySchema, ExpandedEntitiesPath } from './types';
|
||||||
|
import type { Entity } from '../types';
|
||||||
|
|
||||||
interface UseCreateEntityOpts<TEntity extends Entity = Entity> {
|
interface UseCreateEntityOpts<TEntity extends Entity = Entity> {
|
||||||
schema?: EntitySchema<TEntity>
|
schema?: EntitySchema<TEntity>
|
||||||
|
|
|
@ -14,8 +14,8 @@ import { selectEntities, selectListState, useListState } from '../selectors';
|
||||||
|
|
||||||
import { parseEntitiesPath } from './utils';
|
import { parseEntitiesPath } from './utils';
|
||||||
|
|
||||||
import type { Entity } from '../types';
|
|
||||||
import type { EntityFn, EntitySchema, ExpandedEntitiesPath } from './types';
|
import type { EntityFn, EntitySchema, ExpandedEntitiesPath } from './types';
|
||||||
|
import type { Entity } from '../types';
|
||||||
|
|
||||||
/** Additional options for the hook. */
|
/** Additional options for the hook. */
|
||||||
interface UseEntitiesOpts<TEntity extends Entity> {
|
interface UseEntitiesOpts<TEntity extends Entity> {
|
||||||
|
|
|
@ -9,8 +9,8 @@ import { useLoading } from 'soapbox/hooks/useLoading';
|
||||||
import { importEntities } from '../actions';
|
import { importEntities } from '../actions';
|
||||||
import { selectEntity } from '../selectors';
|
import { selectEntity } from '../selectors';
|
||||||
|
|
||||||
import type { Entity } from '../types';
|
|
||||||
import type { EntitySchema, EntityPath, EntityFn } from './types';
|
import type { EntitySchema, EntityPath, EntityFn } from './types';
|
||||||
|
import type { Entity } from '../types';
|
||||||
|
|
||||||
/** Additional options for the hook. */
|
/** Additional options for the hook. */
|
||||||
interface UseEntityOpts<TEntity extends Entity> {
|
interface UseEntityOpts<TEntity extends Entity> {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import { useCreateEntity } from './useCreateEntity';
|
||||||
import { useDeleteEntity } from './useDeleteEntity';
|
import { useDeleteEntity } from './useDeleteEntity';
|
||||||
import { parseEntitiesPath } from './utils';
|
import { parseEntitiesPath } from './utils';
|
||||||
|
|
||||||
import type { Entity } from '../types';
|
|
||||||
import type { EntitySchema, ExpandedEntitiesPath } from './types';
|
import type { EntitySchema, ExpandedEntitiesPath } from './types';
|
||||||
|
import type { Entity } from '../types';
|
||||||
|
|
||||||
interface UseEntityActionsOpts<TEntity extends Entity = Entity> {
|
interface UseEntityActionsOpts<TEntity extends Entity = Entity> {
|
||||||
schema?: EntitySchema<TEntity>
|
schema?: EntitySchema<TEntity>
|
||||||
|
|
|
@ -297,6 +297,7 @@ const Audio: React.FC<IAudio> = (props) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const _renderCanvas = () => {
|
const _renderCanvas = () => {
|
||||||
|
// eslint-disable-next-line compat/compat
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
if (!audio.current) return;
|
if (!audio.current) return;
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@ import { useDebounce, useFeatures } from 'soapbox/hooks';
|
||||||
import { IChat, useChats } from 'soapbox/queries/chats';
|
import { IChat, useChats } from 'soapbox/queries/chats';
|
||||||
|
|
||||||
import ChatList from '../chat-list';
|
import ChatList from '../chat-list';
|
||||||
import ChatSearchInput from '../chat-search-input';
|
|
||||||
import ChatSearch from '../chat-search/chat-search';
|
import ChatSearch from '../chat-search/chat-search';
|
||||||
import EmptyResultsBlankslate from '../chat-search/empty-results-blankslate';
|
import EmptyResultsBlankslate from '../chat-search/empty-results-blankslate';
|
||||||
|
import ChatSearchInput from '../chat-search-input';
|
||||||
import ChatPaneHeader from '../chat-widget/chat-pane-header';
|
import ChatPaneHeader from '../chat-widget/chat-pane-header';
|
||||||
import ChatWindow from '../chat-widget/chat-window';
|
import ChatWindow from '../chat-widget/chat-window';
|
||||||
import ChatSearchHeader from '../chat-widget/headers/chat-search-header';
|
import ChatSearchHeader from '../chat-widget/headers/chat-search-header';
|
||||||
|
|
16
package.json
16
package.json
|
@ -186,15 +186,15 @@
|
||||||
"babel-plugin-transform-require-context": "^0.1.1",
|
"babel-plugin-transform-require-context": "^0.1.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"danger": "^11.0.7",
|
"danger": "^11.0.7",
|
||||||
"eslint": "^8.0.0",
|
"eslint": "^8.49.0",
|
||||||
"eslint-plugin-compat": "^4.0.2",
|
"eslint-plugin-compat": "^4.2.0",
|
||||||
"eslint-plugin-import": "^2.25.4",
|
"eslint-plugin-import": "^2.28.1",
|
||||||
"eslint-plugin-jsdoc": "^46.0.0",
|
"eslint-plugin-jsdoc": "^46.8.1",
|
||||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||||
"eslint-plugin-promise": "^6.0.0",
|
"eslint-plugin-promise": "^6.0.0",
|
||||||
"eslint-plugin-react": "^7.25.1",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"eslint-plugin-tailwindcss": "^3.10.1",
|
"eslint-plugin-tailwindcss": "^3.13.0",
|
||||||
"fake-indexeddb": "^4.0.0",
|
"fake-indexeddb": "^4.0.0",
|
||||||
"husky": "^8.0.0",
|
"husky": "^8.0.0",
|
||||||
"jsdom": "^22.1.0",
|
"jsdom": "^22.1.0",
|
||||||
|
|
Ładowanie…
Reference in New Issue