Commit graph

34 commits

Author SHA1 Message Date
Michail Yasonik e3535b1b1c
Remove Kibana a11y guide in favor of EUI (#57021)
* Remove Kibana a11y styleguide in favor of EUI and moving auxilary content to CONTRIBUTING.md and STYLEGUIDE.md

Co-Authored-By: Tim Roes <mail@timroes.de>
2020-02-07 10:55:29 -05:00
Tim Roes 70d6220a41
Upgrade to TypeScript 3.7.2 (#47188)
* Update TS to 3.7.0-beta

* Upgrade to TypeScript 3.7.2

* Upgrade cypress to 3.5.0

* Upgrade apollo-link-http

* Update prettier

* Fix expression types

* Fix Lens test typings

* Fix ML breakage

* Fix APM breakage

* Fix sinon stub typing

* Fix beats management types

* Fix WMSOptions types

* Fix ui_filters in APM

* APM: Explicitly type Setup to prevent hitting TS limits

* Change file name to correct case

* Add styleguide rule for optional chaining

* Update typescript-eslint packages

* Revert changes in ui filters routes that are no longer needed
2019-11-15 10:33:29 +01:00
Tim Roes 27a53d166f
Add TypeScript rules to STYLEGUIDE [skip ci] (#47125)
* Add TypeScript rules to STYLEGUIDE

* Update STYLEGUIDE.md

Co-Authored-By: Court Ewing <court@epixa.com>
2019-10-03 10:15:31 +02:00
Tim Roes fc05a8358c
Style guide cleanup (#46574)
* Enable one-var rule

* Prevent built-in extension

* Group more rules into modern language features

* Fix typing error use eslint disable instead

* Improve wording slightly
2019-09-27 10:07:24 +02:00
Tim Roes bddff4c901
Remove more controversial rules (#46579) 2019-09-26 13:46:18 +02:00
Tim Roes bea6c6721c
Style guide cleanup (#46464)
* Remove angular styleguide

* Remove SASS reference only file

It's still linked in the STYLEGUIDE.md document

* Cleanup HTML styleguide

* More cleanup

* Cleanup API style guide

* Remove architecture style guide

* Merge into STYLEGUIDE.md

* add attribution back on

* Change doclink to style guide

* Change wording and remove more rules

* Update STYLEGUIDE.md

Fix typos

Co-Authored-By: Stacey Gammon <gammon@elastic.co>
2019-09-25 11:19:16 +02:00
Caroline Horn 03c2c6e8f4
Point to EUI for SASS/CSS guidelines (#27415) 2018-12-18 14:39:38 -05:00
Stacey Gammon 688795f166
Add a typescript readme (#23841)
* Add a typescript readme

* some clean up

* Correct capitalization of typescript and javascript

* Incorporate review suggestions
2018-10-17 08:10:48 -04:00
Wadim Kruse 03ef7d1d9a Fix typo in accessibility styleguide link (#14718) 2017-11-02 12:28:22 +01:00
Tim Roes 99f1c65c4b Initial version of accessibility guide (#13390)
* Initial version of a11y guide

* Move a11y content from HTML guide to a11y guide

* Add PR feedback

* Add PRs feedback

* Add more roles

* Refactor labeling elements section

* Rename "labeling elements" -> "naming elements"

* Use span instead of i for icon examples

* Correct typo
2017-08-14 07:42:06 +02:00
CJ Cenizal 720297d8da [UI Framework] Reorganize UI Framework and add Yeoman generator (#13172)
* Reorganize documentation styles so they all live in doc_site/components directory. (#12809)
  - Remove global styles, e.g. body and html element selectors.
* Create global_styles dir with sub-directories. (#12833)
* Add SCSS style guide. (#12850)
* Refactor UI Framework directory structure to house everything in a src directory. (#12880)
  - Add components/index.js and services/index.js files to continue to export JS modules from the root.
* Add KUI Yeoman generator.
* Support creation of components.
* Add documentation generator for main page, demo, and sandbox.
  - Add additional documentation snippets to KUI generator. (#13076)
  - Fix incorrect use of double quotes in KUI generator snippet. (#13086)
  - Remove infrequently used imports from the KUI generator test template. (#13110)
* Mock assets files for Jest. (#13060)
* Fix broken coverage report paths in Jest config. (#13082)
* Update eslint config to lint the new UI Framework directory structure. (#13102)
* Fix positioning of doc site pagination buttons. (#13203)
* Support hasReact prop for sandboxes. (#13270)
* Remove deprecated used of component mixin from KUI generator's SCSS template. (#13377)
* Fix rebasing errors.
  - Add dashboard back to Jest config.
  - Add missing form and tool_bar variables.
* Rename tasks to createComponent and documentComponent.
* Reference correct src paths in README.
* Add children and className to templates' propTypes.
* Add default folder name for page demo.
* Add suffix to sandbox routes.
* Specify testPathIgnorePatterns more clearly.
* Rename component.test.js to test.js so that Jenkins won't try to run it.
* Update npm scripts to depend on local yo dependency, not global.
* Add ui_framework/src to copy task.
* Simplify npm scripts and remove requirement for installing Yeoman from README.
* Add services to moduleNameMapper in jest config.
* Clean up Button and Gallery examples.
2017-08-11 08:48:48 -07:00
Shaunak Kashyap 083b11eccc Moving React styleguide next to other style guides (#12361)
* Moving React styleguide next to other style guides

* Adding React style guide to style guides index file
2017-06-15 07:42:35 -07:00
Jonathan Budzenski 80ba3a52b0 Fix architecture style guide link 2017-04-19 08:19:26 -05:00
Joe Fleming c8c03e5fec add architecture styleguide (#10094)
* add architecture styleguide

* be clearer about application architecture

* define as plugin architecture

and downplay the webpack alias and shims that are available

* fix typo, simplify server description
2017-02-06 15:34:39 -07:00
Court Ewing 7dae7bde27 Current styleguide conventions with modern JS (#7435)
The existing styleguide was in great need of a rewrite as it did not
reflect the conventions we're using in the codebase or even the best
practices that we follow. In some cases, the guidance it provided was
outright contrary to our current practices.
2016-11-01 21:22:59 -04:00
CJ Cenizal 2ccff35b95 Make links in STYLEGUIDE relative. 2016-06-09 19:03:19 -07:00
CJ Cenizal 9d8776b199 Add style_guides dir, extracted sections from STYLEGUIDE.md.
- css_style_guidee.md
- js_style_guide.md
- html_style_guide.md
- api_style_guide.md
2016-06-09 08:13:35 -07:00
Emily Wenberg 20b3a864e9 Fix typos in style guide 2016-02-20 14:30:37 -08:00
spalger 9f2e32e5e1 [ui/modules/docs] moved recommendations to the styleguide 2015-12-18 11:20:20 -07:00
spalger 330061df3a [styleguide] added api and filename sections 2015-11-23 13:16:26 -06:00
spalger ad3208a42a added promise example to the "Chaining operations" section of the styleguide 2015-10-29 13:36:23 -05:00
Jim Unger 42bf6dab8e Update STYLEGUIDE.md 2015-08-31 14:31:55 -05:00
spalger f9f4b0e2c6 Merge branch 'master' of github.com:elastic/kibana into apps/home 2015-07-27 10:57:01 -07:00
Jim Unger 5bd342ab1b Update STYLEGUIDE.md 2015-07-27 09:23:23 -05:00
spalger a2281749a3 commit to the ui/ module prefix 2015-07-21 17:46:13 -07:00
Spencer Alger 6331a24a70 [lodash-mixins] switch _(Class).inherits(Super) to new _.class mixin 2015-06-11 18:26:43 -07:00
Eike Herzbach 5cb6eddee8 typo: Javascript -> JavaScript 2014-10-23 08:43:53 +02:00
Joe Fleming a9b01376e2 add note about commenting out code 2014-09-17 12:53:06 -07:00
Joe Fleming 3cc4a4d500 added rules about chained operations and indentation 2014-09-17 12:33:59 -07:00
Joe Fleming eee468d2e1 added section for module names/paths 2014-09-17 10:51:13 -07:00
Joe Fleming c41359bb23 remove angular and ruby sections for now 2014-09-17 10:51:13 -07:00
Joe Fleming b2b1c140d6 add notes about magic numbers, globals and function definitions 2014-09-17 10:51:13 -07:00
Joe Fleming 8fa76196f5 started the angular section and added some other style considerations to the JS section 2014-09-17 10:51:13 -07:00
Joe Fleming 6230456e6d added style guide, based on node style guide 2014-09-17 10:51:13 -07:00