Skip to content

Commit

Permalink
fix: fix imports extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Oct 13, 2021
1 parent 7d6ff8e commit ed6c9b4
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 20 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ module.exports = {
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'no-console': 'off',
'import/extensions': [2, { js: 'always', jsx: 'always', json: 'always' }],
},
};
8 changes: 4 additions & 4 deletions build/core.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const copyUtils = require('./shared/copy-utils');
const copyFonts = require('./shared/copy-fonts');
const copySCSS = require('./shared/copy-scss');
const scss = require('./shared/scss');
const copyUtils = require('./shared/copy-utils.js');
const copyFonts = require('./shared/copy-fonts.js');
const copySCSS = require('./shared/copy-scss.js');
const scss = require('./shared/scss.js');

function build() {
copyUtils();
Expand Down
1 change: 1 addition & 0 deletions build/svelte.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fs = require('fs');
const path = require('path');
// eslint-disable-next-line
const svelte = require('svelte/compiler');
const babel = require('@babel/core');

Expand Down
2 changes: 1 addition & 1 deletion demo/react/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
SkeletonBlock,
SkeletonImage,
SkeletonAvatar,
} from '../../src/react';
} from '../../src/react/index.js';

const App = () => {
const [effect, setEffect] = useState(null);
Expand Down
2 changes: 1 addition & 1 deletion demo/react/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import 'normalize.css';
import '../../src/scss/skeleton-elements.scss';
import '../demo.scss';

import App from './App';
import App from './App.js';

ReactDOM.render(React.createElement(App), document.getElementById('app'));
2 changes: 1 addition & 1 deletion src/react/SkeletonAvatar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import multiplySvgPoints from '../utils/multiply-svg-points';
import multiplySvgPoints from '../utils/multiply-svg-points.js';

const SkeletonAvatar = ({
tag: Tag = 'span',
Expand Down
2 changes: 1 addition & 1 deletion src/react/SkeletonImage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import multiplySvgPoints from '../utils/multiply-svg-points';
import multiplySvgPoints from '../utils/multiply-svg-points.js';

const SkeletonImage = ({
tag: Tag = 'span',
Expand Down
8 changes: 4 additions & 4 deletions src/react/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SkeletonBlock from './SkeletonBlock';
import SkeletonText from './SkeletonText';
import SkeletonImage from './SkeletonImage';
import SkeletonAvatar from './SkeletonAvatar';
import SkeletonBlock from './SkeletonBlock.js';
import SkeletonText from './SkeletonText.js';
import SkeletonImage from './SkeletonImage.js';
import SkeletonAvatar from './SkeletonAvatar.js';

export { SkeletonBlock, SkeletonText, SkeletonImage, SkeletonAvatar };
2 changes: 1 addition & 1 deletion src/svelte/SkeletonAvatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<slot />
</span>
<script>
import multiplySvgPoints from '../utils/multiply-svg-points';
import multiplySvgPoints from '../utils/multiply-svg-points.js';
export let size = 48;
Expand Down
2 changes: 1 addition & 1 deletion src/svelte/SkeletonImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<slot />
</span>
<script>
import multiplySvgPoints from '../utils/multiply-svg-points';
import multiplySvgPoints from '../utils/multiply-svg-points.svelte';
export let width = 1200;
export let height = 600;
Expand Down
2 changes: 1 addition & 1 deletion src/vue/SkeletonAvatar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { h } from 'vue';
import multiplySvgPoints from '../utils/multiply-svg-points';
import multiplySvgPoints from '../utils/multiply-svg-points.js';

export default {
name: 'skeleton-avatar',
Expand Down
2 changes: 1 addition & 1 deletion src/vue/SkeletonImage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { h } from 'vue';
import multiplySvgPoints from '../utils/multiply-svg-points';
import multiplySvgPoints from '../utils/multiply-svg-points.js';

export default {
name: 'skeleton-image',
Expand Down
8 changes: 4 additions & 4 deletions src/vue/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SkeletonBlock from './SkeletonBlock';
import SkeletonText from './SkeletonText';
import SkeletonImage from './SkeletonImage';
import SkeletonAvatar from './SkeletonAvatar';
import SkeletonBlock from './SkeletonBlock.js';
import SkeletonText from './SkeletonText.js';
import SkeletonImage from './SkeletonImage.js';
import SkeletonAvatar from './SkeletonAvatar.js';

export { SkeletonBlock, SkeletonText, SkeletonImage, SkeletonAvatar };

0 comments on commit ed6c9b4

Please sign in to comment.