Skip to content

Commit 27f2f4a

Browse files
committed
Merge branch 'v4.3.0' of https://github.com/coreui/coreui into v4.6.0
2 parents 9775d05 + 5f53826 commit 27f2f4a

File tree

265 files changed

+7024
-4701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+7024
-4701
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
**/vendor/
44
/_gh_pages/
55
/js/coverage/
6-
/js/tests/integration/
76
/docs/content/_index.html
87
/docs/static/sw.js
98
/docs/layouts/

.eslintrc.json

Lines changed: 154 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,35 @@
1414
"error",
1515
"never"
1616
],
17+
"import/extensions": [
18+
"error",
19+
"ignorePackages",
20+
{
21+
"js": "always"
22+
}
23+
],
24+
"import/first": "error",
25+
"import/newline-after-import": "error",
26+
"import/no-absolute-path": "error",
27+
"import/no-amd": "error",
28+
"import/no-cycle": [
29+
"error",
30+
{
31+
"ignoreExternal": true
32+
}
33+
],
34+
"import/no-duplicates": "error",
35+
"import/no-extraneous-dependencies": "error",
36+
"import/no-mutable-exports": "error",
37+
"import/no-named-as-default": "error",
38+
"import/no-named-as-default-member": "error",
39+
"import/no-named-default": "error",
40+
"import/no-self-import": "error",
41+
"import/no-unassigned-import": [
42+
"error"
43+
],
44+
"import/no-useless-path-segments": "error",
45+
"import/order": "error",
1746
"indent": [
1847
"error",
1948
2,
@@ -51,17 +80,141 @@
5180
"error",
5281
"never"
5382
],
83+
"strict": "error",
5484
"unicorn/explicit-length-check": "off",
85+
"unicorn/filename-case": "off",
5586
"unicorn/no-array-callback-reference": "off",
5687
"unicorn/no-array-method-this-argument": "off",
5788
"unicorn/no-null": "off",
5889
"unicorn/no-typeof-undefined": "off",
5990
"unicorn/no-unused-properties": "error",
91+
"unicorn/numeric-separators-style": "off",
6092
"unicorn/prefer-array-flat": "off",
93+
"unicorn/prefer-at": "off",
6194
"unicorn/prefer-dom-node-dataset": "off",
6295
"unicorn/prefer-module": "off",
6396
"unicorn/prefer-query-selector": "off",
6497
"unicorn/prefer-spread": "off",
98+
"unicorn/prefer-string-replace-all": "off",
6599
"unicorn/prevent-abbreviations": "off"
66-
}
100+
},
101+
"overrides": [
102+
{
103+
"files": [
104+
"build/**"
105+
],
106+
"env": {
107+
"browser": false,
108+
"node": true
109+
},
110+
"parserOptions": {
111+
"sourceType": "script"
112+
},
113+
"rules": {
114+
"no-console": "off",
115+
"unicorn/prefer-top-level-await": "off"
116+
}
117+
},
118+
{
119+
"files": [
120+
"js/**"
121+
],
122+
"parserOptions": {
123+
"sourceType": "module"
124+
}
125+
},
126+
{
127+
"files": [
128+
"js/tests/*.js",
129+
"js/tests/integration/rollup*.js"
130+
],
131+
"env": {
132+
"node": true
133+
},
134+
"parserOptions": {
135+
"sourceType": "script"
136+
}
137+
},
138+
{
139+
"files": [
140+
"js/tests/unit/**"
141+
],
142+
"env": {
143+
"jasmine": true
144+
},
145+
"rules": {
146+
"no-console": "off",
147+
"unicorn/consistent-function-scoping": "off",
148+
"unicorn/no-useless-undefined": "off",
149+
"unicorn/prefer-add-event-listener": "off"
150+
}
151+
},
152+
{
153+
"files": [
154+
"js/tests/visual/**"
155+
],
156+
"plugins": [
157+
"html"
158+
],
159+
"settings": {
160+
"html/html-extensions": [
161+
".html"
162+
]
163+
},
164+
"rules": {
165+
"no-console": "off",
166+
"no-new": "off",
167+
"unicorn/no-array-for-each": "off"
168+
}
169+
},
170+
{
171+
"files": [
172+
"scss/tests/**"
173+
],
174+
"env": {
175+
"node": true
176+
},
177+
"parserOptions": {
178+
"sourceType": "script"
179+
}
180+
},
181+
{
182+
"files": [
183+
"docs/**"
184+
],
185+
"env": {
186+
"browser": true,
187+
"node": false
188+
},
189+
"parserOptions": {
190+
"sourceType": "script",
191+
"ecmaVersion": 2019
192+
},
193+
"rules": {
194+
"no-new": "off",
195+
"unicorn/no-array-for-each": "off"
196+
}
197+
},
198+
{
199+
"files": [
200+
"**/*.md"
201+
],
202+
"plugins": [
203+
"markdown"
204+
],
205+
"processor": "markdown/markdown"
206+
},
207+
{
208+
"files": [
209+
"**/*.md/*.js"
210+
],
211+
"extends": "plugin:markdown/recommended",
212+
"parserOptions": {
213+
"sourceType": "module"
214+
},
215+
"rules": {
216+
"unicorn/prefer-node-protocol": "off"
217+
}
218+
}
219+
]
67220
}

.stylelintrc

Lines changed: 47 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,59 @@
22
"extends": [
33
"stylelint-config-twbs-bootstrap"
44
],
5-
"rules": {
6-
"declaration-property-value-disallowed-list": {
7-
"border": "none",
8-
"outline": "none"
9-
},
10-
"function-disallowed-list": [
11-
"calc",
12-
"lighten",
13-
"darken"
14-
],
15-
"property-disallowed-list": [
16-
"border-radius",
17-
"border-top-left-radius",
18-
"border-top-right-radius",
19-
"border-bottom-right-radius",
20-
"border-bottom-left-radius",
21-
"transition"
22-
],
23-
"scss/dollar-variable-default": [
24-
true,
25-
{
26-
"ignore": "local"
27-
}
28-
],
29-
"scss/selector-no-union-class-name": true
30-
},
5+
"reportInvalidScopeDisables": true,
6+
"reportNeedlessDisables": true,
317
"overrides": [
8+
{
9+
"files": "**/*.scss",
10+
"rules": {
11+
"declaration-property-value-disallowed-list": {
12+
"border": "none",
13+
"outline": "none"
14+
},
15+
"function-disallowed-list": [
16+
"calc",
17+
"lighten",
18+
"darken"
19+
],
20+
"property-disallowed-list": [
21+
"border-radius",
22+
"border-top-left-radius",
23+
"border-top-right-radius",
24+
"border-bottom-right-radius",
25+
"border-bottom-left-radius",
26+
"transition"
27+
],
28+
"scss/dollar-variable-default": [
29+
true,
30+
{
31+
"ignore": "local"
32+
}
33+
],
34+
"scss/selector-no-union-class-name": true
35+
}
36+
},
3237
{
3338
"files": "scss/**/*.{test,spec}.scss",
3439
"rules": {
3540
"scss/dollar-variable-default": null,
3641
"declaration-no-important": null
3742
}
43+
},
44+
{
45+
"files": "docs/**/*.scss",
46+
"rules": {
47+
"scss/dollar-variable-default": null
48+
}
49+
},
50+
{
51+
"files": "docs/**/examples/**/*.css",
52+
"rules": {
53+
"comment-empty-line-before": null,
54+
"property-no-vendor-prefix": null,
55+
"selector-no-qualifying-type": null,
56+
"value-no-vendor-prefix": null
57+
}
3858
}
3959
]
40-
}
60+
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Copyright (c) 2022 creativeLabs Łukasz Holeczek
1+
Copyright (c) 2023 creativeLabs Łukasz Holeczek
22

33
This is commercial software. To use it, you have to own a commercial license.

build/.eslintrc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

build/banner.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
'use strict'
22

33
const pkg = require('../package.json')
4+
45
const year = new Date().getFullYear()
56

67
function getBanner(pluginFilename) {
78
return `/*!
89
* CoreUI${pluginFilename ? ` ${pluginFilename}` : ''} v${pkg.version} (${pkg.homepage})
910
* Copyright ${year} ${pkg.author}
10-
* Licensed under MIT (${pkg.homepage})
11+
* Licensed under MIT (https://github.com/coreui/coreui/blob/main/LICENSE)
1112
*/`
1213
}
1314

build/build-plugins.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
/*!
44
* Script to build our plugins to use them separately.
5-
* Copyright 2020-2022 The Bootstrap Authors
6-
* Copyright 2020-2022 Twitter, Inc.
5+
* Copyright 2020-2023 The Bootstrap Authors
76
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
87
*/
98

0 commit comments

Comments
 (0)