Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ckeditor.js #8

Closed
wants to merge 1 commit into from
Closed

Update ckeditor.js #8

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 8, 2018

Because of #7 I copied all the code from ckeditor.js in my project (in a new component file).

I'm using create-react-app and eslint. So the errors:

  • [eslint] componentWillReceiveProps is deprecated since React 16.3.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops (react/no-deprecated)

  • [eslint] shouldComponentUpdate should be placed after UNSAFE_componentWillReceiveProps (react/sort-comp)

  • [eslint] shouldComponentUpdate should be placed after componentDidMount (react/sort-comp)

  • [eslint] render should be placed after _destroyEditor (react/sort-comp)

  • [eslint] Default prop types declarations should be sorted alphabetically (react/jsx-sort-default-props)

  • [eslint] Must use destructuring props assignment (react/destructuring-assignment)

What is still a problem (and I don't know how to fix):

  • [eslint] UNSAFE_componentWillReceiveProps is unsafe for use in async rendering, see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html (react/no-unsafe)

  • Unexpected console statement. (no-console) (62, 9)

  • JSX props should not use arrow functions (react/jsx-no-bind) (68, 17)

  • Prop type object is forbidden (react/forbid-prop-types) (74, 3)

  • propType "onChange" is not required, but has no corresponding defaultProp declaration. (react/require-default-props) (77, 3)

  • propType "onInit" is not required, but has no corresponding defaultProp declaration. (react/require-default-props) (78, 3)

Because of #7 I copied all the code from `ckeditor.js` in my project (in a new component file).

I'm using `create-react-app` and eslint. So the errors:

- [eslint] componentWillReceiveProps is deprecated since React 16.3.0, use UNSAFE_componentWillReceiveProps instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops (react/no-deprecated)

- [eslint] shouldComponentUpdate should be placed after UNSAFE_componentWillReceiveProps (react/sort-comp)

- [eslint] shouldComponentUpdate should be placed after componentDidMount (react/sort-comp)

- [eslint] render should be placed after _destroyEditor (react/sort-comp)

- [eslint] Default prop types declarations should be sorted alphabetically (react/jsx-sort-default-props)

- [eslint] Must use destructuring props assignment (react/destructuring-assignment)

**What is still a problem** (and I don't know how to fix):

- [eslint] UNSAFE_componentWillReceiveProps is unsafe for use in async rendering, see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html (react/no-unsafe)

- Unexpected console statement. (no-console) (62, 9)

- JSX props should not use arrow functions (react/jsx-no-bind) (68, 17)

- Prop type `object` is forbidden (react/forbid-prop-types) (74, 3)

- propType "onChange" is not required, but has no corresponding defaultProp declaration. (react/require-default-props) (77, 3)

- propType "onInit" is not required, but has no corresponding defaultProp declaration. (react/require-default-props) (78, 3)
@pomek
Copy link
Member

pomek commented Jul 18, 2018

I'm closing this PR because of proposed changes don't match to our guide.

We will introduce a linter and then we will be able to fix errors (if any).

@pomek pomek closed this Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant