Skip to content

Commit

Permalink
Breaking: Update configurations to use defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
molant committed Dec 2, 2019
1 parent 0b46a4f commit 9266b18
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 220 deletions.
32 changes: 16 additions & 16 deletions packages/configuration-accessibility/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"html",
"summary"
],
"hints": {
"axe/aria": "error",
"axe/color": "error",
"axe/forms": "error",
"axe/keyboard": "error",
"axe/language": "error",
"axe/name-role-value": "error",
"axe/other": "error",
"axe/parsing": "error",
"axe/semantics": "error",
"axe/sensory-and-visual-cues": "error",
"axe/structure": "error",
"axe/tables": "error",
"axe/text-alternatives": "error",
"axe/time-and-media": "error"
},
"hints": [
"axe/aria",
"axe/color",
"axe/forms",
"axe/keyboard",
"axe/language",
"axe/name-role-value",
"axe/other",
"axe/parsing",
"axe/semantics",
"axe/sensory-and-visual-cues",
"axe/structure",
"axe/tables",
"axe/text-alternatives",
"axe/time-and-media"
],
"hintsTimeout": 120000,
"parsers": []
}
70 changes: 4 additions & 66 deletions packages/configuration-all/README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,7 @@
# webhint's all configuration (`@hint/configuration-all`)

This is a `webhint` configuration package to use for enabling
all hints.
**You should not use this package in your environment.**

This package will automatically install all the missing dependencies.

To use it you will have to install it via `npm`:

```bash
npm install @hint/configuration-all --save-dev
```

**Note:** The recommended way of running webhint is as a `devDependency` of
your project.

The minimum required [`.hintrc`][hintrc] file to use it is
the following:

```json
{
"extends": ["all"]
}
```

and it will be as if you had this:

```json
{
"connector": "puppeteer",
"formatters": [
"html",
"summary"
],
"hints": {
"amp-validator": "error",
"apple-touch-icons": "error",
"axe/aria": "error",
"axe/forms": "error",
"axe/color": "error",
...
},
"hintsTimeout": 120000
}
```

If you prefer to use another formatter (or any other hint/connector,
etc.) you can do something like:

```json
{
"extends": ["all"],
"formatters": ["codeframe"]
}
```

Note: Not all the hints can be used for all connectors,
you will be warned when a hint is going to be ignored
for a connector.

e.g.

```text
Warning: The hint "babel-config/is-valid" will be ignored for the connector "puppeteer"
```

<!-- Link labels: -->

[hintrc]: https://webhint.io/docs/user-guide/configuring-webhint/summary/
This package is for internal usage and have an easy way to download all
the first party resources to generate the documentation in
[webhint.io](https://webhint.io).
140 changes: 70 additions & 70 deletions packages/configuration-all/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,76 @@
"html",
"summary"
],
"hints": {
"amp-validator": "error",
"apple-touch-icons": "error",
"axe/aria": "error",
"axe/color": "error",
"axe/forms": "error",
"axe/keyboard": "error",
"axe/language": "error",
"axe/name-role-value": "error",
"axe/other": "error",
"axe/parsing": "error",
"axe/semantics": "error",
"axe/sensory-and-visual-cues": "error",
"axe/structure": "error",
"axe/tables": "error",
"axe/text-alternatives": "error",
"axe/time-and-media": "error",
"babel-config/is-valid": "error",
"button-type": "error",
"compat-api/css": "error",
"compat-api/html": "error",
"content-type": "error",
"create-element-svg": "error",
"css-prefix-order": "error",
"disown-opener": "error",
"doctype": "error",
"highest-available-document-mode": "error",
"html-checker": "error",
"http-cache": "error",
"http-compression": "error",
"https-only": "error",
"image-optimization-cloudinary": "error",
"manifest-app-name": "error",
"manifest-exists": "error",
"manifest-file-extension": "error",
"manifest-is-valid": "error",
"meta-charset-utf-8": "error",
"meta-theme-color": "error",
"meta-viewport": "error",
"minified-js": "error",
"no-bom": "error",
"no-broken-links": "error",
"no-disallowed-headers": "error",
"no-friendly-error-pages": "error",
"no-html-only-headers": "error",
"no-http-redirects": "error",
"no-p3p": "error",
"no-protocol-relative-urls": "error",
"no-vulnerable-javascript-libraries": "error",
"performance-budget": "error",
"scoped-svg-styles": "error",
"sri": "error",
"ssllabs": "error",
"strict-transport-security": "error",
"stylesheet-limits": "error",
"typescript-config/consistent-casing": "error",
"typescript-config/import-helpers": "error",
"typescript-config/is-valid": "error",
"typescript-config/no-comments": "error",
"typescript-config/strict": "error",
"typescript-config/target": "error",
"validate-set-cookie-header": "error",
"webpack-config/config-exists": "error",
"webpack-config/is-installed": "error",
"webpack-config/is-valid": "error",
"webpack-config/module-esnext-typescript": "error",
"webpack-config/modules-false-babel": "error",
"webpack-config/no-devtool-in-prod": "error",
"x-content-type-options": "error"
},
"hints": [
"amp-validator",
"apple-touch-icons",
"axe/aria",
"axe/color",
"axe/forms",
"axe/keyboard",
"axe/language",
"axe/name-role-value",
"axe/other",
"axe/parsing",
"axe/semantics",
"axe/sensory-and-visual-cues",
"axe/structure",
"axe/tables",
"axe/text-alternatives",
"axe/time-and-media",
"babel-config/is-valid",
"button-type",
"compat-api/css",
"compat-api/html",
"content-type",
"create-element-svg",
"css-prefix-order",
"disown-opener",
"doctype",
"highest-available-document-mode",
"html-checker",
"http-cache",
"http-compression",
"https-only",
"image-optimization-cloudinary",
"manifest-app-name",
"manifest-exists",
"manifest-file-extension",
"manifest-is-valid",
"meta-charset-utf-8",
"meta-theme-color",
"meta-viewport",
"minified-js",
"no-bom",
"no-broken-links",
"no-disallowed-headers",
"no-friendly-error-pages",
"no-html-only-headers",
"no-http-redirects",
"no-p3p",
"no-protocol-relative-urls",
"no-vulnerable-javascript-libraries",
"performance-budget",
"scoped-svg-styles",
"sri",
"ssllabs",
"strict-transport-security",
"stylesheet-limits",
"typescript-config/consistent-casing",
"typescript-config/import-helpers",
"typescript-config/is-valid",
"typescript-config/no-comments",
"typescript-config/strict",
"typescript-config/target",
"validate-set-cookie-header",
"webpack-config/config-exists",
"webpack-config/is-installed",
"webpack-config/is-valid",
"webpack-config/module-esnext-typescript",
"webpack-config/modules-false-babel",
"webpack-config/no-devtool-in-prod",
"x-content-type-options"
],
"hintsTimeout": 120000,
"parsers": [
"babel-config",
Expand Down
53 changes: 23 additions & 30 deletions packages/configuration-development/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,29 @@
"html",
"summary"
],
"hints": {
"apple-touch-icons": "off",
"babel-config/is-valid": "error",
"button-type": "error",
"compat-api/css": "warning",
"compat-api/html": "warning",
"create-element-svg": "error",
"css-prefix-order": "error",
"disown-opener": "error",
"highest-available-document-mode": "error",
"manifest-exists": "off",
"meta-charset-utf-8": "error",
"meta-viewport": "error",
"no-bom": "error",
"no-protocol-relative-urls": "error",
"scoped-svg-styles": "error",
"sri": "error",
"typescript-config/consistent-casing": "error",
"typescript-config/import-helpers": "error",
"typescript-config/is-valid": "error",
"typescript-config/no-comments": "error",
"typescript-config/strict": "error",
"typescript-config/target": "error",
"webpack-config/config-exists": "off",
"webpack-config/is-installed": "off",
"webpack-config/is-valid": "error",
"webpack-config/module-esnext-typescript": "error",
"webpack-config/modules-false-babel": "error",
"webpack-config/no-devtool-in-prod": "error"
},
"hints": [
"apple-touch-icons",
"button-type",
"compat-api/css",
"compat-api/html",
"create-element-svg",
"css-prefix-order",
"disown-opener",
"highest-available-document-mode",
"manifest-exists",
"meta-charset-utf-8",
"meta-viewport",
"no-bom",
"no-protocol-relative-urls",
"scoped-svg-styles",
"sri",
"typescript-config/consistent-casing",
"typescript-config/import-helpers",
"typescript-config/is-valid",
"typescript-config/no-comments",
"typescript-config/strict",
"typescript-config/target"
],
"hintsTimeout": 10000,
"parsers": [
"babel-config",
Expand Down
14 changes: 7 additions & 7 deletions packages/configuration-progressive-web-apps/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"html",
"summary"
],
"hints": {
"apple-touch-icons": "error",
"manifest-app-name": "error",
"manifest-exists": "error",
"manifest-file-extension": "error",
"manifest-is-valid": "error"
},
"hints": [
"apple-touch-icons",
"manifest-app-name",
"manifest-exists",
"manifest-file-extension",
"manifest-is-valid"
],
"hintsTimeout": 120000,
"parsers": [
"manifest"
Expand Down
Loading

0 comments on commit 9266b18

Please sign in to comment.