|
|
@ -6,41 +6,19 @@ |
|
|
|
"scripts": { |
|
|
|
"lint": "npm run lint:js ; npm run lint:scss", |
|
|
|
"lint:js": "node node_modules/eslint/bin/eslint.js static/js/", |
|
|
|
"lint:scss": "node node_modules/stylelint/bin/stylelint.js scss/" |
|
|
|
}, |
|
|
|
"dependencies": { |
|
|
|
"swagger-ui": "^5.27.1" |
|
|
|
"lint:scss": "node node_modules/stylelint/bin/stylelint.mjs scss/" |
|
|
|
}, |
|
|
|
"dependencies": {}, |
|
|
|
"devDependencies": { |
|
|
|
"eslint": "^5.16.0", |
|
|
|
"eslint-config-prettier": "^4.3.0", |
|
|
|
"eslint-plugin-prettier": "^3.1.0", |
|
|
|
"prettier": "^1.17.1", |
|
|
|
"stylelint": "^10.0.1", |
|
|
|
"stylelint-scss": "^3.6.0" |
|
|
|
}, |
|
|
|
"scarfSettings": { |
|
|
|
"enabled": false |
|
|
|
}, |
|
|
|
"eslintConfig": { |
|
|
|
"env": { |
|
|
|
"browser": true |
|
|
|
}, |
|
|
|
"extends": [ |
|
|
|
"eslint:recommended", |
|
|
|
"plugin:prettier/recommended" |
|
|
|
], |
|
|
|
"globals": { |
|
|
|
"$": "readonly", |
|
|
|
"Intercooler": "readonly", |
|
|
|
"Promise": "readonly", |
|
|
|
"Tildes": "readonly" |
|
|
|
} |
|
|
|
"eslint": "^9.35.0", |
|
|
|
"eslint-config-prettier": "^10.1.8", |
|
|
|
"eslint-plugin-prettier": "^5.5.4", |
|
|
|
"prettier": "^3.6.2", |
|
|
|
"stylelint": "^16.24.0", |
|
|
|
"stylelint-config-standard-scss": "^16.0.0", |
|
|
|
"@stylistic/stylelint-plugin": "^4.0.0" |
|
|
|
}, |
|
|
|
"eslintIgnore": [ |
|
|
|
"static/js/third_party*", |
|
|
|
"static/js/tildes.js" |
|
|
|
], |
|
|
|
"type": "module", |
|
|
|
"prettier": { |
|
|
|
"bracketSpacing": false, |
|
|
|
"printWidth": 88, |
|
|
@ -52,8 +30,9 @@ |
|
|
|
"scss/spectre*/**" |
|
|
|
], |
|
|
|
"plugins": [ |
|
|
|
"stylelint-scss" |
|
|
|
"@stylistic/stylelint-plugin" |
|
|
|
], |
|
|
|
"extends": "stylelint-config-standard-scss", |
|
|
|
"rules": { |
|
|
|
"at-rule-empty-line-before": [ |
|
|
|
"always", |
|
|
@ -70,77 +49,31 @@ |
|
|
|
] |
|
|
|
} |
|
|
|
], |
|
|
|
"at-rule-name-case": "lower", |
|
|
|
"at-rule-name-space-after": "always", |
|
|
|
"at-rule-semicolon-newline-after": "always", |
|
|
|
"at-rule-semicolon-space-before": "never", |
|
|
|
"block-closing-brace-empty-line-before": "never", |
|
|
|
"block-closing-brace-newline-after": [ |
|
|
|
"always", |
|
|
|
{ |
|
|
|
"ignoreAtRules": [ |
|
|
|
"else", |
|
|
|
"if" |
|
|
|
] |
|
|
|
} |
|
|
|
], |
|
|
|
"block-closing-brace-newline-before": "always", |
|
|
|
"block-no-empty": true, |
|
|
|
"block-opening-brace-newline-after": "always", |
|
|
|
"block-opening-brace-space-before": "always", |
|
|
|
"color-hex-case": "lower", |
|
|
|
"color-function-notation": "legacy", |
|
|
|
"color-named": "never", |
|
|
|
"color-no-invalid-hex": true, |
|
|
|
"comment-empty-line-before": "always", |
|
|
|
"comment-no-empty": true, |
|
|
|
"comment-whitespace-inside": "always", |
|
|
|
"declaration-bang-space-after": "never", |
|
|
|
"declaration-bang-space-before": "always", |
|
|
|
"declaration-block-no-duplicate-properties": true, |
|
|
|
"declaration-block-no-redundant-longhand-properties": null, |
|
|
|
"declaration-block-no-shorthand-property-overrides": true, |
|
|
|
"declaration-block-semicolon-newline-after": "always", |
|
|
|
"declaration-block-semicolon-newline-before": "never-multi-line", |
|
|
|
"declaration-block-semicolon-space-before": "never", |
|
|
|
"declaration-block-trailing-semicolon": "always", |
|
|
|
"declaration-colon-newline-after": "always-multi-line", |
|
|
|
"declaration-colon-space-before": "never", |
|
|
|
"font-family-no-duplicate-names": true, |
|
|
|
"font-family-no-missing-generic-family-keyword": true, |
|
|
|
"font-weight-notation": "named-where-possible", |
|
|
|
"function-calc-no-unspaced-operator": true, |
|
|
|
"function-comma-newline-after": "always-multi-line", |
|
|
|
"function-comma-space-after": "always-single-line", |
|
|
|
"function-comma-space-before": "never", |
|
|
|
"function-max-empty-lines": 0, |
|
|
|
"function-name-case": "lower", |
|
|
|
"function-parentheses-newline-inside": "always-multi-line", |
|
|
|
"function-parentheses-space-inside": "never-single-line", |
|
|
|
"function-url-quotes": "always", |
|
|
|
"function-url-scheme-whitelist": "https", |
|
|
|
"function-whitespace-after": "always", |
|
|
|
"indentation": 2, |
|
|
|
"function-url-scheme-allowed-list": "https", |
|
|
|
"length-zero-no-unit": true, |
|
|
|
"max-empty-lines": 1, |
|
|
|
"max-line-length": 88, |
|
|
|
"media-feature-colon-space-after": "always", |
|
|
|
"media-feature-colon-space-before": "never", |
|
|
|
"media-feature-name-case": "lower", |
|
|
|
"media-feature-name-no-unknown": true, |
|
|
|
"media-feature-parentheses-space-inside": "never", |
|
|
|
"media-feature-range-operator-space-after": "always", |
|
|
|
"media-feature-range-operator-space-before": "always", |
|
|
|
"no-descending-specificity": null, |
|
|
|
"no-duplicate-at-import-rules": true, |
|
|
|
"no-duplicate-selectors": true, |
|
|
|
"no-empty-first-line": true, |
|
|
|
"no-empty-source": true, |
|
|
|
"no-eol-whitespace": true, |
|
|
|
"no-extra-semicolons": true, |
|
|
|
"no-invalid-double-slash-comments": true, |
|
|
|
"no-missing-end-of-source-newline": true, |
|
|
|
"number-leading-zero": "always", |
|
|
|
"number-no-trailing-zeros": true, |
|
|
|
"number-max-precision": 1, |
|
|
|
"property-case": "lower", |
|
|
|
"property-no-unknown": true, |
|
|
|
"rule-empty-line-before": [ |
|
|
|
"always", |
|
|
@ -153,31 +86,18 @@ |
|
|
|
] |
|
|
|
} |
|
|
|
], |
|
|
|
"selector-attribute-brackets-space-inside": "never", |
|
|
|
"selector-attribute-operator-space-after": "never", |
|
|
|
"selector-attribute-operator-space-before": "never", |
|
|
|
"selector-attribute-quotes": "always", |
|
|
|
"selector-combinator-space-after": "always", |
|
|
|
"selector-combinator-space-before": "always", |
|
|
|
"selector-descendant-combinator-no-non-space": true, |
|
|
|
"selector-list-comma-newline-after": "always", |
|
|
|
"selector-list-comma-newline-before": "never-multi-line", |
|
|
|
"selector-max-empty-lines": 0, |
|
|
|
"selector-pseudo-class-case": "lower", |
|
|
|
"selector-pseudo-class-no-unknown": true, |
|
|
|
"selector-pseudo-class-parentheses-space-inside": "never", |
|
|
|
"selector-pseudo-element-case": "lower", |
|
|
|
"selector-pseudo-element-colon-notation": "double", |
|
|
|
"selector-pseudo-element-no-unknown": true, |
|
|
|
"selector-type-case": "lower", |
|
|
|
"selector-type-no-unknown": true, |
|
|
|
"shorthand-property-no-redundant-values": true, |
|
|
|
"string-no-newline": true, |
|
|
|
"string-quotes": "double", |
|
|
|
"unit-case": "lower", |
|
|
|
"unit-no-unknown": true, |
|
|
|
"unit-whitelist": [ |
|
|
|
"unit-allowed-list": [ |
|
|
|
"%", |
|
|
|
"deg", |
|
|
|
"fr", |
|
|
|
"px", |
|
|
|
"rem", |
|
|
@ -185,7 +105,6 @@ |
|
|
|
"vw" |
|
|
|
], |
|
|
|
"value-keyword-case": "lower", |
|
|
|
"value-list-max-empty-lines": 0, |
|
|
|
"value-no-vendor-prefix": true, |
|
|
|
"scss/at-else-closing-brace-newline-after": "always-last-in-chain", |
|
|
|
"scss/at-else-closing-brace-space-after": "always-intermediate", |
|
|
@ -196,10 +115,10 @@ |
|
|
|
"scss/at-function-pattern": "^[a-z-]+$", |
|
|
|
"scss/at-if-closing-brace-newline-after": "always-last-in-chain", |
|
|
|
"scss/at-if-closing-brace-space-after": "always-intermediate", |
|
|
|
"scss/at-import-no-partial-leading-underscore": true, |
|
|
|
"scss/at-mixin-argumentless-call-parentheses": "never", |
|
|
|
"scss/at-mixin-parentheses-space-before": "never", |
|
|
|
"scss/at-mixin-pattern": "^[a-z-]+$", |
|
|
|
"scss/at-rule-conditional-no-parentheses": null, |
|
|
|
"scss/at-rule-no-unknown": true, |
|
|
|
"scss/declaration-nested-properties": "never", |
|
|
|
"scss/dollar-variable-colon-newline-after": "always-multi-line", |
|
|
@ -230,11 +149,77 @@ |
|
|
|
} |
|
|
|
], |
|
|
|
"scss/double-slash-comment-whitespace-inside": "always", |
|
|
|
"scss/load-no-partial-leading-underscore": true, |
|
|
|
"scss/no-global-function-names": null, |
|
|
|
"scss/operator-no-newline-after": true, |
|
|
|
"scss/operator-no-newline-before": true, |
|
|
|
"scss/operator-no-unspaced": true, |
|
|
|
"scss/percent-placeholder-pattern": "^[a-z-]+$", |
|
|
|
"scss/selector-no-redundant-nesting-selector": true |
|
|
|
"scss/selector-no-redundant-nesting-selector": true, |
|
|
|
"@stylistic/at-rule-name-case": "lower", |
|
|
|
"@stylistic/at-rule-name-space-after": "always", |
|
|
|
"@stylistic/at-rule-semicolon-newline-after": "always", |
|
|
|
"@stylistic/at-rule-semicolon-space-before": "never", |
|
|
|
"@stylistic/block-closing-brace-empty-line-before": "never", |
|
|
|
"@stylistic/block-closing-brace-newline-after": [ |
|
|
|
"always", |
|
|
|
{ |
|
|
|
"ignoreAtRules": [ |
|
|
|
"else", |
|
|
|
"if" |
|
|
|
] |
|
|
|
} |
|
|
|
], |
|
|
|
"@stylistic/block-closing-brace-newline-before": "always", |
|
|
|
"@stylistic/block-opening-brace-newline-after": "always", |
|
|
|
"@stylistic/block-opening-brace-space-before": "always", |
|
|
|
"@stylistic/color-hex-case": "lower", |
|
|
|
"@stylistic/declaration-bang-space-after": "never", |
|
|
|
"@stylistic/declaration-bang-space-before": "always", |
|
|
|
"@stylistic/declaration-block-semicolon-newline-after": "always", |
|
|
|
"@stylistic/declaration-block-semicolon-newline-before": "never-multi-line", |
|
|
|
"@stylistic/declaration-block-semicolon-space-before": "never", |
|
|
|
"@stylistic/declaration-block-trailing-semicolon": "always", |
|
|
|
"@stylistic/declaration-colon-newline-after": "always-multi-line", |
|
|
|
"@stylistic/declaration-colon-space-before": "never", |
|
|
|
"@stylistic/function-comma-newline-after": "always-multi-line", |
|
|
|
"@stylistic/function-comma-space-after": "always-single-line", |
|
|
|
"@stylistic/function-comma-space-before": "never", |
|
|
|
"@stylistic/function-max-empty-lines": 0, |
|
|
|
"@stylistic/function-parentheses-newline-inside": "always-multi-line", |
|
|
|
"@stylistic/function-parentheses-space-inside": "never-single-line", |
|
|
|
"@stylistic/function-whitespace-after": "always", |
|
|
|
"@stylistic/indentation": 2, |
|
|
|
"@stylistic/max-empty-lines": 1, |
|
|
|
"@stylistic/max-line-length": 88, |
|
|
|
"@stylistic/media-feature-colon-space-after": "always", |
|
|
|
"@stylistic/media-feature-colon-space-before": "never", |
|
|
|
"@stylistic/media-feature-name-case": "lower", |
|
|
|
"@stylistic/media-feature-parentheses-space-inside": "never", |
|
|
|
"@stylistic/media-feature-range-operator-space-after": "always", |
|
|
|
"@stylistic/media-feature-range-operator-space-before": "always", |
|
|
|
"@stylistic/no-empty-first-line": true, |
|
|
|
"@stylistic/no-eol-whitespace": true, |
|
|
|
"@stylistic/no-extra-semicolons": true, |
|
|
|
"@stylistic/no-missing-end-of-source-newline": true, |
|
|
|
"@stylistic/number-leading-zero": "always", |
|
|
|
"@stylistic/number-no-trailing-zeros": true, |
|
|
|
"@stylistic/property-case": "lower", |
|
|
|
"@stylistic/selector-attribute-brackets-space-inside": "never", |
|
|
|
"@stylistic/selector-attribute-operator-space-after": "never", |
|
|
|
"@stylistic/selector-attribute-operator-space-before": "never", |
|
|
|
"@stylistic/selector-combinator-space-after": "always", |
|
|
|
"@stylistic/selector-combinator-space-before": "always", |
|
|
|
"@stylistic/selector-descendant-combinator-no-non-space": true, |
|
|
|
"@stylistic/selector-list-comma-newline-after": "always", |
|
|
|
"@stylistic/selector-list-comma-newline-before": "never-multi-line", |
|
|
|
"@stylistic/selector-max-empty-lines": 0, |
|
|
|
"@stylistic/selector-pseudo-class-case": "lower", |
|
|
|
"@stylistic/selector-pseudo-class-parentheses-space-inside": "never", |
|
|
|
"@stylistic/selector-pseudo-element-case": "lower", |
|
|
|
"@stylistic/string-quotes": "double", |
|
|
|
"@stylistic/unit-case": "lower", |
|
|
|
"@stylistic/value-list-max-empty-lines": 0 |
|
|
|
} |
|
|
|
} |
|
|
|
} |