-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Lint typescript, json, new eslint rules (#4449)
* temp 07/01/19 [skip ci] main lint files * use lint-staged scripts * fix all auto-fixable eslint errors * manually fix lint issues in files * temp 07/01/19 [skip ci] * bump eslint plugin versions, update circle.yml * [lint fix] remaining js files * update vscode/settings.json * add back stop-only * use stop-only for linting .onlys * fix verify_spec, build_spec * update json plugin * relint & apply corrections * fix appveyor.yml not cleansing env vars (very bad) * dont echo commit message in appveyor script * retry build & * re-add & upgrade lint-staged * update contributing docs * only let stop-only catch staged changes
- Loading branch information
1 parent
f6f41c6
commit fbd5236
Showing
166 changed files
with
1,249 additions
and
868 deletions.
There are no files selected for viewing
This file contains 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,6 +1,28 @@ | ||
__snapshots__ | ||
# unignore hidden files | ||
!.* | ||
|
||
**/__snapshots__ | ||
**/build | ||
**/cypress/fixtures | ||
**/dist | ||
**/dist-test | ||
**/node_modules | ||
**/support/fixtures | ||
**/test/fixtures | ||
**/vendor | ||
|
||
# cli/types is linted by tslint/dtslint | ||
cli/types | ||
# packages/example is not linted (think about changing this) | ||
packages/example | ||
|
||
packages/extension/test/helpers/background.js | ||
packages/server/lib/scaffold/plugins/index.js | ||
packages/server/lib/scaffold/support/index.js | ||
packages/server/lib/scaffold/support/commands.js | ||
packages/server/test/fixtures | ||
packages/example/cypress | ||
|
||
packages/launcher/lib/**/*.js | ||
|
||
**/package-lock.json | ||
**/tsconfig.json | ||
**/.vscode |
This file contains 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,72 +1,9 @@ | ||
{ | ||
"plugins": [ | ||
"@cypress/dev" | ||
], | ||
"extends": [ | ||
"plugin:cypress-dev/general" | ||
"plugin:@cypress/dev/general" | ||
], | ||
"rules": { | ||
"no-multiple-empty-lines": ["error", { "max": 1 } ], | ||
"no-else-return": [ "error", { "allowElseIf": false } ], | ||
"brace-style": ["error", "1tbs", { "allowSingleLine": false }], | ||
"no-unneeded-ternary": ["error"], | ||
"array-bracket-newline": ["error", "consistent"], | ||
"arrow-body-style": ["error", "always"], | ||
"padding-line-between-statements": [ | ||
"error", | ||
{ | ||
"blankLine": "always", | ||
"prev": "*", | ||
"next": "return" | ||
}, | ||
{ | ||
"blankLine": "always", | ||
"prev": [ | ||
"const", | ||
"let", | ||
"var", | ||
"if", | ||
"while", | ||
"export", | ||
"cjs-export", | ||
"import", | ||
"cjs-import" | ||
], | ||
"next": "*" | ||
}, | ||
{ | ||
"blankLine": "any", | ||
"prev": [ | ||
"const", | ||
"let", | ||
"var", | ||
"import", | ||
"cjs-import" | ||
], | ||
"next": [ | ||
"const", | ||
"let", | ||
"var", | ||
"import", | ||
"cjs-import" | ||
] | ||
} | ||
] | ||
}, | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"legacyDecorators": true | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"**/*.jsx" | ||
], | ||
"rules": { | ||
"arrow-body-style": "off" | ||
} | ||
} | ||
] | ||
"rules": {} | ||
} |
This file contains 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 |
---|---|---|
|
@@ -13,7 +13,6 @@ _test-output | |
cypress.zip | ||
tmp/ | ||
.nyc_output | ||
.vscode/settings.json | ||
|
||
# from extension | ||
Cached Theme.pak | ||
|
This file contains 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,28 @@ | ||
{ | ||
"eslint.validate": [ | ||
{ | ||
"language": "javascript", | ||
"autoFix": true | ||
}, | ||
{ | ||
"language": "javascriptreact", | ||
"autoFix": true | ||
}, | ||
{ | ||
"language": "typescript", | ||
"autoFix": true | ||
}, | ||
{ | ||
"language": "typescriptreact", | ||
"autoFix": true | ||
}, | ||
{ | ||
"language": "json", | ||
"autoFix": true | ||
}, | ||
{ | ||
"language": "coffeescript", | ||
"autoFix": false | ||
}, | ||
], | ||
} |
This file contains 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 @@ | ||
--ignore-engines true |
This file contains 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 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 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 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 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 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 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 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 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 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.
fbd5236
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppVeyor has built the
win32 ia32
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.fbd5236
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppVeyor has built the
win32 x64
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.