Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Add convenience configurations
  • Loading branch information
tdemin committed Aug 27, 2019
1 parent 2e8f929 commit d5a44df
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 101 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
@@ -0,0 +1,10 @@
root = true

[*]
insert_final_newline = true
charset = utf-8

[*.js]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
28 changes: 28 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,28 @@
{
"extends": "react-app",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": "error",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"quotes": ["warn", "double"],
"max-len": [
"error",
{
"code": 80,
"tabWidth": 4
}
]
}
}
11 changes: 11 additions & 0 deletions .prettierignore
@@ -0,0 +1,11 @@
doc
public
.vscode
src/logo.svg
.drone.yml
.editorconfig
.gitignore
**/Dockerfile
docker-compose.yml
**/README*.md
package.json
11 changes: 11 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,11 @@
{
"trailingComma": "es5",
"printWidth": 80,
"useTabs": false,
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"jsxSingleQuote": false,
"jsxBracketSameLine": false,
"arrowParens": "always"
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,7 @@
{
"files.eol": "\n",
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"editor.tabSize": 4,
"editor.insertSpaces": true,
}
44 changes: 0 additions & 44 deletions README.md

This file was deleted.

65 changes: 31 additions & 34 deletions package.json
@@ -1,36 +1,33 @@
{
"name": "notes_web",
"version": "0.1.0",
"private": true,
"dependencies": {
"@types/jest": "24.0.18",
"@types/node": "12.7.2",
"@types/react": "16.9.2",
"@types/react-dom": "16.9.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-scripts": "3.1.1",
"typescript": "3.5.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
"name": "notes_web",
"version": "0.1.0",
"private": true,
"dependencies": {
"@types/jest": "24.0.18",
"@types/node": "12.7.2",
"@types/react": "16.9.2",
"@types/react-dom": "16.9.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-scripts": "3.1.1",
"typescript": "3.5.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
46 changes: 23 additions & 23 deletions tsconfig.json
@@ -1,25 +1,25 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
}

0 comments on commit d5a44df

Please sign in to comment.