Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG_JS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [Unreleased-MINOR]

### Added
- stylelint (SassLint depreacted).

### Removed
- SassLint

## [1.1.2] - 2020-07-20

Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ composer require-dev reyesoft/ci
### Tools

* tslint
* sass-lint
* stylelint
* prettier (ts, md and json files)

### Install
Expand All @@ -64,10 +64,13 @@ composer require-dev reyesoft/ci

```json
{
"sasslintConfig": "resources/.sass-lint.yml",
"stylelint": {
"extends": "./resources/stylelint.config.json"
},
"scripts": {
"lint": "ng lint && sass-lint -c -q",
"fix": "ng lint --fix && yarn prettier:fix",
"lint": "ng lint && yarn lint:style",
"lint:style": "yarn stylelint \"src/**/*.{css,scss,sass}\"",
"fix": "ng lint --fix && yarn prettier:fix && yarn lint:style --fix",
"prettier:fix": "prettier **/*.{ts,sass,scss,md} --write",
"prettier:check": "bash node_modules/reyesoft-ci/parallel.bash -s \"yarn prettier **/*.{sass,scss,md} -l\" \"yarn prettier **/*.ts -l\"",
"precommit": "lint-staged"
Expand Down
7 changes: 0 additions & 7 deletions js/project-base/resources/.sass-lint.yml

This file was deleted.

48 changes: 48 additions & 0 deletions js/project-base/resources/stylelint.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-sass-guidelines"
],
"plugins": [
"stylelint-scss"
],
"rules": {
"indentation": 4,
"order/properties-alphabetical-order": null,
"selector-pseudo-element-no-unknown": [
true, {
"ignorePseudoElements": [
"ng-deep"
]
}
],
"selector-type-no-unknown": [
true, {
"ignoreTypes": [
"/^mat-/",
"/^app-/"
]
}
],
"color-hex-length": null,

"scss/at-mixin-pattern": null,
"property-no-vendor-prefix": null,
"media-feature-name-no-vendor-prefix": null,

"declaration-empty-line-before": null,
"function-name-case": null,
"no-empty-source": null,
"value-keyword-case": null,

"color-named": "always-where-possible",
"rule-empty-line-before": [
"always",{
"ignore": [
"first-nested",
"after-comment"
]
}
]
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"tslint-config-prettier": "1.18.0",
"rimraf": "3.0.2",
"rollup": "2.22.1",
"sass-lint": "1.13.1",
"stylelint": "^13.6.1",
"stylelint-config-standard": "^20.0.0",
"stylelint-config-sass-guidelines": "^7.0.0",
"sorcery": "0.10.0",
"tslint": "6.1.2"
}
Expand Down