GithubHelp home page GithubHelp logo

eslint / archive-website Goto Github PK

View Code? Open in Web Editor NEW
95.0 18.0 245.0 32.13 MB

The ESLint website

Home Page: https://eslint.org

License: MIT License

JavaScript 54.91% Liquid 25.54% Less 19.55%
javascript eslint website

archive-website's Introduction

Build Status Netlify Status

ESLint Web Site

This contains the code running on eslint.org.

Pull Requests

Please note that all HTML documentation is split between this repository and the main ESLint repository. Documentation for rules and APIs is located in the core repository, the rest is located in this repository. You can easily determine if original documentation file is native to website repository by checking for <!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. --> comment just below the header of the markdown file. If that header is present, this file is located in the core ESLint repository and any pull requests should be sent there. Otherwise, file is native to this site repository and can be fixed by creating a pull request in this repository.

How to add your company/project logo to the site

  • Create a fork of this repository.
  • Clone it locally.
  • Create a new branch.
  • Add your logo image to /assets/img/logos/ directory. Logo should be at least 150px of height. Name your logo with your company/project name.
  • Update /_data/logos.yml file and add an entry for your company with the name, url and src (should point to the logo you just added).
  • Commit your changes to your fork and create a pull request into the main repository.

Developer Setup

This website is built with Eleventy and is hosted on Netlify.

Local development

To set up a local development environment, install Node.js (be sure to follow the instructions for your platform) and follow the steps below:

# Clone the repository
git clone [email protected]:eslint/website.git eslint-website

# Navigate to the root directory
cd eslint-website

# Install dependencies
npm install

Once you have set up your environment, you can run a copy of the website locally using this command:

npm start

This will watch for changes to the source code and rebuild the website, which will be hosted at http://localhost:8080/.

License

MIT License

archive-website's People

Contributors

akasharojee avatar aladdin-add avatar amareshsm avatar bryanbraun avatar btmills avatar chenxsan avatar cvrebert avatar dependabot[bot] avatar g-plane avatar gyandeeps avatar hirse avatar hzoo avatar ianvs avatar ilyavolodin avatar kaicataldo avatar kvz avatar mdjermanovic avatar mockee avatar mysticatea avatar not-an-aardvark avatar nzakas avatar pedrottimark avatar peterdavehello avatar pixelastic avatar platinumazure avatar snitin315 avatar sotayamashita avatar stephenwade avatar thomasgilmore avatar vitorbal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archive-website's Issues

Add rule configuration option to the demo

ESLint has a ton of different rules, I think it would be good to add ability for users to play with different rules on the demo page. For that, we need to expose a way to configure them. It would be even cooler, if we would allow to use plugins, but I don't think that's possible with the current setup.

No clear install instructions

I was told by a coworker that we were moving to eslint, so I came to the website and scoured it looking for the big "install now!" button or some call-to-action... looked through the "configuring eslint" page, then tried the "about" page, then clicked the "latest news link" but the install instructions looked strange as it said it was a "pre-release" version... because I'd clicked on everything else I thought I'd give "Command Line Interface" a go, and for some reason that's where the install instructions were.

Not a big deal, but I just thought I'd let you know my experience.

Long lines of code in <pre> blocks wrap to next line

On smaller screens, or for longer lines of code, the current behavior is to wrap to the next line. This reduces readability, and will become more of an issue when eslint/eslint@0873e01 hits the site, as there are some long error comments. For example:

array-bracket-spacing_wrap

I propose instead to allow scrollbars like:

array-bracket-spacing_scroll

Note: @ilyavolodin has also suggested to only display the number of expected issues if there are more than one, but that can be discussed in a separate issue. Regardless, small screens and long error messages will continue to cause problems unless this issue is addressed.

Publish documentation translations

We have the opportunity to have Chinese translations for our documentation. Some things we need to figure out:

  1. How would we store this documentation in the repo? (Is it a separate repo?)
  2. How will people get to it? (cn.ESLint.org? eslint.org/cn?)
  3. How can we do this in a way that doesn't negatively affect SEO?

Demo: Add Ability to Configure Rules

Currently there is no way to configure rules in the demo.

I'd like to add the ability to read .eslintrc files directly and for them to update the rule-set as well as the ability to configure rules.

There are several possible UI treatments, I'd love feedback on the best way before I move forward.

My current thought is to just have a file-upload box that will update the configuration.

And instead of a checkbox everything will become an input box. This is buggy, but easier than the alternative which is schema checking.

ESLint Demo Page

Add embeddable text editor. Orion is first choice. Go with Codemirror for the first version if Orion will take too much time and research.

Local Storage cache is not auto-clearing

Since the demo stores all of the rules into local storage, and doesn't have any mechanize for clearing it, new releases do not add new rules to demo for people who viewed the site earlier. We should somehow clear the local storage after every release.

Hard to separate working blocks from failing ones

I know the docs are autogenerated. But maybe there's a way to do that:

Currently, every block is formatted the same way. It would be much clearer to use some sort of color coding to separate the "good" examples from the ones that fail tests. A good example for color coding is found on bootstrap.

