Skip to content

Commit 918270f

Browse files
authored
Merge pull request #10 from loopisjr/fix/CTLP-09-organizar-diretorio-para-ser-reconhecido-pelo-create-react-app
fix: refatorando arquivos e diretorios para o create-react-app
2 parents 04eb519 + 2a6136b commit 918270f

20 files changed

+93
-7
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
22
"name": "cra-template-loopis-project",
3-
"version": "0.1.0",
4-
"private": true,
3+
"version": "1.0.0",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/loopisjr/cra-template-loopis-project"
7+
},
58
"dependencies": {
6-
"@testing-library/jest-dom": "^4.2.4",
7-
"@testing-library/react": "^9.3.2",
8-
"@testing-library/user-event": "^7.1.2",
99
"axios": "^0.20.0",
10-
"react": "^16.13.1",
11-
"react-dom": "^16.13.1",
1210
"react-router-dom": "^5.2.0",
1311
"react-scripts": "3.4.3"
1412
},
13+
"main": "template.json",
1514
"scripts": {
1615
"start": "react-scripts start",
1716
"build": "react-scripts build",

template.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"package": {
3+
"dependencies": {
4+
"react-router-dom": "^5.2.0",
5+
"axios": "^0.20.0",
6+
"@commitlint/cli": "^9.1.2",
7+
"eslint": "^6.6.0",
8+
"eslint-config-airbnb": "^18.2.0",
9+
"eslint-plugin-import": "^2.22.0",
10+
"eslint-plugin-jsx-a11y": "^6.3.1",
11+
"eslint-plugin-react": "^7.20.6",
12+
"eslint-plugin-react-hooks": "^4.1.2",
13+
"husky": "^4.3.0",
14+
"loopis-conventions": "^1.0.3"
15+
}
16+
}
17+
}

template/.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true

template/.eslintrc.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parser": "babel-eslint",
3+
"env": {
4+
"browser": true,
5+
"es6": true
6+
},
7+
"extends": [
8+
"plugin:react/recommended",
9+
"airbnb"
10+
],
11+
"globals": {
12+
"Atomics": "readonly",
13+
"SharedArrayBuffer": "readonly"
14+
},
15+
"parserOptions": {
16+
"ecmaFeatures": {
17+
"jsx": true
18+
},
19+
"ecmaVersion": 2018,
20+
"sourceType": "module"
21+
},
22+
"plugins": [
23+
"react"
24+
],
25+
"rules": {
26+
"react/jsx-filename-extension": [
27+
"error",
28+
{
29+
"extensions": [
30+
".js", ".jsx"
31+
]
32+
}
33+
],
34+
"global-require": "off",
35+
"import/prefers-default-export": "off",
36+
"no-unused-expressions": ["error", {"allowTaggedTemplates": true}]
37+
}
38+
}

template/commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['./node_modules/loopis-conventions'] };

template/gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)