Skip to content

Commit 7ef456a

Browse files
committed
API Convert gulp and Compass builds to use Webpack
1 parent ef2f116 commit 7ef456a

16 files changed

+480
-69
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@silverstripe/eslint-config/.eslintrc');

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
.ssh/*
2-
.bash*
3-
.profile
41
/vendor/*
52
.sass-cache/*
63
/node_modules/
4+
**/*.js.map
5+
**/*.css.map

.sass-lint.yml

+179
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
# sass-lint config to match the AirBNB style guide
2+
# See silverstripe-admin
3+
files:
4+
include: '**/client/src/**/*.scss'
5+
ignore:
6+
- 'client/src/styles/legacy/*'
7+
- 'src/**/*'
8+
options:
9+
formatter: stylish
10+
merge-default-rules: false
11+
rules:
12+
# Warnings
13+
# Things that require actual refactoring are marked as warnings
14+
class-name-format:
15+
- 1
16+
- convention: hyphenatedbem
17+
placeholder-name-format:
18+
- 1
19+
- convention: hyphenatedlowercase
20+
nesting-depth:
21+
- 1
22+
- max-depth: 3
23+
no-ids: 1
24+
no-important: 1
25+
no-misspelled-properties:
26+
- 1
27+
- extra-properties:
28+
- "-moz-border-radius-topleft"
29+
- "-moz-border-radius-topright"
30+
- "-moz-border-radius-bottomleft"
31+
- "-moz-border-radius-bottomright"
32+
variable-name-format:
33+
- 1
34+
- allow-leading-underscore: true
35+
convention: hyphenatedlowercase
36+
no-extends: 1
37+
38+
# Warnings: these things are preferential rather than mandatory
39+
no-css-comments: 1
40+
41+
# Errors
42+
# Things that can be easily fixed are marked as errors
43+
indentation:
44+
- 2
45+
- size: 2
46+
final-newline:
47+
- 2
48+
- include: true
49+
no-trailing-whitespace: 2
50+
border-zero:
51+
- 2
52+
- convention: '0'
53+
brace-style:
54+
- 2
55+
- allow-single-line: true
56+
clean-import-paths:
57+
- 2
58+
- filename-extension: false
59+
leading-underscore: false
60+
no-debug: 2
61+
no-empty-rulesets: 2
62+
no-invalid-hex: 2
63+
no-mergeable-selectors: 2
64+
# no-qualifying-elements:
65+
# - 1
66+
# - allow-element-with-attribute: false
67+
# allow-element-with-class: false
68+
# allow-element-with-id: false
69+
no-trailing-zero: 2
70+
no-url-protocols: 2
71+
quotes:
72+
- 2
73+
- style: double
74+
space-after-bang:
75+
- 2
76+
- include: false
77+
space-after-colon:
78+
- 2
79+
- include: true
80+
space-after-comma:
81+
- 2
82+
- include: true
83+
space-before-bang:
84+
- 2
85+
- include: true
86+
space-before-brace:
87+
- 2
88+
- include: true
89+
space-before-colon: 2
90+
space-between-parens:
91+
- 2
92+
- include: false
93+
trailing-semicolon: 2
94+
url-quotes: 2
95+
zero-unit: 2
96+
single-line-per-selector: 2
97+
one-declaration-per-line: 2
98+
empty-line-between-blocks:
99+
- 2
100+
- ignore-single-line-rulesets: true
101+
102+
103+
# Missing rules
104+
# There are no sass-lint rules for the following AirBNB style items, but thess
105+
# - Put comments on their own line
106+
# - Put property delcarations before mixins
107+
108+
# Disabled rules
109+
110+
# These are other rules that we may wish to consider using in the future
111+
# They are not part of the AirBNB CSS standard but they would introduce some strictness
112+
# bem-depth: 0
113+
# variable-for-property: 0
114+
# no-transition-all: 0
115+
# hex-length:
116+
# - 1
117+
# - style: short
118+
# hex-notation:
119+
# - 1
120+
# - style: lowercase
121+
# property-units:
122+
# - 1
123+
# - global:
124+
# - ch
125+
# - em
126+
# - ex
127+
# - rem
128+
# - cm
129+
# - in
130+
# - mm
131+
# - pc
132+
# - pt
133+
# - px
134+
# - q
135+
# - vh
136+
# - vw
137+
# - vmin
138+
# - vmax
139+
# - deg
140+
# - grad
141+
# - rad
142+
# - turn
143+
# - ms
144+
# - s
145+
# - Hz
146+
# - kHz
147+
# - dpi
148+
# - dpcm
149+
# - dppx
150+
# - '%'
151+
# per-property: {}
152+
# force-attribute-nesting: 1
153+
# force-element-nesting: 1
154+
# force-pseudo-nesting: 1
155+
# function-name-format:
156+
# - 1
157+
# - allow-leading-underscore: true
158+
# convention: hyphenatedlowercase
159+
# no-color-literals: 1
160+
# no-duplicate-properties: 1
161+
# mixin-name-format:
162+
# - 1
163+
# - allow-leading-underscore: true
164+
# convention: hyphenatedlowercase
165+
# shorthand-values:
166+
# - 1
167+
# - allowed-shorthands:
168+
# - 1
169+
# - 2
170+
# - 3
171+
# leading-zero:
172+
# - 1
173+
# - include: false
174+
# no-vendor-prefixes:
175+
# - 1
176+
# - additional-identifiers: []
177+
# excluded-identifiers: []
178+
# placeholder-in-extend: 1
179+
# no-color-keywords: 2

0 commit comments

Comments
 (0)