Skip to content

Commit 850242b

Browse files
.
1 parent 0e16a8c commit 850242b

File tree

4 files changed

+80
-3
lines changed

4 files changed

+80
-3
lines changed

.htmlhintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"alt-require": true,
3+
"attr-lowercase": true,
4+
"attr-no-duplication": true,
5+
"attr-unsafe-chars": true,
6+
"attr-value-double-quotes": true,
7+
"attr-value-not-empty": false,
8+
"doctype-first": false,
9+
"doctype-html5": true,
10+
"href-abs-or-rel": false,
11+
"id-class-ad-disabled": false,
12+
"id-class-value": "dash",
13+
"id-unique": true,
14+
"inline-script-disabled": false,
15+
"inline-style-disabled": false,
16+
"space-tab-mixed-disabled": "space",
17+
"spec-char-escape": true,
18+
"src-not-empty": true,
19+
"style-disabled": false,
20+
"tag-pair": true,
21+
"tag-self-close": false,
22+
"tagname-lowercase": false,
23+
"title-require": true
24+
}

.stylelintrc.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"plugins": ["stylelint-scss"],
4+
"ignoreFiles": ["dist/**/*.css"],
5+
"rules": {
6+
"at-rule-empty-line-before": [
7+
"always",
8+
{
9+
"ignore": ["after-comment", "first-nested"],
10+
"ignoreAtRules": ["else", "for", "if", "import"]
11+
}
12+
],
13+
"at-rule-no-unknown": null,
14+
"color-hex-case": "lower",
15+
"color-named": "never",
16+
"declaration-no-important": true,
17+
"font-family-name-quotes": "always-where-recommended",
18+
"function-name-case": ["lower", {}],
19+
"function-url-quotes": "always",
20+
"max-empty-lines": 2,
21+
"max-nesting-depth": 4,
22+
"media-feature-name-no-unknown": [
23+
true,
24+
{
25+
"ignoreMediaFeatureNames": ["min-device-pixel-ratio"]
26+
}
27+
],
28+
"selector-pseudo-element-colon-notation": "double",
29+
"selector-pseudo-element-no-unknown": [true, {}],
30+
"property-no-unknown": [
31+
true,
32+
{
33+
"ignoreProperties": ["place-items"]
34+
}
35+
],
36+
"selector-type-no-unknown": null,
37+
"string-quotes": "double",
38+
"value-keyword-case": [
39+
"lower",
40+
{
41+
"ignoreProperties": ["/font-?family/i"]
42+
}
43+
],
44+
"scss/at-extend-no-missing-placeholder": true,
45+
"scss/at-rule-no-unknown": true
46+
}
47+
}

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@
1313
},
1414
"dependencies": {},
1515
"devDependencies": {
16-
"eslint": "^7.2.0",
16+
"eslint": "^7.11.0",
1717
"eslint-config-airbnb": "^18.2.0",
18-
"eslint-config-prettier": "^6.12.0",
18+
"eslint-config-prettier": "^6.14.0",
1919
"eslint-plugin-flowtype": "^4.7.0",
2020
"eslint-plugin-import": "^2.22.1",
2121
"eslint-plugin-prettier": "^3.1.4",
2222
"flow-bin": "^0.119.1",
2323
"flow-typed": "^3.2.1",
24+
"htmlhint": "^0.14.1",
2425
"prettier": "^2.1.2",
25-
"prettier-eslint": "^11.0.0"
26+
"prettier-eslint": "^11.0.0",
27+
"stylelint": "^13.6.1",
28+
"stylelint-config-prettier": "^8.0.2",
29+
"stylelint-config-standard": "^20.0.0",
30+
"stylelint-scss": "^3.18.0"
2631
}
2732
}

src/canvas-animated-svg-filter/babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
window.onload = () => {
23
'use strict';
34

0 commit comments

Comments
 (0)