https://github.com/kayooliveira/tsconfig
My tsconfig.json file
https://github.com/kayooliveira/tsconfig
Last synced: 3 months ago
JSON representation
My tsconfig.json file
- Host: GitHub
- URL: https://github.com/kayooliveira/tsconfig
- Owner: kayooliveira
- Created: 2022-05-17T19:21:33.000Z (about 3 years ago)
- Default Branch: current
- Last Pushed: 2022-05-18T23:33:28.000Z (about 3 years ago)
- Last Synced: 2025-01-13T17:18:15.422Z (4 months ago)
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
My tsconfig.json
>## Node
>I know, I'm a psychopath for putting this in alphabetical order. :smile:
```json
{
"env": {
"es2021": true,
"jest": true,
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"standard"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-import-helpers",
"prettier"
],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": [
"off"
],
"@typescript-eslint/explicit-module-boundary-types": [
"warn",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"custom": {
"match": true,
"regex": "^I[A-Z]"
},
"format": [
"PascalCase"
],
"selector": "interface"
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "_"
}
],
"class-methods-use-this": "off",
"import-helpers/order-imports": [
"warn",
{
"alphabetize": {
"ignoreCase": true,
"order": "asc"
},
"groups": [
"/^@/",
"module",
[
"index",
"parent",
"sibling"
]
],
"newlinesBetween": "always"
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never"
}
],
"import/prefer-default-export": "off",
"max-classes-per-file": 1,
"no-console": "off",
"no-new": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"prettier/prettier": "error"
},
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
}
}
}
}
```
>## React
```json
{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": false,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
"moduleResolution": "Node",
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": false,
"strict": true,
"target": "ESNext",
"useDefineForClassFields": true
},
"include": ["./src"]
}
```
---made with :two_hearts: by Kayo Oliveira