Help - About Smartgit - Information - Setting Path (click) - Go to latest (eg. 21.2) - Copy/Paste .yml files from this gist - Done
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
// @NOTE: ONLY msw@1 (!) | |
// msw@2 is not supported | |
import { MockedResponse, ResponseComposition, rest, RestContext, RestRequest } from 'msw'; | |
import { DefaultRequestBody, ResponseResolver } from 'msw/lib/types/handlers/RequestHandler'; | |
import { PathParams } from 'msw/lib/types/utils/matching/matchRequestUrl'; | |
import qs from 'qs'; | |
import { ConditionalPick } from 'type-fest'; | |
import urljoin from 'url-join'; | |
/** |
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
module.exports = { | |
printWidth: 120, | |
tabWidth: 2, | |
useTabs: false, | |
semi: true, | |
singleQuote: true, | |
quoteProps: 'consistent', | |
trailingComma: 'all', | |
bracketSpacing: true, | |
arrowParens: 'always', |
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
module.exports = { | |
plugins: ['stylelint-scss'], | |
extends: 'stylelint-config-standard', | |
rules: { | |
// @NOTE: This conflicts with @use from scss | |
'at-rule-no-unknown': null, | |
'scss/at-rule-no-unknown': true, | |
// @NOTE: This conflicts with styled-components | |
'no-empty-source': null, |
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
// @NOTE: https://github.com/styled-components/stylelint-processor-styled-components/issues/187#issuecomment-396687345 | |
module.exports = { | |
processors: ['stylelint-processor-styled-components'], | |
extends: ['stylelint-config-standard', 'stylelint-config-styled-components'], | |
rules: { | |
indentation: 2, | |
// @NOTE: This conflicts with @use from scss | |
'at-rule-no-unknown': null, | |
'scss/at-rule-no-unknown': 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
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const branchNameLint = require('@web-bee-ru/branch-name-lint'); | |
// See: https://github.com/barzik/branch-name-lint#options | |
const options = { | |
prefixes: ['feature', 'hotfix', 'release'], | |
suggestions: { | |
features: 'feature', | |
feat: 'feature', | |
fix: 'hotfix', |
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
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:tns="http://tempuri.org/PurchaseOrderSchema.xsd" | |
targetNamespace="http://tempuri.org/PurchaseOrderSchema.xsd" | |
elementFormDefault="qualified"> | |
<xsd:element name="PurchaseOrder" type="tns:PurchaseOrderType"/> | |
<xsd:complexType name="PurchaseOrderType"> | |
<xsd:sequence> | |
<xsd:element name="ShipTo" type="tns:USAddress" maxOccurs="2"/> | |
<xsd:element name="BillTo" type="tns:USAddress"/> | |
</xsd:sequence> |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://some/awesome/schema"> | |
<xs:element name="REQUEST"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="LOGIN"> | |
<xs:complexType> | |
<xs:choice> | |
<xs:element name="API_TOKEN"> | |
<xs:annotation> |
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
const execSync = require('child_process').execSync; | |
const fs = require('fs'); | |
const webpack = require('webpack'); | |
const marked = require('marked'); | |
module.exports = (env, argv) => { | |
return { | |
plugins: [ | |
// @NOTE: Generate CHANGELOG.md (from git log + current CHANGELOG.md), put it in bundle | |
env.NODE_ENV === 'production' && { |
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
import React from 'react'; | |
import { defineAbilitiesFor } from '~/lib/ability'; | |
export const AbilityContext = React.createContext(defineAbilitiesFor(null)); |
OlderNewer