Skip to content

kayooliveira/tsconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

My tsconfig.json

Node

I know, I'm a psychopath for putting this in alphabetical order. 😄

{
    "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

{
  "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 💕 by Kayo Oliveira

About

My tsconfig.json file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages