Added shlinkio css coding styles

This commit is contained in:
Alejandro Celaya 2022-05-12 22:44:12 +02:00
parent c2818645c4
commit f3f0dbac19
3 changed files with 39 additions and 42 deletions

View file

@ -1,29 +1,5 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-recommended-scss"
],
"syntax": "scss",
"plugins": [
"stylelint-scss",
"stylelint-selector-bem-pattern"
],
"rules": {
"string-quotes": "single",
"number-leading-zero": "never",
"selector-pseudo-element-colon-notation": null,
"alpha-value-notation": null,
"scss/at-import-partial-extension": null,
"color-hex-length": null,
"selector-class-pattern": null,
"scss/no-global-function-names": null,
"plugin/selector-bem-pattern": {
"componentName": "[A-Z]+",
"componentSelectors": {
"initial": "^\\.{componentName}(?:-[a-z]+)?$",
"combined": "^\\.combined-{componentName}-[a-z]+$"
},
"utilitySelectors": "^\\.util-[a-z]+$"
}
}
"@shlinkio/stylelint-config-css-coding-standard"
]
}

46
package-lock.json generated
View file

@ -51,7 +51,8 @@
"workbox-strategies": "^6.5.1"
},
"devDependencies": {
"@shlinkio/eslint-config-js-coding-standard": "~2.0.0",
"@shlinkio/eslint-config-js-coding-standard": "~2.0.2",
"@shlinkio/stylelint-config-css-coding-standard": "~1.0.1",
"@stryker-mutator/core": "^6.0.2",
"@stryker-mutator/jest-runner": "^6.0.2",
"@stryker-mutator/typescript-checker": "^6.0.2",
@ -87,10 +88,6 @@
"serve": "^13.0.2",
"stryker-cli": "^1.0.2",
"stylelint": "^14.8.2",
"stylelint-config-recommended-scss": "^6.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-scss": "^4.2.0",
"stylelint-selector-bem-pattern": "^2.1.1",
"ts-mockery": "^1.2.0",
"typescript": "^4.6.2",
"webpack": "^5.70.0"
@ -4293,9 +4290,9 @@
"dev": true
},
"node_modules/@shlinkio/eslint-config-js-coding-standard": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-2.0.0.tgz",
"integrity": "sha512-yD/+NVu3vxcA23ptsFGxX827+tZgGfBoWMonRcliG56HOMYDrf7OET7f7Xvi1or2U0PLQDOPRShk4IlR3Km6kA==",
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-2.0.2.tgz",
"integrity": "sha512-9uWuCZ32FD64EJ3JCXVlc4YR9JVeSn7q0iHjMYqYqThPrTPGFrvnYLkc/HFmPcVGA/hzbavFrGjTLF1e7i4oAA==",
"dev": true,
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.16.0",
@ -4307,6 +4304,21 @@
"eslint": "^8.12.0"
}
},
"node_modules/@shlinkio/stylelint-config-css-coding-standard": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@shlinkio/stylelint-config-css-coding-standard/-/stylelint-config-css-coding-standard-1.0.1.tgz",
"integrity": "sha512-SrHko3cmcwff9ly63Io1HdIETyL/mjL6CUisccgNmzhXGJH2dqbBv5m2QjJOeO/hHnZJVcPZJ1yjID/uGG1HIg==",
"dev": true,
"dependencies": {
"stylelint-config-recommended-scss": "^6.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-scss": "^4.2.0",
"stylelint-selector-bem-pattern": "^2.1.1"
},
"peerDependencies": {
"stylelint": "^14.8"
}
},
"node_modules/@sinclair/typebox": {
"version": "0.23.5",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.23.5.tgz",
@ -29827,9 +29839,9 @@
"dev": true
},
"@shlinkio/eslint-config-js-coding-standard": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-2.0.0.tgz",
"integrity": "sha512-yD/+NVu3vxcA23ptsFGxX827+tZgGfBoWMonRcliG56HOMYDrf7OET7f7Xvi1or2U0PLQDOPRShk4IlR3Km6kA==",
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@shlinkio/eslint-config-js-coding-standard/-/eslint-config-js-coding-standard-2.0.2.tgz",
"integrity": "sha512-9uWuCZ32FD64EJ3JCXVlc4YR9JVeSn7q0iHjMYqYqThPrTPGFrvnYLkc/HFmPcVGA/hzbavFrGjTLF1e7i4oAA==",
"dev": true,
"requires": {
"@typescript-eslint/eslint-plugin": "^5.16.0",
@ -29838,6 +29850,18 @@
"eslint-config-airbnb-typescript": "^16.1.4"
}
},
"@shlinkio/stylelint-config-css-coding-standard": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@shlinkio/stylelint-config-css-coding-standard/-/stylelint-config-css-coding-standard-1.0.1.tgz",
"integrity": "sha512-SrHko3cmcwff9ly63Io1HdIETyL/mjL6CUisccgNmzhXGJH2dqbBv5m2QjJOeO/hHnZJVcPZJ1yjID/uGG1HIg==",
"dev": true,
"requires": {
"stylelint-config-recommended-scss": "^6.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-scss": "^4.2.0",
"stylelint-selector-bem-pattern": "^2.1.1"
}
},
"@sinclair/typebox": {
"version": "0.23.5",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.23.5.tgz",

View file

@ -67,7 +67,8 @@
"workbox-strategies": "^6.5.1"
},
"devDependencies": {
"@shlinkio/eslint-config-js-coding-standard": "~2.0.0",
"@shlinkio/eslint-config-js-coding-standard": "~2.0.2",
"@shlinkio/stylelint-config-css-coding-standard": "~1.0.1",
"@stryker-mutator/core": "^6.0.2",
"@stryker-mutator/jest-runner": "^6.0.2",
"@stryker-mutator/typescript-checker": "^6.0.2",
@ -103,10 +104,6 @@
"serve": "^13.0.2",
"stryker-cli": "^1.0.2",
"stylelint": "^14.8.2",
"stylelint-config-recommended-scss": "^6.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-scss": "^4.2.0",
"stylelint-selector-bem-pattern": "^2.1.1",
"ts-mockery": "^1.2.0",
"typescript": "^4.6.2",
"webpack": "^5.70.0"