-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create main project
- Loading branch information
0 parents
commit cd1b170
Showing
16 changed files
with
12,905 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["env"], | ||
"plugins": ["transform-runtime"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = crlf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
extends: 'airbnb-base', | ||
rules: { | ||
// 強制在點號之前或之後換行 | ||
'dot-location': ['error', 'property'], | ||
// 強制使用一致的換行符號風格 | ||
'linebreak-style': ['error', 'windows'], | ||
// 強制使用一致的縮排及switch...case...縮排問題 | ||
indent: ['error', 4, { SwitchCase: 1 }], | ||
// 允許使用 Console Error | ||
'no-console': ['error', { allow: ['info', 'warn', 'error'] }], | ||
// 設定每行字最大長度 [rule ID (0 - turn the rule off, 1 - turn the rule on as a warning, 2 - turn the rule on as an error), code, tabWidth] | ||
'max-len': [1, 120, 4], | ||
}, | ||
env: { | ||
// 解決'fetch' is not defined. (no-undef)、解決'window' is not defined. (no-undef)、解決'document' is not defined. (no-undef、 | ||
browser: true, | ||
}, | ||
// 解決.html檔的<!DOCTYPE html>誤判為Unexpected toke < | ||
plugins: ['html'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"rules": { | ||
"color-no-invalid-hex": true, | ||
"font-family-no-duplicate-names": true, | ||
"font-family-no-missing-generic-family-keyword": true, | ||
"function-calc-no-unspaced-operator": true, | ||
"function-linear-gradient-no-nonstandard-direction": true, | ||
"string-no-newline": true, | ||
"unit-no-unknown": true, | ||
"property-no-unknown": true, | ||
"keyframe-declaration-no-important": true, | ||
"declaration-block-no-duplicate-properties": true, | ||
"declaration-block-no-shorthand-property-overrides": true, | ||
"block-no-empty": true, | ||
"selector-pseudo-class-no-unknown": true, | ||
"selector-pseudo-element-no-unknown": true, | ||
"selector-type-no-unknown": true, | ||
"media-feature-name-no-unknown": true, | ||
"at-rule-no-unknown": true, | ||
"comment-no-empty": true, | ||
"no-descending-specificity": true, | ||
"no-duplicate-at-import-rules": true, | ||
"no-duplicate-selectors": true, | ||
"no-empty-source": true, | ||
"no-extra-semicolons": true, | ||
"no-invalid-double-slash-comments": true, | ||
"color-named": true, | ||
"color-no-hex": true, | ||
"function-url-no-scheme-relative": true, | ||
"number-max-precision": 4, | ||
"time-min-milliseconds": 100, | ||
"shorthand-property-no-redundant-values": true, | ||
"value-no-vendor-prefix": true, | ||
"declaration-block-no-redundant-longhand-properties": true, | ||
"declaration-no-important": true, | ||
"declaration-block-single-line-max-declarations": 1, | ||
"selector-max-attribute": 2, | ||
"selector-max-class": 10, | ||
"selector-max-combinators": 3, | ||
"selector-max-compound-selectors": 5, | ||
"selector-max-empty-lines": 0, | ||
"selector-max-id": 1, | ||
"selector-max-specificity": "1, 10, 1", | ||
"selector-max-type": 1, | ||
"selector-max-universal": 1, | ||
"selector-no-vendor-prefix": false, | ||
"media-feature-name-no-vendor-prefix": false, | ||
"max-nesting-depth": 10, | ||
"no-unknown-animations": true, | ||
"color-hex-case": "lower", | ||
"color-hex-length": "short", | ||
"font-family-name-quotes": "always-unless-keyword", | ||
"font-weight-notation": "numeric", | ||
"function-comma-newline-after": "never-multi-line", | ||
"function-comma-newline-before": "never-multi-line", | ||
"function-comma-space-after": "always", | ||
"function-comma-space-before": "never", | ||
"function-max-empty-lines": 0, | ||
"function-name-case": "lower", | ||
"function-parentheses-newline-inside": "never-multi-line", | ||
"function-parentheses-space-inside": "never", | ||
"function-url-quotes": "always", | ||
"function-whitespace-after": "always", | ||
"number-leading-zero": "always", | ||
"number-no-trailing-zeros": true, | ||
"string-quotes": "single", | ||
"length-zero-no-unit": true, | ||
"unit-case": "lower", | ||
"value-keyword-case": "lower", | ||
"value-list-comma-newline-after": "never-multi-line", | ||
"value-list-comma-newline-before": "never-multi-line", | ||
"value-list-comma-space-after": "always", | ||
"value-list-comma-space-before": "never", | ||
"value-list-max-empty-lines": 0, | ||
"custom-property-empty-line-before": "never", | ||
"property-case": "lower", | ||
"declaration-bang-space-after": "never", | ||
"declaration-bang-space-before": "always", | ||
"declaration-colon-space-after": "always", | ||
"declaration-colon-space-before": "never", | ||
"declaration-empty-line-before": "never", | ||
"declaration-block-semicolon-newline-after": "always", | ||
"declaration-block-semicolon-space-before": "never", | ||
"declaration-block-trailing-semicolon": "always", | ||
"block-closing-brace-empty-line-before": "never", | ||
"block-closing-brace-newline-after": "always", | ||
"block-closing-brace-newline-before": "always", | ||
"block-opening-brace-newline-after": "always", | ||
"block-opening-brace-space-after": "always", | ||
"block-opening-brace-space-before": "always", | ||
"selector-attribute-brackets-space-inside": "never", | ||
"selector-attribute-operator-space-after": "always", | ||
"selector-attribute-operator-space-before": "always", | ||
"selector-attribute-quotes": "always", | ||
"selector-combinator-space-after": "always", | ||
"selector-combinator-space-before": "always", | ||
"selector-descendant-combinator-no-non-space": true, | ||
"selector-pseudo-class-case": "lower", | ||
"selector-pseudo-class-parentheses-space-inside": "never", | ||
"selector-pseudo-element-case": "lower", | ||
"selector-pseudo-element-colon-notation": "double", | ||
"selector-type-case": "lower", | ||
"selector-list-comma-newline-after": "always", | ||
"selector-list-comma-newline-before": "never", | ||
"selector-list-comma-space-after": "always", | ||
"rule-empty-line-before": "always-multi-line", | ||
"media-feature-colon-space-after": "always", | ||
"media-feature-colon-space-before": "never", | ||
"media-feature-name-case": "lower", | ||
"media-feature-parentheses-space-inside": "never", | ||
"media-feature-range-operator-space-after": "always", | ||
"media-feature-range-operator-space-before": "always", | ||
"media-query-list-comma-newline-after": "always-multi-line", | ||
"media-query-list-comma-newline-before": "never-multi-line", | ||
"media-query-list-comma-space-after": "always", | ||
"media-query-list-comma-space-before": "never", | ||
"at-rule-empty-line-before": "always", | ||
"at-rule-name-case": "lower", | ||
"at-rule-name-space-after": "always", | ||
"at-rule-semicolon-newline-after": "always", | ||
"at-rule-semicolon-space-before": "never", | ||
"comment-empty-line-before": [ | ||
"always", | ||
{ "except": ["first-nested"], "ignore": ["after-comment", "stylelint-commands"] } | ||
], | ||
"comment-whitespace-inside": "always", | ||
"indentation": "tab", | ||
"max-empty-lines": [1, { "ignore": ["comments"] }], | ||
"max-line-length": [200, { "ignore": ["comments"] }] | ||
} | ||
} |
Oops, something went wrong.