-
Notifications
You must be signed in to change notification settings - Fork 101
Reduced size of end-to-end test tslint.json rulesets #217
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
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
da1107e
Reduced size of end-to-end test tslint.json rulesets
93dbe68
Wait I wanted to enable no-floating-promises
de61fce
Added 'rule notices' and 'unknown rule' tests
764498d
Removed unnecessary new test options
1155cd6
Whoops, needed to update eslint config names too
37d45b2
Merge branch 'master'
1e97c3f
Normalized file paths and content per .eslintrc.js update
a9567c8
Removed old expected.json files
92ed2ec
Re-accepted end-to-end tests
e4f4108
Merge branch 'master' into smaller-end-to-end-tslints
3c123ce
Again updated eslint path names
87c1229
Updated expected baslines, again...
5cecc23
It's 'warn', not 'warning'
80ed44f
For real it's 'warn'
4e38985
Also used --config in custom eslint path test
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
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
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
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,22 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [], | ||
"rules": { | ||
"@typescript-eslint/array-type": "error", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"previously-existing-rule": "warn", | ||
}, | ||
"globals": {}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [], | ||
"rules": { | ||
"@typescript-eslint/array-type": "error", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"previously-existing-rule": "warn", | ||
}, | ||
"globals": {}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
] | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
✨ 19 rules replaced with their ESLint equivalents. ✨ | ||
️👀 2 rules do not yet have ESLint equivalents; defaulting to eslint-plugin-tslint. 👀 | ||
⚡ 1 package is required for new ESLint rules. ⚡ | ||
unicorn | ||
✨ 2 rules replaced with their ESLint equivalents. ✨ | ||
✅ All is well! ✅ |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { createTests } from "../../createTests"; | ||
|
||
const eslint = "./eslintrc.js"; | ||
const eslint = "./.eslintrc.custom.js"; | ||
|
||
createTests(__dirname, { | ||
eslint, | ||
extraArgs: ["--eslint", eslint], | ||
extraArgs: ["--config", eslint, "--eslint", eslint], | ||
}); |
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 |
---|---|---|
@@ -1,2 +0,0 @@ | ||
no-implicit-dependencies does not yet have an ESLint equivalent. | ||
strict-boolean-expressions does not yet have an ESLint equivalent. | ||
JoshuaKGoldberg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 |
---|---|---|
@@ -1,35 +1,7 @@ | ||
{ | ||
"rules": { | ||
"array-type": [true, "array"], | ||
"arrow-return-shorthand": false, | ||
"completed-docs": false, | ||
"comment-format": false, | ||
"file-name-casing": false, | ||
"linebreak-style": false, | ||
"interface-name": [true, "never-prefix"], | ||
"member-ordering": false, | ||
"newline-before-return": false, | ||
"no-any": false, | ||
"no-bitwise": false, | ||
"no-empty": false, | ||
"no-magic-numbers": false, | ||
"no-import-side-effect": false, | ||
"no-implicit-dependencies": [true, "dev"], | ||
"no-null-keyword": false, | ||
"no-parameter-reassignment": false, | ||
"no-parameter-properties": false, | ||
"no-submodule-imports": false, | ||
"no-unbound-method": false, | ||
"no-unused-variable": false, | ||
"no-use-before-declare": false, | ||
"prefer-conditional-expression": false, | ||
"prefer-method-signature": false, | ||
"prefer-switch": false, | ||
"prefer-template": false, | ||
"promise-function-async": false, | ||
"strict-boolean-expressions": [true, "allow-boolean-or-undefined", "allow-number"], | ||
"switch-default": false, | ||
"switch-final-break": false, | ||
"no-floating-promises": true, | ||
"typedef": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [], | ||
"rules": { | ||
"@typescript-eslint/array-type": "error", | ||
"@typescript-eslint/no-floating-promises": "error" | ||
}, | ||
"globals": {}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
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.