Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaokamarina committed Oct 11, 2023
0 parents commit f6cee22
Show file tree
Hide file tree
Showing 12 changed files with 1,664 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
indent_style = space
indent_size = 4
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120

[*.md]
max_line_length = 80
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/.vscode/

/.yarn/*
!/.yarn/plugins/
!/.yarn/releases/

/node_modules/

/out/
/tmp/

*.tgz
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.vscode/
/.yarn/
prettier.config.mjs
.editorconfig
*.tgz
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.4.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.6.4.cjs

nodeLinker: node-modules
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright © 2023 Yuri Zemskov

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# TypeScript config

> Base TypeScript config for composite projects.
## Usage

```bash
yarn add -D @anireact/typescript-config
```

```bash
npm install --save-dev @anireact/typescript-config
```

```jsonc
// tsconfig.json
{
"extends": "@anireact/typescript-config"
}
```

## Support

If you have any issues, feel free to fork this module, or contact me on Telegram
https://t.me/miyaokamarina.

## License

MIT © 2023 Yuri Zemskov
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@anireact/typescript-config",
"version": "1.0.0",
"description": "Base TypeScript config for composite projects.",
"repository": "https://github.com/anireact/typescript-config",
"author": "Yuri Zemskov <miyaokamarina@gmail.com> (https://twitter.com/miyaokamarina)",
"license": "MIT",
"packageManager": "yarn@3.6.4",
"type": "module",
"main": "./tsconfig.json",
"module": "./tsconfig.json",
"exports": {
".": "./tsconfig.json"
},
"devDependencies": {
"prettier": "^3.0.3"
}
}
27 changes: 27 additions & 0 deletions prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// @ts-nocheck

export default {
printWidth: 120,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'consistent',
jsxSingleQuote: true,
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
proseWrap: 'always',
htmlWhitespaceSensitivity: 'css',
vueIndentScriptAndStyle: true,
endOfLine: 'lf',
embeddedLanguageFormatting: 'auto',
overrides: [
{
files: ['*.md'],
options: {
printWidth: 80,
},
},
],
};
93 changes: 93 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"include": [],
"compilerOptions": {
"allowJs": false,
"checkJs": false,
"composite": true,
"incremental": true,
"noEmit": false,
"noEmitOnError": true,
"emitDeclarationOnly": false,
"isolatedModules": false,
"preserveWatchOutput": true,
"pretty": true,
"noErrorTruncation": true,
"assumeChangesOnlyAffectDirectDependencies": false,
"disableReferencedProjectLoad": false,
"disableSolutionSearching": false,
"disableSourceOfProjectReferenceRedirect": false,
"disableSizeLimit": false,
"target": "esnext",
"downlevelIteration": true,
"useDefineForClassFields": true,
"preserveConstEnums": false,
"preserveValueImports": false,
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
"jsx": "preserve",
"jsxImportSource": "react",
"declaration": true,
"declarationMap": true,
"removeComments": false,
"sourceMap": true,
"inlineSources": true,
"noImplicitUseStrict": false,
"alwaysStrict": true,
"newLine": "lf",
"emitBOM": false,
"stripInternal": false,
"module": "nodenext",
"lib": ["esnext"],
"moduleResolution": "nodenext",
"resolvePackageJsonExports": true,
"resolvePackageJsonImports": true,
"allowArbitraryExtensions": true,
"customConditions": [],
"allowImportingTsExtensions": false,
"verbatimModuleSyntax": false,
"moduleDetection": "force",
"moduleSuffixes": [""],
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"importsNotUsedAsValues": "remove",
"resolveJsonModule": true,
"importHelpers": true,
"noEmitHelpers": false,
"forceConsistentCasingInFileNames": true,
"maxNodeModuleJsDepth": 0,
"noLib": false,
"noResolve": false,
"allowUmdGlobalAccess": false,
"skipLibCheck": true,
"skipDefaultLibCheck": false,
"preserveSymlinks": false,
"strict": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"exactOptionalPropertyTypes": true,
"useUnknownInCatchVariables": true,
"keyofStringsOnly": false,
"noStrictGenericChecks": false,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"suppressExcessPropertyErrors": false,
"suppressImplicitAnyIndexErrors": false,
"diagnostics": false,
"extendedDiagnostics": false,
"traceResolution": false,
"explainFiles": false,
"listFiles": false,
"listEmittedFiles": false
}
}
23 changes: 23 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 6
cacheKey: 8

"@anireact/typescript-config@workspace:.":
version: 0.0.0-use.local
resolution: "@anireact/typescript-config@workspace:."
dependencies:
prettier: ^3.0.3
languageName: unknown
linkType: soft

"prettier@npm:^3.0.3":
version: 3.0.3
resolution: "prettier@npm:3.0.3"
bin:
prettier: bin/prettier.cjs
checksum: e10b9af02b281f6c617362ebd2571b1d7fc9fb8a3bd17e371754428cda992e5e8d8b7a046e8f7d3e2da1dcd21aa001e2e3c797402ebb6111b5cd19609dd228e0
languageName: node
linkType: hard

0 comments on commit f6cee22

Please sign in to comment.