chore(lint): use eslint-config repo
use scoped packages
This commit is contained in:
Родитель
45e54f9854
Коммит
9618640328
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": "./node_modules/@telerik/eslint-config/react.js"
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
import * as React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import KendoComponent from '../src/kendo-component'
|
||||
import * as React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import KendoComponent from '../src/kendo-component';
|
||||
|
||||
ReactDOM.render(
|
||||
<KendoComponent />,
|
||||
document.getElementById('app')
|
||||
)
|
||||
);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require('kendo-react-tasks')(
|
||||
require('@telerik/kendo-react-tasks')(
|
||||
require('gulp'),
|
||||
'kendo-react-component-base'
|
||||
)
|
||||
);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"scripts": {
|
||||
"test": "gulp test",
|
||||
"start": "gulp start",
|
||||
"lint": "echo lint stub;"
|
||||
"lint": "gulp lint"
|
||||
},
|
||||
"keywords": [
|
||||
"Kendo UI",
|
||||
|
@ -18,11 +18,12 @@
|
|||
"react-dom": "~0.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@telerik/eslint-config": "telerik/eslint-config-kendo#master",
|
||||
"cz-conventional-changelog": "^1.1.5",
|
||||
"ghooks": "^1.0.3",
|
||||
"gulp": "3.9.0",
|
||||
"kendo-react-tasks": "telerik/kendo-react-tasks#master",
|
||||
"kendo-theme-default-base": "telerik/kendo-theme-default-base#master",
|
||||
"@telerik/kendo-react-tasks": "telerik/kendo-react-tasks#master",
|
||||
"@telerik/kendo-theme-default-base": "telerik/kendo-theme-default-base#master",
|
||||
"validate-commit-msg": "^1.1.1"
|
||||
},
|
||||
"author": "Telerik",
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
import KendoComponent from './component'
|
||||
import KendoComponent from './component';
|
||||
|
||||
module.exports = KendoComponent
|
||||
module.exports = KendoComponent;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import * as React from 'react'
|
||||
import * as React from 'react';
|
||||
|
||||
import util from './util'
|
||||
import util from './util';
|
||||
|
||||
import styles from 'kendo-theme-default-base/styles/main';
|
||||
import styles from '@telerik/kendo-theme-default-base/styles/main';
|
||||
|
||||
export default function KendoComponent(props) {
|
||||
return (
|
||||
<div {...props} className={styles.componentClass}>A Kendo UI react component{util()} </div>
|
||||
)
|
||||
return (
|
||||
<div {...props} className={styles.componentClass}>A Kendo UI react component{util()} </div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import * as React from 'react'
|
||||
import { shallow } from 'enzyme'
|
||||
import KendoComponent from '../src/kendo-component'
|
||||
import * as React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import KendoComponent from '../src/kendo-component';
|
||||
|
||||
describe('KendoComponent', () => {
|
||||
let result
|
||||
let result;
|
||||
|
||||
beforeEach(() => { })
|
||||
beforeEach(() => { /* test setup */ });
|
||||
|
||||
it('should render a div', () => {
|
||||
result = shallow(<KendoComponent />)
|
||||
expect(result.type()).toEqual('div')
|
||||
})
|
||||
})
|
||||
it('should render a div', () => {
|
||||
result = shallow(<KendoComponent />);
|
||||
expect(result.type()).toEqual('div');
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче