Commit Graph

3287 Commits (master)

Author SHA1 Message Date
Vitaliy Filippov 1916966910 Фикс против пидоров, которые не хотят поддерживать скобки с новой строки 2019-11-05 19:25:36 +03:00
Sosuke Suzuki 82257bc091 Fix to follow #6811 (#6812) 2019-11-05 16:18:50 +02:00
dependabot-preview[bot] dccb13ee11 Bump eslint-plugin-react from 7.14.3 to 7.16.0 (#6807)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.14.3 to 7.16.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.14.3...v7.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 16:18:12 +02:00
dependabot-preview[bot] 069803d0c6 Bump webpack-cli from 3.3.9 to 3.3.10 in /website (#6802)
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.9 to 3.3.10.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/v3.3.10/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.9...v3.3.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 16:17:33 +02:00
dependabot-preview[bot] 816bcf7626 Bump @angular/compiler from 8.2.7 to 8.2.13 (#6803)
Bumps [@angular/compiler](https://github.com/angular/angular) from 8.2.7 to 8.2.13.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/compare/8.2.7...8.2.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 16:17:10 +02:00
Shinigami f059d7a31b JSDoc type added in `src/common/util.js` (#6788)
* JSDoc type added in `src/common/util.js`

* skip can return false

* Add TBD for false - 1 not allowed

* Define typedef SkipOptions

* Use method generic for node param

* Define node param for setLocStart and setLocEnd

* Copy idx param to local variable

* Add @returns false

* Update Utility functions docs

* hasNewline param index: allow only number

* Add condition

* Add function keyword to docs

* Add prettier-ignore

* Improve condition

* Remove TBD comment

* Use single quotes

* Add type to oldIndex

* Use singleline JSDocs
2019-11-05 13:28:44 +02:00
Christian Oliff 65563e0a55 HTTPS external links (#6811)
safer and saves a HTTP requests :-)
2019-11-05 14:25:28 +03:00
Georgii Dolzhykov 6ba4be015b fix: numeric separators were removed from BigInt literals (#6796) 2019-11-04 18:21:29 +01:00
Georgii Dolzhykov 12ba997207 disable optimization from #6229 for calls with type arguments (#6791) 2019-11-03 13:05:08 +01:00
Simon Lydell 677b46df71
Update angular-html-parser (#6785)
Fixes #6749. Closes #6784.
2019-11-02 15:58:28 +01:00
Zaven Muradyan 3d52ab7016 Gracefully handle nonexistent paths passed to --stdin-filepath. (#6687)
Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2019-11-02 15:56:26 +01:00
Anders Kaseorg 0acc3120ef cli: Handle errors when reading stdin (#6708)
Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2019-11-02 13:53:13 +01:00
Georgii Dolzhykov 1490536054 merge similar entries in CHANGELOG.unreleased.md (#6782) 2019-11-02 10:40:41 +01:00
Dang Mai f6bd59dfd3 Allow plugin to specify option with type `string` (#6219) 2019-11-02 09:52:49 +01:00
fisker Cheung 545a712dc0 Revert #6333 (#6721) 2019-11-02 09:47:16 +01:00
fisker Cheung 491038d693 Run CI on node 12 (#6738) 2019-11-02 09:45:56 +01:00
Chris Brody e50ad942b7 Start JSDoc type linting (#6770)
Co-Authored-By: Christopher J. Brody <chris@brody.consulting>
Co-Authored-By: Christopher Quadflieg <christopher.quadflieg@adsoul.com>
Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2019-11-02 09:44:27 +01:00
Sosuke Suzuki cf32f29d41 Flow: Keep parentheses wrap specific FunctionTypeAnnotation (#6717)
Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2019-11-02 09:39:18 +01:00
Mary a28e5c94c4 prettier-emacs is actually prettier-js-mode (#6653) 2019-11-02 09:17:13 +01:00
fisker Cheung 159566798d Move `multiple-patterns` tests to `patterns` (#6777) 2019-11-01 18:02:34 +01:00
Georgii Dolzhykov ea6ae31ba0
test: fix a FIXME, add typescript (#6744)
* test: fix a FIXME, add typescript

* tests/es6modules

* tests/no-semi

* tests/array_spread
2019-11-01 18:43:03 +02:00
fisker Cheung e66e34a435 Update `string-width` to v4 (#6544) 2019-11-01 15:43:12 +02:00
fisker Cheung 90cb3c268d Fix spellcheck script (#6774) 2019-11-01 07:49:35 +01:00
dependabot-preview[bot] d47c77e9e9 Bump rollup from 1.21.4 to 1.26.0 (#6752)
Bumps [rollup](https://github.com/rollup/rollup) from 1.21.4 to 1.26.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v1.21.4...v1.26.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 15:01:59 +02:00
dependabot-preview[bot] 318568e22a Bump execa from 1.0.0 to 3.2.0 (#6758)
Bumps [execa](https://github.com/sindresorhus/execa) from 1.0.0 to 3.2.0.
- [Release notes](https://github.com/sindresorhus/execa/releases)
- [Commits](https://github.com/sindresorhus/execa/compare/v1.0.0...v3.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 14:19:15 +02:00
dependabot-preview[bot] 246972c086 Bump @babel/parser from 7.6.3 to 7.6.4 (#6757)
Bumps [@babel/parser](https://github.com/babel/babel) from 7.6.3 to 7.6.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.6.3...v7.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 14:18:11 +02:00
fisker Cheung d789126c69 Switch `rollup-plugin-alias` to `@rollup/plugin-alias` (#6764)
* Switch `rollup-plugin-alias` to `@rollup/plugin-alias

* fix build script
2019-10-31 14:16:58 +02:00
dependabot-preview[bot] fdfec22510 Bump svgo from 1.3.0 to 1.3.2 in /website (#6761)
Bumps [svgo](https://github.com/svg/svgo) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/svg/svgo/releases)
- [Changelog](https://github.com/svg/svgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svg/svgo/compare/v1.3.0...v1.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 11:06:04 +02:00
dependabot-preview[bot] bc8f658e40 Bump webpack from 4.41.0 to 4.41.2 (#6759)
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.0 to 4.41.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.0...v4.41.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-31 11:05:32 +02:00
fisker Cheung 0f4fb469c4 Update `unified` to v8 (#6545) 2019-10-30 15:17:43 +02:00
fisker Cheung 417b92c636 Switch `rollup-plugin-replace` to `@rollup/plugin-replace` (#6750) 2019-10-30 15:07:01 +02:00
fisker Cheung b70c2a747e Pin `cspell` version (#6751) 2019-10-30 15:06:49 +02:00
fisker Cheung c1332e3009 Update `jest-junit` to v9 (#6740) 2019-10-30 14:37:06 +02:00
fisker Cheung 56e3434a43 Update `cross-env` to v6 (#6734) 2019-10-30 14:36:29 +02:00
fisker Cheung d3a6495369 Update `get-stream` to v5 (#6731) 2019-10-30 14:35:46 +02:00
fisker Cheung b5a201b0ae Prevent webpack generate `.LICENSE` file when minify (#6737)
* check build result

* list dist file

* Update build script

* restore ci script [skip ci]
2019-10-30 14:33:52 +02:00
fisker Cheung f0ddd0e5b6 Update `mem` to v5 (#6732) 2019-10-30 14:26:41 +02:00
fisker Cheung 56a2cd8a1b Refactor createLanguage to use function transform (#6676) 2019-10-29 20:49:44 +02:00
fisker Cheung 4a336f8393 Update `html-element-attributes` to v2.2.0 (#6739) 2019-10-29 17:00:45 +02:00
fisker Cheung 16e0e593f0 Update `jest-watch-typeahead` to v0.4.0 (#6741) 2019-10-29 16:12:50 +03:00
fisker Cheung 5522f0d78f Update `@typescript-eslint/typescript-estree` to v2.6.0 (#6736) 2019-10-29 12:36:49 +02:00
Sosuke Suzuki f2c6b94ee7 TypeScript: Keep semi for a class property before index signatu… (#6728)
* Modify to add semi to prop before TSIndexSignature

Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
2019-10-29 07:17:29 +01:00
dependabot-preview[bot] b4f28a5b65 Bump react-dom from 16.10.2 to 16.11.0 in /website (#6724)
Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.10.2 to 16.11.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.11.0/packages/react-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-10-28 18:27:40 +01:00
dependabot-preview[bot] 27ef80d56a Bump react from 16.10.2 to 16.11.0 in /website (#6723)
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.10.2 to 16.11.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.11.0/packages/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-10-28 17:54:36 +01:00
dependabot-preview[bot] 2c135433ae Bump eslint-config-prettier from 6.4.0 to 6.5.0 (#6722)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.4.0 to 6.5.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.4.0...v6.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
2019-10-28 17:54:24 +01:00
Zhongliang Wang 2cfd8fb518 Support TypeScript 3.7 (and drop Node 6 support for direct inst… (#6657)
* WIP: Support TypeScript 3.7

* Add support for `asserts` keyword; Update snapshots

* Update typescript-estree to v2.5.0 to remove the dependency on chokidar

* Update TypeScript

* Update CHANGELOG.unreleased.md

* Add examples for TypeScript 3.7

* Update TypeScript 3.7 to latest dev version

* Correct wording

* Support `declare` keyword on class members (TypeScript 3.7 feature)

* Update Changelog and downgrade TypeScript from 3.8.0-dev to 3.7.1-rc

* Add a note regarding to dropping Node 6 support for direct installation

* tweak build config to repair build

* update CHANGELOG.unreleased.md

* TSTypePredicate microrefactoring

* fix formatting

* clean up tests

* fix parens for optional chaining inside computed properties

* update CHANGELOG.unreleased.md

* unify output across parsers for template literals

* enable more tests with optional chaining

* fix unneeded parens inside computed key of OptionalMemberExpression

* fix paren issues for OptionalCallExpression

* more fixes for OptionalCallExpression

* @typescript-eslint/typescript-estree 2.5.1-alpha.4

* fix lint

* revert build hacks

* fix one more parens issue

* @typescript-eslint/typescript-estree 2.5.1-alpha.5, remove loggerFn override

* drop node 6 for direct installing from github

* fix another parens issue, disable some tests for flow

* workaround for flow bug

* fix issues with comments


Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2019-10-28 17:53:57 +01:00
Zaven Muradyan 4e46f92b86 Add formatting for i18n attributes. (#6695)
* Add formatting for i18n attributes.

Previously, Prettier would largely ignore i18n attributes, not even
wrapping their content, which wasn't ideal since i18n descriptive text
can sometimes get long.

After this, Prettier will auto-wrap the contents of i18n attributes once
they exceed the line length.

Fixes #5875.
2019-10-25 22:10:43 +03:00
Chris Brody 7eb4431350 JSDoc type fixes in `src/main/core-options.js` (#6702)
with unused `oppositeDescription` parameter removed

and reordering of some other members

to resolve checkJs issues in `src/main/core-options.js`,

as verified by the following command:

    npx tsc --allowJs --checkJs --noEmit --target es5 src/main/core-options.js
2019-10-25 19:25:15 +03:00
Sosuke Suzuki f207e665bc JavaScript: Break arrays of arrays/objects if each element has more than one element/property (#6694)
* Modify to define isJestEachFunctionCall

* Modify to break ArrayExpression when parent is jest each function

* Add tests

* Update CHANGELOG.unreleased.md

* Fix comment

* Add pr number

* Update CHANGELOG.unreleased.md

* Remove hasNewLineInRange

* Modify to change logic for breaking jest each call function

* Modify to add logic for breaking ArrayExpression

* Modify to avoid mixed nested array

* Modify to remove changes for jest

* Update CHANGELOG.unreleased.md

* Update CHANGELOG.unreleased.md
2019-10-25 19:12:07 +03:00
Georgii Dolzhykov 69b481758c
set up cspell (#6684)
* set up cspell

* fix actual misspellings

* add cspell.json to .prettierignore

* rebase and fix issues in CHANGELOG.unreleased.md
2019-10-25 00:07:17 +03:00