Skip to content

Commit 07649c9

Browse files
committed
Add eslint & refactor code to ES6
1 parent 2f30b76 commit 07649c9

27 files changed

Lines changed: 4898 additions & 298 deletions

.eslintrc.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
env:
2+
browser: true
3+
es6: true
4+
extends:
5+
- airbnb-base
6+
- prettier
7+
globals:
8+
Atomics: readonly
9+
SharedArrayBuffer: readonly
10+
parserOptions:
11+
ecmaVersion: 11
12+
sourceType: module
13+
rules:
14+
no-console: off
15+
import/prefer-default-export: off
16+
no-param-reassign: off

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
lib
23
.idea

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ you can enter the name of the component and configure the generation of the file
3535
When creating a react component, you are given the choice to modificate the component parts,
3636
such as connecting the `useState`, `useEffect`, `propTypes` and so on.
3737

38-
![Demo](assets/demo.png)
38+
![Demo](https://i.imgur.com/MVFvUq5.png)
3939

4040
## Configration file
4141

@@ -63,4 +63,4 @@ Example:
6363

6464
## License
6565

66-
Generate React CLI is open source software [licensed as MIT](https://github.com/cristians953/react-codegen/blob/master/LICENSE).
66+
React CodeGen CLI is open source software [licensed as MIT](https://github.com/cristians953/react-codegen/blob/master/LICENSE).

assets/demo.png

-137 KB
Binary file not shown.

constants/index.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)