Refactor import statements to use ES6 module syntax and remove unused declarations
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp bundle",
|
"build": "gulp bundle",
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"test": "tsc --noEmit -p . && tsc -p tests/tsconfig.json && node temp/tests/tests/RecurringEventsCore.test.js && node tests/validate-project.js",
|
"test": "tsc -p tests/tsconfig.json && node temp/tests/tests/RecurringEventsCore.test.js && node tests/validate-project.js",
|
||||||
"package": "npm test && gulp clean && gulp bundle --ship && gulp package-solution --ship"
|
"package": "npm test && gulp clean && gulp bundle --ship && gulp package-solution --ship"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Vendored
-4
@@ -1,4 +0,0 @@
|
|||||||
declare module '*.module.scss' {
|
|
||||||
const styles: { [className: string]: string };
|
|
||||||
export = styles;
|
|
||||||
}
|
|
||||||
@@ -15,7 +15,7 @@ import { RecurringEventsDataService } from './RecurringEventsDataService';
|
|||||||
import { EventsLayout, IEventDateRange, IEventsListOption, IRecurringEvent } from './RecurringEventsTypes';
|
import { EventsLayout, IEventDateRange, IEventsListOption, IRecurringEvent } from './RecurringEventsTypes';
|
||||||
import RecurringEvents from './components/RecurringEvents';
|
import RecurringEvents from './components/RecurringEvents';
|
||||||
import { IRecurringEventsProps } from './components/IRecurringEventsProps';
|
import { IRecurringEventsProps } from './components/IRecurringEventsProps';
|
||||||
import styles = require('./components/RecurringEvents.module.scss');
|
import styles from './components/RecurringEvents.module.scss';
|
||||||
|
|
||||||
export interface IRecurringEventsWebPartProps {
|
export interface IRecurringEventsWebPartProps {
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { IRecurringEvent } from '../RecurringEventsTypes';
|
import { IRecurringEvent } from '../RecurringEventsTypes';
|
||||||
import styles = require('./RecurringEvents.module.scss');
|
import styles from './RecurringEvents.module.scss';
|
||||||
import { IRecurringEventsProps } from './IRecurringEventsProps';
|
import { IRecurringEventsProps } from './IRecurringEventsProps';
|
||||||
|
|
||||||
export default class RecurringEvents extends React.Component<IRecurringEventsProps, {}> {
|
export default class RecurringEvents extends React.Component<IRecurringEventsProps, {}> {
|
||||||
|
|||||||
Reference in New Issue
Block a user