-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Migrate JSInterop to ESLint #39162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Migrate JSInterop to ESLint #39162
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
70e964e
Migrate JSInterop to ESLint
TanayParikh 8de5412
Update .js
TanayParikh a8dacc4
Remove tslint.json
TanayParikh 6b22e36
Fix spacing
TanayParikh 8b457ba
PR Feedback
TanayParikh f0aaf32
Merge branch 'main' into taparik/JSInterop_ESLint
TanayParikh d1c8121
Update .devcontainer/devcontainer.json
TanayParikh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
236 changes: 236 additions & 0 deletions
236
src/JSInterop/Microsoft.JSInterop.JS/src/.eslintrc.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,236 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"accessor-pairs": "error", | ||
"array-bracket-newline": "error", | ||
"array-bracket-spacing": "error", | ||
"array-callback-return": "error", | ||
"array-element-newline": "error", | ||
"arrow-spacing": "error", | ||
"block-scoped-var": "error", | ||
"block-spacing": "error", | ||
"brace-style": "error", | ||
"camelcase": "error", | ||
"class-methods-use-this": "error", | ||
"comma-dangle": "error", | ||
"comma-spacing": "error", | ||
"comma-style": "error", | ||
"complexity": "error", | ||
"computed-property-spacing": "error", | ||
"consistent-return": "error", | ||
"consistent-this": "error", | ||
"curly": "error", | ||
"default-case": "error", | ||
"default-case-last": "error", | ||
"default-param-last": "error", | ||
"dot-location": "error", | ||
"dot-notation": "error", | ||
"eol-last": "error", | ||
"eqeqeq": "error", | ||
"func-call-spacing": "error", | ||
"func-name-matching": "error", | ||
"func-names": "error", | ||
"function-paren-newline": "error", | ||
"generator-star-spacing": "error", | ||
"grouped-accessor-pairs": "error", | ||
"guard-for-in": "error", | ||
"id-denylist": "error", | ||
"id-length": "error", | ||
"id-match": "error", | ||
"implicit-arrow-linebreak": "error", | ||
"indent": "error", | ||
"jsx-quotes": "error", | ||
"key-spacing": "error", | ||
"keyword-spacing": "error", | ||
"linebreak-style": "error", | ||
"lines-between-class-members": "error", | ||
"max-classes-per-file": "off", | ||
"max-depth": "error", | ||
"max-len": [ "error", { "code": 300 } ], | ||
"max-lines": "off", | ||
"max-lines-per-function": "error", | ||
"max-nested-callbacks": "error", | ||
"max-statements-per-line": "error", | ||
"multiline-comment-style": "error", | ||
"new-cap": "error", | ||
"new-parens": "error", | ||
"newline-per-chained-call": "error", | ||
"no-alert": "error", | ||
"no-array-constructor": "error", | ||
"no-await-in-loop": "error", | ||
"no-bitwise": "off", | ||
"no-caller": "error", | ||
"no-confusing-arrow": "error", | ||
"no-console": "off", | ||
"no-constructor-return": "error", | ||
"no-continue": "error", | ||
"no-div-regex": "error", | ||
"no-duplicate-imports": "error", | ||
"no-else-return": "error", | ||
"no-empty-function": "error", | ||
"no-eq-null": "error", | ||
"no-eval": "error", | ||
"no-extend-native": "error", | ||
"no-extra-bind": "error", | ||
"no-extra-label": "error", | ||
"no-floating-decimal": "error", | ||
"no-implicit-coercion": "error", | ||
"no-implicit-globals": "error", | ||
"no-implied-eval": "error", | ||
"no-invalid-this": "error", | ||
"no-iterator": "error", | ||
"no-label-var": "error", | ||
"no-labels": "error", | ||
"no-lone-blocks": "error", | ||
"no-lonely-if": "error", | ||
"no-loop-func": "error", | ||
"no-mixed-operators": "error", | ||
"no-multi-assign": "error", | ||
"no-multi-spaces": "error", | ||
"no-multi-str": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-namespace": "off", | ||
"no-negated-condition": "error", | ||
"no-nested-ternary": "error", | ||
"no-new": "error", | ||
"no-new-func": "error", | ||
"no-new-object": "error", | ||
"no-new-wrappers": "error", | ||
"no-octal-escape": "error", | ||
"no-promise-executor-return": "error", | ||
"no-proto": "error", | ||
"no-restricted-exports": "error", | ||
"no-restricted-globals": "error", | ||
"no-restricted-imports": "error", | ||
"no-restricted-properties": "error", | ||
"no-restricted-syntax": "error", | ||
"no-return-assign": "error", | ||
"no-return-await": "error", | ||
"no-script-url": "error", | ||
"no-self-compare": "error", | ||
"no-sequences": "error", | ||
"no-shadow": "error", | ||
"no-tabs": "error", | ||
"no-template-curly-in-string": "error", | ||
"no-throw-literal": "error", | ||
"no-trailing-spaces": "error", | ||
"no-undef-init": "error", | ||
"no-unmodified-loop-condition": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-unreachable-loop": "error", | ||
"no-unused-expressions": "error", | ||
"no-unused-private-class-members": "error", | ||
"no-useless-call": "error", | ||
"no-useless-computed-key": "error", | ||
"no-useless-concat": "error", | ||
"no-useless-rename": "error", | ||
"no-useless-return": "error", | ||
"no-var": "error", | ||
"no-void": "error", | ||
"no-warning-comments": "error", | ||
"no-whitespace-before-property": "error", | ||
"nonblock-statement-body-position": "error", | ||
"object-curly-newline": "error", | ||
"object-shorthand": "error", | ||
"one-var-declaration-per-line": "error", | ||
"operator-assignment": "error", | ||
"operator-linebreak": "error", | ||
"padding-line-between-statements": "error", | ||
"prefer-const": "error", | ||
"prefer-destructuring": "error", | ||
"prefer-exponentiation-operator": "error", | ||
"prefer-named-capture-group": "error", | ||
"prefer-numeric-literals": "error", | ||
"prefer-object-has-own": "error", | ||
"prefer-object-spread": "error", | ||
"prefer-promise-reject-errors": "error", | ||
"prefer-regex-literals": "error", | ||
"prefer-rest-params": "error", | ||
"prefer-template": "error", | ||
"quotes": "error", | ||
"radix": "error", | ||
"require-atomic-updates": "error", | ||
"require-await": "error", | ||
"require-unicode-regexp": "error", | ||
"rest-spread-spacing": "error", | ||
"semi": "error", | ||
"semi-spacing": "error", | ||
"semi-style": "error", | ||
"sort-imports": "error", | ||
"sort-vars": "error", | ||
"space-before-blocks": "error", | ||
"space-in-parens": "error", | ||
"space-infix-ops": "error", | ||
"space-unary-ops": "error", | ||
"spaced-comment": "error", | ||
"strict": "error", | ||
"switch-colon-spacing": "error", | ||
"symbol-description": "error", | ||
"template-curly-spacing": "error", | ||
"template-tag-spacing": "error", | ||
"unicode-bom": "error", | ||
"vars-on-top": "error", | ||
"wrap-iife": "error", | ||
"wrap-regex": "error", | ||
"yield-star-spacing": "error", | ||
"yoda": "error", | ||
"prefer-spread": "warn", | ||
"object-property-newline": "off", | ||
"no-useless-constructor": "off", | ||
"prefer-arrow-callback": "off", | ||
"object-curly-spacing": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"arrow-body-style": "off", | ||
"no-plusplus": "off", | ||
"no-undefined": "off", | ||
"quote-props": "off", | ||
"sort-keys": "off", | ||
"lines-around-comment": "off", | ||
"no-prototype-builtins": "off", | ||
"multiline-ternary": "off", | ||
"no-ternary": "off", | ||
"no-inner-declarations": "off", | ||
"max-params": "off", | ||
"no-param-reassign": "off", | ||
"no-magic-numbers": "off", | ||
"func-style": "off", | ||
"capitalized-comments": "off", | ||
"no-use-before-define": "off", | ||
"space-before-function-paren": "off", | ||
"init-declarations": "off", | ||
"arrow-parens": "off", | ||
"function-call-argument-newline": "off", | ||
"no-underscore-dangle": "off", | ||
"max-statements": "off", | ||
"padded-blocks": "off", | ||
"one-var": "off", | ||
"no-extra-parens": "off", | ||
"no-inline-comments": "off", | ||
"line-comment-position": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/prefer-namespace-keyword": "off", | ||
"@typescript-eslint/ban-types": [ | ||
"error", | ||
{ | ||
"types": { | ||
"Function": false | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.