Skip to content

Instantly share code, notes, and snippets.

@JustBarnt
Last active September 4, 2022 03:55
Show Gist options
  • Select an option

  • Save JustBarnt/814dd4b44b6c20519b648eb4ec628bf4 to your computer and use it in GitHub Desktop.

Select an option

Save JustBarnt/814dd4b44b6c20519b648eb4ec628bf4 to your computer and use it in GitHub Desktop.
ESLint | Final
{
"env": {
"browser": true,
"node": true
},
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"simple-import-sort"
],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@typescript-eslint/array-type": "warn",
"@typescript-eslint/brace-style": [
"error",
"allman",
{
"allowSingleLine": true
}
],
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/comma-spacing": [
"error",
{
"after": true
}
],
"@typescript-eslint/default-param-last": "error",
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/no-duplicate-enum-values": "error",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-redeclare": 1,
"@typescript-eslint/no-shadow": [
"off"
],
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/object-curly-spacing": [
"error",
"always"
],
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/quotes": [
"error",
"double",
{
"allowTemplateLiterals": true
}
],
"@typescript-eslint/semi": "error",
"@typescript-eslint/space-before-blocks": "off",
"@typescrupt-eslint/space-before-function-paren": "off",
"arrow-spacing": [
"warn",
{
"after": true,
"before": true
}
],
"curly": [
"error",
"multi-or-nest"
],
"dot-location": [
"error",
"property"
],
"eqeqeq": "error",
"handle-callback-err": "off",
"no-console": "off",
"no-constant-condition": 1,
"no-empty": "warn",
"no-floating-decimal": "error",
"no-lonely-if": "off",
"no-mixed-spaces-and-tabs": "off",
"no-trailing-spaces": "off",
"no-undef": "off",
"no-unreachable": "warn",
"no-var": "warn",
"prefer-const": "off",
"space-in-parens": 0,
"yoda": "warn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment