Skip to content

Commit 7226e21

Browse files
committed
chore(many): remove jsx praga headers; use react-jsx compiler option for jsx; fix lint
1 parent d4378e7 commit 7226e21

File tree

531 files changed

+24468
-3577
lines changed

Some content is hidden

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

531 files changed

+24468
-3577
lines changed

.gitignore

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
node_modules/
22
npm-debug.log
3-
yarn-error.log
43
lerna-debug.log
54
./build-storybook.log
65
coverage/
7-
.yarnclean
86
.babel-cache
97
__build__
108
.vscode
@@ -16,15 +14,6 @@ __build__
1614
.env.test
1715
.tmp/
1816

19-
# Local Netlify folder
20-
.netlify
21-
2217
tsconfig.build.tsbuildinfo
2318

2419
.pnp.*
25-
.yarn/*
26-
!.yarn/patches
27-
!.yarn/plugins
28-
!.yarn/releases
29-
!.yarn/sdks
30-
!.yarn/versions

commitlint.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ module.exports = {
7272
},
7373
// https://commitlint.js.org/reference/rules.html
7474
rules: {
75-
'header-max-length': [2, 'always', 150]
75+
'header-max-length': [0, 'always', 150], // 0 === rule is disabled
76+
'subject-max-length': [2, 'always', 150]
7677
},
7778

7879
// https://cz-git.qbb.sh/config/
@@ -83,9 +84,10 @@ module.exports = {
8384
defaultScope: getChangedPackages(),
8485
skipQuestions: ['footerPrefix', 'confirmCommit'],
8586
// If more than 3 packages are selected display 'many', e.g. `refactor(many): some message`
86-
formatMessageCB: ({ scope, defaultMessage }) =>
87-
scope.split(',').length > 3
87+
formatMessageCB: ({ scope, defaultMessage }) => {
88+
return scope.split(',').length > 3
8889
? defaultMessage.replace(scope, 'many')
8990
: defaultMessage
91+
}
9092
}
9193
}

cypress/component/Alerts.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24-
import React from 'react'
25-
import { Alert } from '../../packages/ui'
24+
25+
import { Alert } from '@instructure/ui'
2626

2727
import '../support/component'
2828
import 'cypress-real-events'

cypress/component/AppNav.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24-
import React from 'react'
25-
import { AppNav } from '../../packages/ui'
24+
25+
import { AppNav } from '@instructure/ui'
2626

2727
import '../support/component'
2828
import 'cypress-real-events'

cypress/component/ColorIndicator.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24-
import React from 'react'
25-
import { ColorIndicator } from '../../packages/ui'
24+
25+
import { ColorIndicator } from '@instructure/ui'
2626

2727
import '../support/component'
2828
import 'cypress-real-events'
2929

30-
import { colorToRGB, colorToHex8 } from '../../packages/ui-color-utils'
30+
import { colorToRGB, colorToHex8 } from '@instructure/ui-color-utils'
3131

3232
const colorTestCases = {
3333
'3 digit hex': '#069',

cypress/component/ColorMixer.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24-
import React from 'react'
25-
import { ColorMixer } from '../../packages/ui'
24+
25+
import { ColorMixer } from '@instructure/ui'
2626

2727
import '../support/component'
2828
import 'cypress-real-events'
2929

30-
import { colorToHex8 } from '../../packages/ui-color-utils'
30+
import { colorToHex8 } from '@instructure/ui-color-utils'
3131

3232
const testValue = {
3333
value: '#09918B'

cypress/component/ColorPicker.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24-
import React from 'react'
24+
2525
import {
2626
ColorPicker,
2727
ColorMixer,
2828
ColorPreset,
2929
ColorContrast,
3030
Button
31-
} from '../../packages/ui'
31+
} from '@instructure/ui'
3232

3333
import '../support/component'
3434
import 'cypress-real-events'
3535

36-
import { colorToRGB, color2hex } from '../../packages/ui-color-utils'
36+
import { colorToRGB, color2hex } from '@instructure/ui-color-utils'
3737

3838
const colorPreset = [
3939
'#ffffff',

cypress/component/ColorPreset.cy.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24-
import React from 'react'
25-
import { ColorPreset } from '../../packages/ui'
24+
25+
import { ColorPreset } from '@instructure/ui'
2626

2727
import '../support/component'
2828
import 'cypress-real-events'
2929

30-
import { colorToRGB } from '../../packages/ui-color-utils'
30+
import { colorToRGB } from '@instructure/ui-color-utils'
3131

3232
const testValue = {
3333
colors: [

cypress/component/DateInput.cy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24-
import React from 'react'
24+
2525
import 'cypress-real-events'
2626

2727
import '../support/component'
28-
import { DateInput, Calendar } from '../../packages/ui'
28+
import { DateInput, Calendar } from '@instructure/ui'
2929

3030
const weekdayLabels = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
3131

0 commit comments

Comments
 (0)