Skip to content

Commit acae6b6

Browse files
npm run format
1 parent 386b5b9 commit acae6b6

File tree

3 files changed

+35
-43
lines changed

3 files changed

+35
-43
lines changed

template.json

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
"format": "prettier --write \"./**/*.{js,ts,tsx,css,json}\" --config ./.prettierrc"
1212
},
1313
"dependencies": {
14-
"@types/node": "^16.11.37",
15-
"@types/react": "^18.0.10",
16-
"@types/react-dom": "^18.0.5",
17-
"autoprefixer": "^10.4.7",
18-
"postcss": "^8.4.14",
19-
"postcss-cli": "^9.1.0",
20-
"postcss-preset-env": "^7.7.0",
21-
"react": "^18.1.0",
22-
"react-dom": "^18.1.0",
23-
"react-scripts": "5.0.1",
24-
"tailwindcss": "^3.0.24",
25-
"typescript": "^4.7.2",
26-
"web-vitals": "^2.1.4"
27-
},
14+
"@types/node": "^16.11.37",
15+
"@types/react": "^18.0.10",
16+
"@types/react-dom": "^18.0.5",
17+
"autoprefixer": "^10.4.7",
18+
"postcss": "^8.4.14",
19+
"postcss-cli": "^9.1.0",
20+
"postcss-preset-env": "^7.7.0",
21+
"react": "^18.1.0",
22+
"react-dom": "^18.1.0",
23+
"react-scripts": "5.0.1",
24+
"tailwindcss": "^3.0.24",
25+
"typescript": "^4.7.2",
26+
"web-vitals": "^2.1.4"
27+
},
2828
"devDependencies": {
2929
"@typescript-eslint/eslint-plugin": "^5.27.0",
3030
"@typescript-eslint/parser": "^5.27.0",
@@ -40,16 +40,10 @@
4040
"prettier": "^2.6.2"
4141
},
4242
"eslintConfig": {
43-
"extends": [
44-
"react-app"
45-
]
43+
"extends": ["react-app"]
4644
},
4745
"browserslist": {
48-
"production": [
49-
">0.2%",
50-
"not dead",
51-
"not op_mini all"
52-
],
46+
"production": [">0.2%", "not dead", "not op_mini all"],
5347
"development": [
5448
"last 1 chrome version",
5549
"last 1 firefox version",

template/src/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
body {
66
margin: 0;
7-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
8-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
7+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
8+
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
99
sans-serif;
1010
-webkit-font-smoothing: antialiased;
1111
-moz-osx-font-smoothing: grayscale;
1212
}
1313

1414
code {
15-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
15+
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
1616
monospace;
1717
}

template/tsconfig.json

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "es5" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1515
"lib": [
1616
"dom",
1717
"dom.iterable",
1818
"esnext"
19-
], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
20-
"jsx": "react-jsx", /* Specify what JSX code is generated. */
19+
] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
20+
"jsx": "react-jsx" /* Specify what JSX code is generated. */,
2121
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
2222
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
2323
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
@@ -28,20 +28,20 @@
2828
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
2929

3030
/* Modules */
31-
"module": "esnext", /* Specify what module code is generated. */
31+
"module": "esnext" /* Specify what module code is generated. */,
3232
// "rootDir": "./", /* Specify the root folder within your source files. */
33-
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
33+
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
3434
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3535
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3636
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3737
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
3838
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
3939
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
40-
"resolveJsonModule": true, /* Enable importing .json files */
40+
"resolveJsonModule": true /* Enable importing .json files */,
4141
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */
4242

4343
/* JavaScript Support */
44-
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
44+
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */,
4545
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
4646
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
4747

@@ -53,7 +53,7 @@
5353
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
5454
// "outDir": "./", /* Specify an output folder for all emitted files. */
5555
// "removeComments": true, /* Disable emitting comments. */
56-
"noEmit": true, /* Disable emitting files from a compilation. */
56+
"noEmit": true /* Disable emitting files from a compilation. */,
5757
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
5858
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
5959
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
@@ -71,14 +71,14 @@
7171
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
7272

7373
/* Interop Constraints */
74-
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
75-
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
76-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
74+
"isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */,
75+
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
76+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
7777
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
78-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
78+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
7979

8080
/* Type Checking */
81-
"strict": true, /* Enable all strict type-checking options. */
81+
"strict": true /* Enable all strict type-checking options. */,
8282
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
8383
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
8484
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -91,7 +91,7 @@
9191
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
9292
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
9393
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
94-
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
94+
"noFallthroughCasesInSwitch": true /* Enable error reporting for fallthrough cases in switch statements. */,
9595
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
9696
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
9797
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
@@ -100,9 +100,7 @@
100100

101101
/* Completeness */
102102
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
103-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
103+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
104104
},
105-
"include": [
106-
"src"
107-
]
105+
"include": ["src"]
108106
}

0 commit comments

Comments
 (0)