Precommit Error: Using the export keyword between a decorator and a class is not allowed
See original GitHub issue\src\routes\List\TableList.js
error Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class
instead.
64 | }))
65 | @Form.create()
> 66 | export default class TableList extends PureComponent {
| ^
67 | state = {
68 | modalVisible: false,
69 | expandForm: false,
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (7 by maintainers)
Top Results From Across the Web
Transformation error (Using the export keyword between a ...
While doing the codemod via jscodeshift API, I get the error as below. ... export keyword between a decorator and a class is...
Read more >babel 7 Using the export keyword between a decorator and a ...
Parsing error: Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead. my code...
Read more >decorator after export keyword produces syntax error.
WebStorm shows syntax error after export keyword, but this is valid code. ... "Using the export keyword between a decorator and a class...
Read more >User Guide — Hypermodern Python Cookiecutter ...
Managing hooks with pre-commit. Python-language hooks. Adding an official pre-commit hook. Adding a Python-language hook. Running checks on modified files.
Read more >Git Hooks | Atlassian Git Tutorial
Git Hooks are scripts that run automatically every time a particular event occurs in a Git repository. Learn what they do and how...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
我clone了最新的代码,提交时依然在precommit会报错。最终发现,是因为lint-staged中会执行prettier --write命令,这个命令把decorator的用法又改回了旧的格式,导致随后的lint不通过,从而无法commit