Skip to content

Instantly share code, notes, and snippets.

@nmsmith22389
Last active March 10, 2024 02:46
Show Gist options
  • Save nmsmith22389/ba54df084bab17801f6c1d0b1877dcd4 to your computer and use it in GitHub Desktop.
Save nmsmith22389/ba54df084bab17801f6c1d0b1877dcd4 to your computer and use it in GitHub Desktop.
{
"env": {
"es2024": true,
"es6": true,
"es2021": true,
"node": true
},
"globals": {},
"parser": "/Users/neil/Code/JXA/generator-jxa/node_modules/@typescript-eslint/parser/dist/index.js",
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false,
"ecmaFeatures": {
"jsx": true
},
"project": "/Users/neil/Code/JXA/generator-jxa/tsconfig.json",
"projectFolderIgnoreList": [
{}
],
"sourceType": "module",
"ecmaVersion": "latest"
},
"plugins": [
"eslint-comments",
"n",
"import",
"unicorn",
"ava",
"no-use-extend-native",
"@typescript-eslint",
"prettier"
],
"reportUnusedDisableDirectives": true,
"rules": {
"capitalized-comments": [
"off",
"al ways",
{
"ignoreInlineComments": true
}
],
"unicorn/prefer-module": [
"off"
],
"@typescript-eslint/no-useless-constructor": [
"off"
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": [
"variable",
"function",
"classProperty",
"objectLiteralProperty",
"parameterProperty",
"classMethod",
"objectLiteralMethod",
"typeMethod",
"accessor"
],
"format": [
"strictCamelCase"
],
"leadingUnderscore": "allowSingleOrDouble",
"trailingUnderscore": "allow",
"filter": {
"regex": "[- ]",
"match": false
}
},
{
"selector": "typeLike",
"format": [
"PascalCase"
]
},
{
"selector": "variable",
"types": [
"boolean"
],
"format": [
"StrictPascalCase"
],
"prefix": [
"is",
"has",
"can",
"should",
"will",
"did"
]
},
{
"selector": "interface",
"filter": "^(?!I)[A-Z]",
"format": [
"StrictPascalCase"
]
},
{
"selector": "typeParameter",
"filter": "^T$|^[A-Z][a-zA-Z]+$",
"format": [
"StrictPascalCase"
]
},
{
"selector": [
"classProperty",
"objectLiteralProperty"
],
"format": null,
"modifiers": [
"requiresQuotes"
]
}
],
"unicorn/prefer-spread": [
"off"
],
"unicorn/no-new-buffer": [
"off"
],
"prefer-rest-params": [
"off"
],
"prefer-destructuring": [
"off",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
},
{
"enforceForRenamedProperties": false
}
],
"promise/prefer-await-to-then": [
"off"
],
"prefer-object-spread": [
"off"
],
"n/prefer-global/url-search-params": [
"off",
"always"
],
"n/prefer-global/url": [
"off",
"always"
],
"no-useless-catch": [
"off"
],
"prefer-named-capture-group": [
"off"
],
"n/prefer-global/text-encoder": [
"off",
"always"
],
"n/prefer-global/text-decoder": [
"off",
"always"
],
"unicorn/prefer-flat-map": [
"off"
],
"n/prefer-promises/dns": [
"off"
],
"n/prefer-promises/fs": [
"off"
],
"unicorn/import-style": [
"off"
],
"node/file-extension-in-import": [
"off"
],
"import/export": [
"off"
],
"import/default": [
"off"
],
"import/named": [
"off"
],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"bracketSpacing": true,
"bracketSameLine": false,
"trailingComma": "es5",
"tabWidth": 4,
"useTabs": false,
"semi": true,
"arrowParens": "always",
"embeddedLanguageFormatting": "auto",
"endOfLine": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"rangeEnd": null,
"rangeStart": 0,
"requirePragma": false,
"singleAttributePerLine": false,
"vueIndentScriptAndStyle": false
}
],
"arrow-body-style": [
"off"
],
"prefer-arrow-callback": [
"off",
{
"allowNamedFunctions": true,
"allowUnboundThis": true
}
],
"curly": [
0
],
"no-unexpected-multiline": [
0
],
"@typescript-eslint/lines-around-comment": [
0
],
"@typescript-eslint/quotes": [
0,
"single"
],
"babel/quotes": [
0
],
"unicorn/template-indent": [
0
],
"vue/html-self-closing": [
0
],
"vue/max-len": [
0
],
"@babel/object-curly-spacing": [
"off"
],
"@babel/semi": [
"off"
],
"@typescript-eslint/block-spacing": [
"off"
],
"@typescript-eslint/brace-style": [
"off",
"1tbs",
{
"allowSingleLine": false
}
],
"@typescript-eslint/comma-dangle": [
"off",
"always-multiline"
],
"@typescript-eslint/comma-spacing": [
"off",
{
"before": false,
"after": true
}
],
"@typescript-eslint/func-call-spacing": [
"off",
"never"
],
"@typescript-eslint/indent": [
"off",
"tab",
{
"SwitchCase": 1,
"flatTernaryExpressions": false,
"offsetTernaryExpressions": false,
"ignoreComments": false
}
],
"@typescript-eslint/key-spacing": [
"off"
],
"@typescript-eslint/keyword-spacing": [
"off"
],
"@typescript-eslint/member-delimiter-style": [
"off",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-extra-parens": [
"off"
],
"@typescript-eslint/no-extra-semi": [
"off"
],
"@typescript-eslint/object-curly-spacing": [
"off",
"never"
],
"@typescript-eslint/semi": [
"off",
"always"
],
"@typescript-eslint/space-before-blocks": [
"off",
"always"
],
"@typescript-eslint/space-before-function-paren": [
"off",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"@typescript-eslint/space-infix-ops": [
"off"
],
"@typescript-eslint/type-annotation-spacing": [
"off"
],
"babel/object-curly-spacing": [
"off"
],
"babel/semi": [
"off"
],
"flowtype/boolean-style": [
"off"
],
"flowtype/delimiter-dangle": [
"off"
],
"flowtype/generic-spacing": [
"off"
],
"flowtype/object-type-curly-spacing": [
"off"
],
"flowtype/object-type-delimiter": [
"off"
],
"flowtype/quotes": [
"off"
],
"flowtype/semi": [
"off"
],
"flowtype/space-after-type-colon": [
"off"
],
"flowtype/space-before-generic-bracket": [
"off"
],
"flowtype/space-before-type-colon": [
"off"
],
"flowtype/union-intersection-spacing": [
"off"
],
"react/jsx-child-element-spacing": [
"off"
],
"react/jsx-closing-bracket-location": [
"off"
],
"react/jsx-closing-tag-location": [
"off"
],
"react/jsx-curly-newline": [
"off"
],
"react/jsx-curly-spacing": [
"off"
],
"react/jsx-equals-spacing": [
"off"
],
"react/jsx-first-prop-new-line": [
"off"
],
"react/jsx-indent": [
"off"
],
"react/jsx-indent-props": [
"off"
],
"react/jsx-max-props-per-line": [
"off"
],
"react/jsx-newline": [
"off"
],
"react/jsx-one-expression-per-line": [
"off"
],
"react/jsx-props-no-multi-spaces": [
"off"
],
"react/jsx-tag-spacing": [
"off"
],
"react/jsx-wrap-multilines": [
"off"
],
"standard/array-bracket-even-spacing": [
"off"
],
"standard/computed-property-even-spacing": [
"off"
],
"standard/object-curly-even-spacing": [
"off"
],
"unicorn/empty-brace-spaces": [
"off"
],
"unicorn/no-nested-ternary": [
"off"
],
"unicorn/number-literal-case": [
"off"
],
"vue/array-bracket-newline": [
"off"
],
"vue/array-bracket-spacing": [
"off"
],
"vue/array-element-newline": [
"off"
],
"vue/arrow-spacing": [
"off"
],
"vue/block-spacing": [
"off"
],
"vue/block-tag-newline": [
"off"
],
"vue/brace-style": [
"off"
],
"vue/comma-dangle": [
"off"
],
"vue/comma-spacing": [
"off"
],
"vue/comma-style": [
"off"
],
"vue/dot-location": [
"off"
],
"vue/func-call-spacing": [
"off"
],
"vue/html-closing-bracket-newline": [
"off"
],
"vue/html-closing-bracket-spacing": [
"off"
],
"vue/html-end-tags": [
"off"
],
"vue/html-indent": [
"off"
],
"vue/html-quotes": [
"off"
],
"vue/key-spacing": [
"off"
],
"vue/keyword-spacing": [
"off"
],
"vue/max-attributes-per-line": [
"off"
],
"vue/multiline-html-element-content-newline": [
"off"
],
"vue/multiline-ternary": [
"off"
],
"vue/mustache-interpolation-spacing": [
"off"
],
"vue/no-extra-parens": [
"off"
],
"vue/no-multi-spaces": [
"off"
],
"vue/no-spaces-around-equal-signs-in-attribute": [
"off"
],
"vue/object-curly-newline": [
"off"
],
"vue/object-curly-spacing": [
"off"
],
"vue/object-property-newline": [
"off"
],
"vue/operator-linebreak": [
"off"
],
"vue/quote-props": [
"off"
],
"vue/script-indent": [
"off"
],
"vue/singleline-html-element-content-newline": [
"off"
],
"vue/space-in-parens": [
"off"
],
"vue/space-infix-ops": [
"off"
],
"vue/space-unary-ops": [
"off"
],
"vue/template-curly-spacing": [
"off"
],
"space-unary-word-ops": [
"off"
],
"generator-star": [
"off"
],
"no-comma-dangle": [
"off"
],
"no-reserved-keys": [
"off"
],
"no-space-before-semi": [
"off"
],
"no-wrap-func": [
"off"
],
"space-after-function-name": [
"off"
],
"space-before-function-parentheses": [
"off"
],
"space-in-brackets": [
"off"
],
"no-arrow-condition": [
"off"
],
"space-after-keywords": [
"off"
],
"space-before-keywords": [
"off"
],
"space-return-throw-case": [
"off"
],
"no-spaced-func": [
"off"
],
"indent-legacy": [
"off"
],
"array-bracket-newline": [
"off",
"consistent"
],
"array-bracket-spacing": [
"off",
"never"
],
"array-element-newline": [
"off",
"consistent"
],
"arrow-parens": [
"off",
"as-needed"
],
"arrow-spacing": [
"off",
{
"before": true,
"after": true
}
],
"block-spacing": [
"off"
],
"brace-style": [
"off",
"1tbs",
{
"allowSingleLine": false
}
],
"comma-dangle": [
"off",
"always-multiline"
],
"comma-spacing": [
"off",
{
"before": false,
"after": true
}
],
"comma-style": [
"off",
"last"
],
"computed-property-spacing": [
"off",
"never",
{
"enforceForClassMembers": true
}
],
"dot-location": [
"off",
"property"
],
"eol-last": [
"off"
],
"func-call-spacing": [
"off",
"never"
],
"function-call-argument-newline": [
"off",
"consistent"
],
"function-paren-newline": [
"off"
],
"generator-star-spacing": [
"off",
"both"
],
"implicit-arrow-linebreak": [
"off"
],
"indent": [
"off",
"tab",
{
"SwitchCase": 1,
"flatTernaryExpressions": false,
"offsetTernaryExpressions": false,
"ignoreComments": false
}
],
"jsx-quotes": [
"off",
"prefer-single"
],
"key-spacing": [
"off",
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": [
"off"
],
"linebreak-style": [
"off",
"unix"
],
"lines-around-comment": [
0
],
"max-len": [
0
],
"max-statements-per-line": [
"off"
],
"multiline-ternary": [
"off"
],
"new-parens": [
"off"
],
"newline-per-chained-call": [
"off"
],
"no-confusing-arrow": [
0
],
"no-extra-parens": [
"off"
],
"no-extra-semi": [
"off"
],
"no-floating-decimal": [
"off"
],
"no-mixed-operators": [
0
],
"no-mixed-spaces-and-tabs": [
"off"
],
"no-multi-spaces": [
"off"
],
"no-multiple-empty-lines": [
"off",
{
"max": 1
}
],
"no-tabs": [
0
],
"no-trailing-spaces": [
"off"
],
"no-whitespace-before-property": [
"off"
],
"nonblock-statement-body-position": [
"off"
],
"object-curly-newline": [
"off",
{
"ObjectExpression": {
"multiline": true,
"minProperties": 4,
"consistent": true
},
"ObjectPattern": {
"multiline": true,
"consistent": true
},
"ImportDeclaration": {
"multiline": true,
"minProperties": 4,
"consistent": true
},
"ExportDeclaration": {
"multiline": true,
"minProperties": 4,
"consistent": true
}
}
],
"object-curly-spacing": [
"off",
"never"
],
"object-property-newline": [
"off"
],
"one-var-declaration-per-line": [
"off"
],
"operator-linebreak": [
"off",
"before"
],
"padded-blocks": [
"off",
"never",
{
"allowSingleLineBlocks": false
}
],
"quote-props": [
"off",
"as-needed"
],
"quotes": [
0,
"single"
],
"rest-spread-spacing": [
"off",
"never"
],
"semi": [
"off",
"always"
],
"semi-spacing": [
"off",
{
"before": false,
"after": true
}
],
"semi-style": [
"off",
"last"
],
"space-before-blocks": [
"off",
"always"
],
"space-before-function-paren": [
"off",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": [
"off",
"never"
],
"space-infix-ops": [
"off"
],
"space-unary-ops": [
"off"
],
"switch-colon-spacing": [
"off",
{
"after": true,
"before": false
}
],
"template-curly-spacing": [
"off"
],
"template-tag-spacing": [
"off",
"never"
],
"wrap-iife": [
"off",
"inside",
{
"functionPrototypeMethods": true
}
],
"wrap-regex": [
"off"
],
"yield-star-spacing": [
"off",
"both"
],
"react/jsx-space-before-closing": [
"off"
],
"@typescript-eslint/adjacent-overload-signatures": [
"error"
],
"@typescript-eslint/array-type": [
"error",
{
"default": "array-simple"
}
],
"@typescript-eslint/await-thenable": [
"error"
],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"minimumDescriptionLength": 4
}
],
"@typescript-eslint/ban-tslint-comment": [
"error"
],
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": false,
"types": {
"String": {
"message": "Use `string` instead.",
"fixWith": "string"
},
"Number": {
"message": "Use `number` instead.",
"fixWith": "number"
},
"Boolean": {
"message": "Use `boolean` instead.",
"fixWith": "boolean"
},
"Symbol": {
"message": "Use `symbol` instead.",
"fixWith": "symbol"
},
"BigInt": {
"message": "Use `bigint` instead.",
"fixWith": "bigint"
},
"Object": {
"message": "The `Object` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead. See https://github.com/typescript-eslint/typescript-eslint/pull/848",
"fixWith": "Record<string, unknown>"
},
"{}": {
"message": "The `{}` type is mostly the same as `unknown`. You probably want `Record<string, unknown>` instead.",
"fixWith": "Record<string, unknown>"
},
"object": {
"message": "The `object` type is hard to use. Use `Record<string, unknown>` instead. See: https://github.com/typescript-eslint/typescript-eslint/pull/848",
"fixWith": "Record<string, unknown>"
},
"Function": "Use a specific function type instead, like `() => void`.",
"null": {
"message": "Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7",
"fixWith": "undefined"
},
"Buffer": {
"message": "Use Uint8Array instead. See: https://sindresorhus.com/blog/goodbye-nodejs-buffer",
"suggest": [
"Uint8Array"
]
},
"[]": "Don't use the empty array type `[]`. It only allows empty arrays. Use `SomeType[]` instead.",
"[[]]": "Don't use `[[]]`. It only allows an array with a single element which is an empty array. Use `SomeType[][]` instead.",
"[[[]]]": "Don't use `[[[]]]`. Use `SomeType[][][]` instead.",
"[[[[]]]]": "ur drunk 🤡",
"[[[[[]]]]]": "🦄💥"
}
}
],
"@typescript-eslint/class-literal-property-style": [
"error",
"getters"
],
"@typescript-eslint/consistent-generic-constructors": [
"error",
"constructor"
],
"@typescript-eslint/consistent-indexed-object-style": [
"error"
],
"default-param-last": [
"off"
],
"@typescript-eslint/default-param-last": [
"error"
],
"dot-notation": [
"off"
],
"@typescript-eslint/dot-notation": [
"error"
],
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "allow-as-parameter"
}
],
"@typescript-eslint/consistent-type-definitions": [
"error",
"type"
],
"@typescript-eslint/consistent-type-exports": [
"error",
{
"fixMixedExportsWithInlineTypeSpecifier": true
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"lines-between-class-members": [
"off",
"always",
{
"exceptAfterSingleLine": true
}
],
"@typescript-eslint/lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true,
"exceptAfterOverload": true
}
],
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
"signature",
"public-static-field",
"public-static-method",
"protected-static-field",
"protected-static-method",
"private-static-field",
"private-static-method",
"static-field",
"static-method",
"public-decorated-field",
"public-instance-field",
"public-abstract-field",
"public-field",
"protected-decorated-field",
"protected-instance-field",
"protected-abstract-field",
"protected-field",
"private-decorated-field",
"private-instance-field",
"private-field",
"instance-field",
"abstract-field",
"decorated-field",
"field",
"public-constructor",
"protected-constructor",
"private-constructor",
"constructor",
"public-decorated-method",
"public-instance-method",
"public-abstract-method",
"public-method",
"protected-decorated-method",
"protected-instance-method",
"protected-abstract-method",
"protected-method",
"private-decorated-method",
"private-instance-method",
"private-method",
"instance-method",
"abstract-method",
"decorated-method",
"method"
]
}
],
"camelcase": [
"off",
{
"properties": "always",
"ignoreDestructuring": false,
"ignoreImports": false,
"ignoreGlobals": false
}
],
"@typescript-eslint/no-base-to-string": [
"error"
],
"no-array-constructor": [
"off"
],
"@typescript-eslint/no-array-constructor": [
"error"
],
"@typescript-eslint/no-array-delete": [
"error"
],
"no-dupe-class-members": [
"off"
],
"@typescript-eslint/no-dupe-class-members": [
"error"
],
"@typescript-eslint/no-confusing-void-expression": [
"error"
],
"@typescript-eslint/no-duplicate-enum-values": [
"error"
],
"@typescript-eslint/no-duplicate-type-constituents": [
"error"
],
"@typescript-eslint/no-dynamic-delete": [
"error"
],
"no-empty-function": [
"off"
],
"@typescript-eslint/no-empty-function": [
"error"
],
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
],
"@typescript-eslint/no-extra-non-null-assertion": [
"error"
],
"no-loop-func": [
"off"
],
"@typescript-eslint/no-loop-func": [
"error"
],
"no-loss-of-precision": [
"off"
],
"@typescript-eslint/no-loss-of-precision": [
"error"
],
"@typescript-eslint/no-extraneous-class": [
"error",
{
"allowConstructorOnly": false,
"allowEmpty": false,
"allowStaticOnly": false,
"allowWithDecorator": true
}
],
"no-void": [
"error",
{
"allowAsStatement": true
}
],
"@typescript-eslint/no-floating-promises": [
"error",
{
"ignoreVoid": true,
"ignoreIIFE": true
}
],
"@typescript-eslint/no-for-in-array": [
"error"
],
"@typescript-eslint/no-inferrable-types": [
"error"
],
"@typescript-eslint/no-meaningless-void-operator": [
"error"
],
"@typescript-eslint/no-misused-new": [
"error"
],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksConditionals": true,
"checksVoidReturn": false
}
],
"@typescript-eslint/no-namespace": [
"error"
],
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": [
"error"
],
"@typescript-eslint/no-non-null-asserted-optional-chain": [
"error"
],
"no-redeclare": [
"off"
],
"@typescript-eslint/no-redeclare": [
"error"
],
"no-restricted-imports": [
"off",
"domain",
"freelist",
"smalloc",
"punycode",
"sys",
"querystring",
"colors"
],
"@typescript-eslint/no-restricted-imports": [
"error",
{
"paths": [
"error",
"domain",
"freelist",
"smalloc",
"punycode",
"sys",
"querystring",
"colors"
]
}
],
"@typescript-eslint/no-require-imports": [
"error"
],
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true
}
],
"no-throw-literal": [
"off"
],
"@typescript-eslint/no-throw-literal": [
"error",
{
"allowThrowingUnknown": true,
"allowThrowingAny": false
}
],
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
"error"
],
"no-constant-condition": [
"error"
],
"@typescript-eslint/no-unnecessary-qualifier": [
"error"
],
"@typescript-eslint/no-unnecessary-type-arguments": [
"error"
],
"@typescript-eslint/no-unnecessary-type-assertion": [
"error"
],
"@typescript-eslint/no-unnecessary-type-constraint": [
"error"
],
"@typescript-eslint/no-unsafe-argument": [
"error"
],
"@typescript-eslint/no-unsafe-assignment": [
"error"
],
"@typescript-eslint/no-unsafe-call": [
"error"
],
"@typescript-eslint/no-unsafe-declaration-merging": [
"error"
],
"@typescript-eslint/no-unsafe-enum-comparison": [
"error"
],
"@typescript-eslint/no-unsafe-return": [
"error"
],
"@typescript-eslint/no-useless-empty-export": [
"error"
],
"no-unused-expressions": [
"off",
{
"enforceForJSX": true,
"allowShortCircuit": false,
"allowTernary": false,
"allowTaggedTemplates": false
}
],
"@typescript-eslint/no-unused-expressions": [
"error"
],
"no-unused-vars": [
"off",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_$"
}
],
"no-useless-constructor": [
"off"
],
"padding-line-between-statements": [
"off",
{
"blankLine": "always",
"prev": "multiline-block-like",
"next": "*"
}
],
"@typescript-eslint/padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "multiline-block-like",
"next": "*"
}
],
"@typescript-eslint/no-var-requires": [
"error"
],
"@typescript-eslint/non-nullable-type-assertion-style": [
"error"
],
"@typescript-eslint/parameter-properties": [
"error",
{
"prefer": "parameter-property"
}
],
"@typescript-eslint/prefer-as-const": [
"error"
],
"@typescript-eslint/prefer-find": [
"error"
],
"@typescript-eslint/prefer-for-of": [
"error"
],
"@typescript-eslint/prefer-function-type": [
"error"
],
"@typescript-eslint/prefer-includes": [
"error"
],
"@typescript-eslint/prefer-literal-enum-member": [
"error"
],
"@typescript-eslint/prefer-namespace-keyword": [
"error"
],
"@typescript-eslint/prefer-nullish-coalescing": [
"error",
{
"ignoreTernaryTests": false,
"ignoreConditionalTests": false,
"ignoreMixedLogicalExpressions": false
}
],
"@typescript-eslint/prefer-optional-chain": [
"error"
],
"prefer-promise-reject-errors": [
"off",
{
"allowEmptyReject": true
}
],
"@typescript-eslint/prefer-promise-reject-errors": [
"error"
],
"@typescript-eslint/prefer-readonly": [
"error"
],
"@typescript-eslint/prefer-reduce-type-parameter": [
"error"
],
"@typescript-eslint/prefer-string-starts-ends-with": [
"error"
],
"@typescript-eslint/prefer-ts-expect-error": [
"error"
],
"@typescript-eslint/promise-function-async": [
"error"
],
"@typescript-eslint/restrict-plus-operands": [
"error",
{
"allowAny": false
}
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowNumber": true
}
],
"@typescript-eslint/return-await": [
"error"
],
"@typescript-eslint/require-array-sort-compare": [
"error",
{
"ignoreStringArrays": true
}
],
"default-case": [
"off"
],
"@typescript-eslint/switch-exhaustiveness-check": [
"error",
{
"allowDefaultCaseForExhaustiveSwitch": false,
"requireDefaultForNonUnion": true
}
],
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "never",
"types": "never",
"lib": "never"
}
],
"@typescript-eslint/prefer-regexp-exec": [
"error"
],
"@typescript-eslint/prefer-return-this-type": [
"error"
],
"@typescript-eslint/unified-signatures": [
"error",
{
"ignoreDifferentlyNamedParameters": true
}
],
"no-undef": [
"off",
{
"typeof": true
}
],
"node/no-unsupported-features/es-syntax": [
"off"
],
"node/no-unsupported-features/es-builtins": [
"off"
],
"import/namespace": [
"off",
{
"allowComputed": true
}
],
"no-duplicate-imports": [
"off"
],
"no-use-extend-native/no-use-extend-native": [
"error"
],
"unicorn/prevent-abbreviations": [
"error",
{
"checkFilenames": false,
"checkDefaultAndNamespaceImports": false,
"checkShorthandImports": false,
"extendDefaultReplacements": true,
"replacements": {
"whitelist": {
"include": true
},
"blacklist": {
"exclude": true
},
"master": {
"main": true
},
"slave": {
"secondary": true
},
"application": {
"app": true
},
"applications": {
"apps": true
},
"env": false,
"i": false,
"bin": {
"binary": true
},
"eof": {
"endOfFile": true
},
"impl": {
"implement": true,
"implementation": true
},
"anim": {
"animation": true
},
"calc": {
"calculate": true
},
"dict": {
"dictionary": true
},
"dup": {
"duplicate": true
},
"enc": {
"encode": true,
"encryption": true
},
"gen": {
"generate": true,
"general": true
},
"gfx": {
"graphics": true
},
"inc": {
"increment": true
},
"iter": {
"iterate": true,
"iterator": true
},
"nav": {
"navigate": true,
"navigation": true
},
"norm": {
"normalize": true
},
"notif": {
"notification": true
},
"perf": {
"performance": true
},
"proc": {
"process": true
},
"rand": {
"random": true
},
"sys": {
"system": true
},
"temp": {
"temporary": true
}
}
}
],
"unicorn/better-regex": [
"error",
{
"sortCharacterClasses": false
}
],
"unicorn/no-empty-file": [
"off"
],
"unicorn/no-null": [
"off"
],
"unicorn/prefer-ternary": [
"error",
"only-single-line"
],
"unicorn/prefer-json-parse-buffer": [
"off"
],
"unicorn/consistent-function-scoping": [
"off"
],
"unicorn/no-useless-undefined": [
"off"
],
"import/extensions": [
"error",
"always",
{
"ignorePackages": true
}
],
"import/first": [
"error"
],
"import/no-absolute-path": [
"error"
],
"import/no-anonymous-default-export": [
"error"
],
"import/no-named-default": [
"error"
],
"import/no-webpack-loader-syntax": [
"error"
],
"import/no-self-import": [
"error"
],
"import/no-cycle": [
"error",
{
"ignoreExternal": true,
"allowUnsafeDynamicCyclicDependency": false
}
],
"import/no-useless-path-segments": [
"error"
],
"import/newline-after-import": [
"error",
{}
],
"import/no-amd": [
"error"
],
"import/no-duplicates": [
"error",
{
"prefer-inline": true
}
],
"import/no-empty-named-blocks": [
"error"
],
"import/no-extraneous-dependencies": [
"error",
{
"includeTypes": true
}
],
"import/no-mutable-exports": [
"error"
],
"import/no-named-as-default-member": [
"error"
],
"import/no-named-as-default": [
"error"
],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index"
],
"newlines-between": "never",
"warnOnUnassignedImports": true,
"distinctGroup": true
}
],
"import/no-unassigned-import": [
"error",
{
"allow": [
"@babel/polyfill",
"**/register",
"**/register.*",
"**/register/**",
"**/register/**.*",
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less"
]
}
],
"n/no-unpublished-bin": [
"error"
],
"n/file-extension-in-import": [
"error",
"always",
{
".ts": "never",
".tsx": "never",
".mts": "never",
".cts": "never"
}
],
"n/no-mixed-requires": [
"error",
{
"grouping": true,
"allowCall": true
}
],
"n/no-new-require": [
"error"
],
"n/no-path-concat": [
"error"
],
"n/process-exit-as-throw": [
"error"
],
"n/no-deprecated-api": [
"error"
],
"n/prefer-global/console": [
"error",
"always"
],
"n/prefer-global/process": [
"error",
"never"
],
"eslint-comments/disable-enable-pair": [
"error",
{
"allowWholeFile": true
}
],
"eslint-comments/no-aggregating-enable": [
"error"
],
"eslint-comments/no-duplicate-disable": [
"error"
],
"eslint-comments/no-unused-disable": [
"error"
],
"eslint-comments/no-unused-enable": [
"error"
],
"unicorn/catch-error-name": [
"error"
],
"unicorn/consistent-destructuring": [
"off"
],
"unicorn/custom-error-definition": [
"off"
],
"unicorn/error-message": [
"error"
],
"unicorn/escape-case": [
"error"
],
"unicorn/expiring-todo-comments": [
"error"
],
"unicorn/explicit-length-check": [
"error"
],
"unicorn/filename-case": [
"error"
],
"unicorn/new-for-builtins": [
"error"
],
"unicorn/no-abusive-eslint-disable": [
"error"
],
"unicorn/no-array-callback-reference": [
"error"
],
"unicorn/no-array-for-each": [
"error"
],
"unicorn/no-array-method-this-argument": [
"error"
],
"unicorn/no-array-push-push": [
"error"
],
"unicorn/no-array-reduce": [
"error"
],
"unicorn/no-await-expression-member": [
"error"
],
"unicorn/no-console-spaces": [
"error"
],
"unicorn/no-document-cookie": [
"error"
],
"unicorn/no-for-loop": [
"error"
],
"unicorn/no-hex-escape": [
"error"
],
"unicorn/no-instanceof-array": [
"error"
],
"unicorn/no-invalid-remove-event-listener": [
"error"
],
"unicorn/no-keyword-prefix": [
"off"
],
"unicorn/no-lonely-if": [
"error"
],
"no-negated-condition": [
"off"
],
"unicorn/no-negated-condition": [
"error"
],
"no-nested-ternary": [
"off"
],
"unicorn/no-new-array": [
"error"
],
"unicorn/no-object-as-default-parameter": [
"error"
],
"unicorn/no-process-exit": [
"error"
],
"unicorn/no-static-only-class": [
"error"
],
"unicorn/no-thenable": [
"error"
],
"unicorn/no-this-assignment": [
"error"
],
"unicorn/no-typeof-undefined": [
"error"
],
"unicorn/no-unnecessary-await": [
"error"
],
"unicorn/no-unnecessary-polyfills": [
"error"
],
"unicorn/no-unreadable-array-destructuring": [
"error"
],
"unicorn/no-unreadable-iife": [
"error"
],
"unicorn/no-unused-properties": [
"off"
],
"unicorn/no-useless-fallback-in-spread": [
"error"
],
"unicorn/no-useless-length-check": [
"error"
],
"unicorn/no-useless-promise-resolve-reject": [
"error"
],
"unicorn/no-useless-spread": [
"error"
],
"unicorn/no-useless-switch-case": [
"error"
],
"unicorn/no-zero-fractions": [
"error"
],
"unicorn/numeric-separators-style": [
"error"
],
"unicorn/prefer-add-event-listener": [
"error"
],
"unicorn/prefer-array-find": [
"error"
],
"unicorn/prefer-array-flat": [
"error"
],
"unicorn/prefer-array-flat-map": [
"error"
],
"unicorn/prefer-array-index-of": [
"error"
],
"unicorn/prefer-array-some": [
"error"
],
"unicorn/prefer-at": [
"error"
],
"unicorn/prefer-blob-reading-methods": [
"error"
],
"unicorn/prefer-code-point": [
"error"
],
"unicorn/prefer-date-now": [
"error"
],
"unicorn/prefer-default-parameters": [
"error"
],
"unicorn/prefer-dom-node-append": [
"error"
],
"unicorn/prefer-dom-node-dataset": [
"error"
],
"unicorn/prefer-dom-node-remove": [
"error"
],
"unicorn/prefer-dom-node-text-content": [
"error"
],
"unicorn/prefer-event-target": [
"error"
],
"unicorn/prefer-export-from": [
"error"
],
"unicorn/prefer-includes": [
"error"
],
"unicorn/prefer-keyboard-event-key": [
"error"
],
"unicorn/prefer-logical-operator-over-ternary": [
"error"
],
"unicorn/prefer-math-trunc": [
"error"
],
"unicorn/prefer-modern-dom-apis": [
"error"
],
"unicorn/prefer-modern-math-apis": [
"error"
],
"unicorn/prefer-native-coercion-functions": [
"error"
],
"unicorn/prefer-negative-index": [
"error"
],
"unicorn/prefer-node-protocol": [
"error"
],
"unicorn/prefer-number-properties": [
"error"
],
"unicorn/prefer-object-from-entries": [
"error"
],
"unicorn/prefer-optional-catch-binding": [
"error"
],
"unicorn/prefer-prototype-methods": [
"error"
],
"unicorn/prefer-query-selector": [
"error"
],
"unicorn/prefer-reflect-apply": [
"error"
],
"unicorn/prefer-regexp-test": [
"error"
],
"unicorn/prefer-set-has": [
"error"
],
"unicorn/prefer-set-size": [
"error"
],
"unicorn/prefer-string-replace-all": [
"error"
],
"unicorn/prefer-string-slice": [
"error"
],
"unicorn/prefer-string-starts-ends-with": [
"error"
],
"unicorn/prefer-string-trim-start-end": [
"error"
],
"unicorn/prefer-switch": [
"error"
],
"unicorn/prefer-top-level-await": [
"error"
],
"unicorn/prefer-type-error": [
"error"
],
"unicorn/relative-url-style": [
"error"
],
"unicorn/require-array-join-separator": [
"error"
],
"unicorn/require-number-to-fixed-digits-argument": [
"error"
],
"unicorn/require-post-message-target-origin": [
"off"
],
"unicorn/string-content": [
"off"
],
"unicorn/switch-case-braces": [
"error"
],
"unicorn/text-encoding-identifier-case": [
"error"
],
"unicorn/throw-new-error": [
"error"
],
"ava/assertion-arguments": [
"error"
],
"ava/hooks-order": [
"error"
],
"ava/max-asserts": [
"off",
5
],
"ava/no-async-fn-without-await": [
"error"
],
"ava/no-duplicate-modifiers": [
"error"
],
"ava/no-identical-title": [
"error"
],
"ava/no-ignored-test-files": [
"error"
],
"ava/no-import-test-files": [
"error"
],
"ava/no-incorrect-deep-equal": [
"error"
],
"ava/no-inline-assertions": [
"error"
],
"ava/no-nested-tests": [
"error"
],
"ava/no-only-test": [
"error"
],
"ava/no-skip-assert": [
"error"
],
"ava/no-skip-test": [
"error"
],
"ava/no-todo-implementation": [
"error"
],
"ava/no-todo-test": [
"warn"
],
"ava/no-unknown-modifiers": [
"error"
],
"ava/prefer-async-await": [
"error"
],
"ava/prefer-power-assert": [
"off"
],
"ava/prefer-t-regex": [
"error"
],
"ava/test-title": [
"error"
],
"ava/test-title-format": [
"off"
],
"ava/use-t-well": [
"error"
],
"ava/use-t": [
"error"
],
"ava/use-t-throws-async-well": [
"error"
],
"ava/use-test": [
"error"
],
"ava/use-true-false": [
"error"
],
"for-direction": [
"error"
],
"getter-return": [
"error"
],
"no-async-promise-executor": [
"error"
],
"no-await-in-loop": [
"error"
],
"no-compare-neg-zero": [
"error"
],
"no-cond-assign": [
"error"
],
"no-control-regex": [
"error"
],
"no-debugger": [
"error"
],
"no-dupe-args": [
"error"
],
"no-dupe-else-if": [
"error"
],
"no-dupe-keys": [
"error"
],
"no-duplicate-case": [
"error"
],
"no-empty-character-class": [
"error"
],
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-empty-static-block": [
"error"
],
"no-ex-assign": [
"error"
],
"no-extra-boolean-cast": [
"error"
],
"no-func-assign": [
"error"
],
"no-import-assign": [
"error"
],
"no-inner-declarations": [
"error"
],
"no-invalid-regexp": [
"error"
],
"no-irregular-whitespace": [
"error"
],
"no-misleading-character-class": [
"error"
],
"no-obj-calls": [
"error"
],
"no-promise-executor-return": [
"error"
],
"no-prototype-builtins": [
"error"
],
"no-regex-spaces": [
"error"
],
"no-setter-return": [
"error"
],
"no-sparse-arrays": [
"error"
],
"no-template-curly-in-string": [
"error"
],
"no-unreachable": [
"error"
],
"no-unreachable-loop": [
"error"
],
"no-unsafe-finally": [
"error"
],
"no-unsafe-negation": [
"error",
{
"enforceForOrderingRelations": true
}
],
"no-unsafe-optional-chaining": [
"error",
{
"disallowArithmeticOperators": true
}
],
"no-useless-backreference": [
"error"
],
"use-isnan": [
"error"
],
"valid-typeof": [
"error",
{
"requireStringLiterals": false
}
],
"accessor-pairs": [
"error",
{
"enforceForClassMembers": true,
"getWithoutSet": false,
"setWithoutGet": true
}
],
"array-callback-return": [
"error",
{
"allowImplicit": true,
"checkForEach": false,
"allowVoid": false
}
],
"block-scoped-var": [
"error"
],
"complexity": [
"warn"
],
"default-case-last": [
"error"
],
"eqeqeq": [
"error"
],
"grouped-accessor-pairs": [
"error",
"getBeforeSet"
],
"guard-for-in": [
"error"
],
"no-alert": [
"error"
],
"no-caller": [
"error"
],
"no-case-declarations": [
"error"
],
"no-constructor-return": [
"error"
],
"no-else-return": [
"error",
{
"allowElseIf": false
}
],
"no-empty-pattern": [
"error"
],
"no-eq-null": [
"error"
],
"no-eval": [
"error"
],
"no-extend-native": [
"error"
],
"no-extra-bind": [
"error"
],
"no-extra-label": [
"error"
],
"no-fallthrough": [
"error"
],
"no-global-assign": [
"error"
],
"no-implicit-coercion": [
"error"
],
"no-implicit-globals": [
"error"
],
"no-implied-eval": [
"error"
],
"no-iterator": [
"error"
],
"no-labels": [
"error"
],
"no-lone-blocks": [
"error"
],
"no-multi-str": [
"error"
],
"no-new-func": [
"error"
],
"no-new-wrappers": [
"error"
],
"no-nonoctal-decimal-escape": [
"error"
],
"no-object-constructor": [
"error"
],
"no-new": [
"error"
],
"no-octal-escape": [
"error"
],
"no-octal": [
"error"
],
"no-proto": [
"error"
],
"no-return-assign": [
"error",
"always"
],
"no-return-await": [
"error"
],
"no-script-url": [
"error"
],
"no-self-assign": [
"error",
{
"props": true
}
],
"no-self-compare": [
"error"
],
"no-sequences": [
"error"
],
"no-unmodified-loop-condition": [
"error"
],
"no-unused-labels": [
"error"
],
"no-useless-call": [
"error"
],
"no-useless-concat": [
"error"
],
"no-useless-escape": [
"error"
],
"no-useless-return": [
"error"
],
"no-warning-comments": [
"warn"
],
"no-with": [
"error"
],
"prefer-regex-literals": [
"error",
{
"disallowRedundantWrapping": true
}
],
"radix": [
"error"
],
"yoda": [
"error"
],
"no-delete-var": [
"error"
],
"no-label-var": [
"error"
],
"no-restricted-globals": [
"error",
"event",
{
"name": "atob",
"message": "This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead."
},
{
"name": "btoa",
"message": "This API is deprecated. Use https://github.com/sindresorhus/uint8array-extras instead."
}
],
"no-shadow-restricted-names": [
"error"
],
"no-undef-init": [
"error"
],
"no-buffer-constructor": [
"error"
],
"func-name-matching": [
"error",
{
"considerPropertyDescriptor": true
}
],
"func-names": [
"error",
"never"
],
"logical-assignment-operators": [
"error",
"always",
{
"enforceForIfStatements": true
}
],
"max-depth": [
"warn"
],
"max-nested-callbacks": [
"warn",
4
],
"max-params": [
"warn",
{
"max": 4
}
],
"new-cap": [
"error",
{
"newIsCap": true,
"capIsNew": true,
"properties": true
}
],
"no-bitwise": [
"error"
],
"no-lonely-if": [
"error"
],
"no-multi-assign": [
"error"
],
"no-unneeded-ternary": [
"error"
],
"one-var": [
"error",
"never"
],
"operator-assignment": [
"error",
"always"
],
"prefer-exponentiation-operator": [
"error"
],
"spaced-comment": [
"error",
"always",
{
"line": {
"exceptions": [
"-",
"+",
"*"
],
"markers": [
"!",
"/",
"=>"
]
},
"block": {
"exceptions": [
"-",
"+",
"*"
],
"markers": [
"!",
"*"
],
"balanced": true
}
}
],
"unicode-bom": [
"error",
"never"
],
"constructor-super": [
"error"
],
"no-class-assign": [
"error"
],
"no-const-assign": [
"error"
],
"no-constant-binary-expression": [
"error"
],
"no-new-native-nonconstructor": [
"error"
],
"no-this-before-super": [
"error"
],
"no-useless-computed-key": [
"error",
{
"enforceForClassMembers": true
}
],
"no-useless-rename": [
"error"
],
"no-var": [
"error"
],
"object-shorthand": [
"error",
"always",
{
"avoidExplicitReturnArrows": true
}
],
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": false
}
],
"prefer-numeric-literals": [
"error"
],
"prefer-object-has-own": [
"error"
],
"prefer-spread": [
"error"
],
"require-yield": [
"error"
],
"symbol-description": [
"error"
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
},
"import/parsers": {
"/Users/neil/Code/JXA/generator-jxa/node_modules/@typescript-eslint/parser/dist/index.js": [
".ts",
".tsx"
]
},
"import/core-modules": [
"electron",
"atom"
]
},
"ignorePatterns": [
"**/node_modules/**",
"**/bower_components/**",
"flow-typed/**",
"coverage/**",
"{tmp,temp}/**",
"**/*.min.js",
"vendor/**",
"dist/**",
"distribution/**",
"tap-snapshots/*.{cjs,js}",
"dist/",
"lib/"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment