-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/6'
- Loading branch information
Showing
14 changed files
with
238 additions
and
43 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 |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('@silverstripe/webpack-config/.eslintrc'); | ||
module.exports = require('@silverstripe/eslint-config/.eslintrc'); |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name: Module CI | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
uses: silverstripe/github-actions-ci-cd/.github/workflows/ci.yml@v0.1 | ||
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
v6.14.3 | ||
10 |
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,179 @@ | ||
# sass-lint config to match the AirBNB style guide | ||
files: | ||
include: | ||
# This covers linting when running locally | ||
- 'client/src/**/*.scss' | ||
# This covers linting when running via Github actions | ||
- '**/silverstripe-fluent/client/src/**/*.scss' | ||
options: | ||
formatter: stylish | ||
merge-default-rules: false | ||
rules: | ||
# Warnings | ||
# Things that require actual refactoring are marked as warnings | ||
class-name-format: | ||
- 1 | ||
- convention: hyphenatedbem | ||
placeholder-name-format: | ||
- 1 | ||
- convention: hyphenatedlowercase | ||
nesting-depth: | ||
- 1 | ||
- max-depth: 3 | ||
no-ids: 1 | ||
no-important: 1 | ||
no-misspelled-properties: | ||
- 1 | ||
- extra-properties: | ||
- "-moz-border-radius-topleft" | ||
- "-moz-border-radius-topright" | ||
- "-moz-border-radius-bottomleft" | ||
- "-moz-border-radius-bottomright" | ||
variable-name-format: | ||
- 1 | ||
- allow-leading-underscore: true | ||
convention: hyphenatedlowercase | ||
no-extends: 1 | ||
|
||
# Warnings: these things are preferential rather than mandatory | ||
no-css-comments: 1 | ||
|
||
# Errors | ||
# Things that can be easily fixed are marked as errors | ||
indentation: | ||
- 2 | ||
- size: 2 | ||
final-newline: | ||
- 2 | ||
- include: true | ||
no-trailing-whitespace: 2 | ||
border-zero: | ||
- 2 | ||
- convention: '0' | ||
brace-style: | ||
- 2 | ||
- allow-single-line: true | ||
clean-import-paths: | ||
- 2 | ||
- filename-extension: false | ||
leading-underscore: false | ||
no-debug: 2 | ||
no-empty-rulesets: 2 | ||
no-invalid-hex: 2 | ||
no-mergeable-selectors: 2 | ||
# no-qualifying-elements: | ||
# - 1 | ||
# - allow-element-with-attribute: false | ||
# allow-element-with-class: false | ||
# allow-element-with-id: false | ||
no-trailing-zero: 2 | ||
no-url-protocols: 2 | ||
quotes: | ||
- 2 | ||
- style: double | ||
space-after-bang: | ||
- 2 | ||
- include: false | ||
space-after-colon: | ||
- 2 | ||
- include: true | ||
space-after-comma: | ||
- 2 | ||
- include: true | ||
space-before-bang: | ||
- 2 | ||
- include: true | ||
space-before-brace: | ||
- 2 | ||
- include: true | ||
space-before-colon: 2 | ||
space-between-parens: | ||
- 2 | ||
- include: false | ||
trailing-semicolon: 2 | ||
url-quotes: 2 | ||
zero-unit: 2 | ||
single-line-per-selector: 2 | ||
one-declaration-per-line: 2 | ||
empty-line-between-blocks: | ||
- 2 | ||
- ignore-single-line-rulesets: true | ||
|
||
|
||
# Missing rules | ||
# There are no sass-lint rules for the following AirBNB style items, but thess | ||
# - Put comments on their own line | ||
# - Put property delcarations before mixins | ||
|
||
# Disabled rules | ||
|
||
# These are other rules that we may wish to consider using in the future | ||
# They are not part of the AirBNB CSS standard but they would introduce some strictness | ||
# bem-depth: 0 | ||
# variable-for-property: 0 | ||
# no-transition-all: 0 | ||
# hex-length: | ||
# - 1 | ||
# - style: short | ||
# hex-notation: | ||
# - 1 | ||
# - style: lowercase | ||
# property-units: | ||
# - 1 | ||
# - global: | ||
# - ch | ||
# - em | ||
# - ex | ||
# - rem | ||
# - cm | ||
# - in | ||
# - mm | ||
# - pc | ||
# - pt | ||
# - px | ||
# - q | ||
# - vh | ||
# - vw | ||
# - vmin | ||
# - vmax | ||
# - deg | ||
# - grad | ||
# - rad | ||
# - turn | ||
# - ms | ||
# - s | ||
# - Hz | ||
# - kHz | ||
# - dpi | ||
# - dpcm | ||
# - dppx | ||
# - '%' | ||
# per-property: {} | ||
# force-attribute-nesting: 1 | ||
# force-element-nesting: 1 | ||
# force-pseudo-nesting: 1 | ||
# function-name-format: | ||
# - 1 | ||
# - allow-leading-underscore: true | ||
# convention: hyphenatedlowercase | ||
# no-color-literals: 1 | ||
# no-duplicate-properties: 1 | ||
# mixin-name-format: | ||
# - 1 | ||
# - allow-leading-underscore: true | ||
# convention: hyphenatedlowercase | ||
# shorthand-values: | ||
# - 1 | ||
# - allowed-shorthands: | ||
# - 1 | ||
# - 2 | ||
# - 3 | ||
# leading-zero: | ||
# - 1 | ||
# - include: false | ||
# no-vendor-prefixes: | ||
# - 1 | ||
# - additional-identifiers: [] | ||
# excluded-identifiers: [] | ||
# placeholder-in-extend: 1 | ||
# no-color-keywords: 2 |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true"> | ||
<testsuite name="Default"> | ||
<directory>tests/php/</directory> | ||
</testsuite> | ||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="true"> | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" | ||
colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage includeUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
<exclude> | ||
<directory suffix=".php">tests/</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</include> | ||
<exclude> | ||
<directory suffix=".php">tests/</directory> | ||
</exclude> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Default"> | ||
<directory>tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
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