Would be looking like that:
rules

Mobile cleanup

  • Tweak jumbotron background position
  • Correct jumbotron heading letterspacing
  • Remove jank in menu transition
  • Improve type contrast for lead-in text

Move and restructure documentation

As mentioned in #31 we should move some of the documentation out of ESLint repository and into this one. I suggest we not only move it, we also restructure some of it. I propose removing "Docs" link on the website all together and then:

  • Moving "Architecture" under "Developer Guide".
  • Renaming "Configuring" to "Configuration" and making it a top level menu, and then moving "Command Line" under it.
  • Moving "Integrations" somewhere... Not sure where, maybe under "Configuration" or "About"?

After the move, the only folders that should be left in ESLint repository are: "Rules", "Developer Guide" and "Configuring". Everything else should be under this repository. Ideally, I would also move out everything from under "Developer Guide" here, except for "Working with Rules" and "Working with Plugins", but I think that could be done a bit later, as a separate pull request.

How does that sounds?

Fix Contributing section of the site

Since documentation has been moved around, contributing section is now incorrect (it still says all documentation is in eslint repo). That should be fixed.

Create a section of the site with links to tutorials

There's already a few tutorials/articles out there on how to setup ESLint. It would be nice to have a section of the site with those links. Some of them explain how to configure ESLint much better then our documentation does. Although, maybe the goal should be to have our documentation be better then those articles?:-)

Code Conventions document should be linked in Contributing doc

(Migrated from eslint/eslint)

I spent a while digging around for the Code Conventions doc because I couldn't remember where info on @author and @copyright could be found, and unfortunately it's not part of the "Developer guide" menu of the site. Any chance that could be fixed?

(N.B. This is a documentation issue, not a code issue, so not supplying any version or test case information.)


Actually, now I'm seeing that even many of the articles in "Contributing" (e.g., "Working on Issues", "Submitting a Pull Request") are themselves not linked in the top menu. In that case, I think it makes more sense for "Code Conventions" to be linked in the "Contributing" page, but not in the top-level menu or in the "Developer Guide" page.

For me, the bigger problem was having to search in "Contributing" --> "Submitting a Pull Request" --> "Step 6: Double check your submission", where it is finally linked at the bottom. The coding conventions are important! I'm just asking that they go a little higher in the hierarchy, like in "Contributing". ๐Ÿ˜„

Demo: Demo does not work in Firefox

I get two errors in Firefox 42.0 (using Firebug console). Unfortunately, I'm not sure which of these are relevant. Sorry.

ReferenceError: algoliasearch is not defined
var client = algoliasearch('XWXG7MEBSB', '653e00f423bee91f9863571eed16f2f5');

search.js (line 5, col 7)

And:

TypeError: b is undefined
...}),k=d||new h({input:f,eventBus:j,hint:void 0===b.hint?!0:!!b.hint,minLength:b.m...

The second one seems to be from autocomplete.min.js, but not 100% sure.

The odd thing is, I actually get similar errors in Chrome, so... if my diagnostics are useless, I apologize.

Demo: an ability to specify code with URL.

I want to use demo to report issues.
I'm happy if I can specify code with URL.

Such as:

http://eslint.org/demo/#code=var%20foo%20%3D%20%22Hello%20World!%22
var foo = "Hello World!";

Layouts

Work on column width, positioning, type hierarchy, and sidebar content where needed.

  • Main landing page
  • Docs pages
  • Blog index
  • Blog post

Repository lacks .gitignore

Since there are devDependencies, it's worth adding a .gitignore file to ensure node_modules don't accidentally get committed.

SEO issues

This is a list of issues with the site that can improve SEO.

  • Fix page titles. Rule documentation should list rule name, all the pages should include major keywords in the title "JavaScript" and "Linting". Titles should be changed to "ESLint - Pluggable JavaScript linter" or something like that.
  • Page descriptions should be modified to expand on the title. Should also include all major keywords
  • meta keywords should be added.
  • WMT account for both Google and Bing should be registered to add XML sitemap
  • Minor bugs like missing alt tags for images and W3C validation errors should be fixed.
  • Content on the homepage should be expanded.

It's hard to find out if a given rule is on/off by default

The top of the rules page says:

Though none are enabled by default, some are specifically recommended by ESLint and may be turned on using configuration.

But I can't find any further explanation of which configuration setting will turn on which rules.

On a specific docs page, e.g. no-const-assign, there is no mention of if/when the rule is enabled by default. Does this mean the rule is never on-by-default, even with the es6 env enabled?

It would be helpful if every rule page explicitly stated what its default setting is (0, 1 or 2), and which config conditions can change this default, if any.

Demo: Export settings function

Hi,

Recently I had to setup a new dev machine, including re-installing things like eslint.

Couldn't remember how to start using it so I went to the demo page and found myself searching for some "export these settings" functionality.

I don't know how people use the demo page but if trivial to make that functionality might be a cool addition.

Just my 2 cents, feel free to close this "issue" at will! ๐Ÿ˜ƒ

Favicons

Generate favicons for various platforms. Update template to point to correctly-sixed favicon sources.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.