Skip to content

Commit 88d0c0c

Browse files
Update some TS things
1 parent 97c1a13 commit 88d0c0c

23 files changed

Lines changed: 341 additions & 262 deletions

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request: {}
9+
10+
concurrency:
11+
group: ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
lint:
16+
name: "Lint"
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: pnpm/action-setup@v4
23+
with:
24+
version: 9
25+
- name: Install Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: 18
29+
cache: pnpm
30+
- name: Install Dependencies
31+
run: pnpm install --frozen-lockfile
32+
- name: Lint
33+
run: pnpm lint
34+
35+
test:
36+
name: "Test"
37+
runs-on: ubuntu-latest
38+
timeout-minutes: 10
39+
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: pnpm/action-setup@v4
43+
with:
44+
version: 9
45+
- name: Install Node
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: 18
49+
cache: pnpm
50+
- name: Install Dependencies
51+
run: pnpm install --frozen-lockfile
52+
- name: Run Tests
53+
run: pnpm test

.stylelintrc.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
'use strict';
22

33
module.exports = {
4-
extends: ['stylelint-config-standard-scss', 'stylelint-prettier/recommended'],
5-
rules: {
6-
'scss/at-rule-no-unknown': [
7-
true,
8-
{
9-
ignoreAtRules: ['tailwind'],
10-
},
11-
],
12-
},
4+
extends: ['stylelint-config-standard-scss'],
5+
rules: { 'scss/at-rule-no-unknown': [true, { ignoreAtRules: ['tailwind'] }] },
136
};

.template-lintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
module.exports = {
44
extends: ['recommended'],
55
rules: {
6+
'no-at-ember-render-modifiers': false,
7+
'no-builtin-form-components': false,
68
'no-curly-component-invocation': {
79
allow: ['svg-jar', '-with-dynamic-vars'],
810
},

app/config/environment.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
export default config;
2-
31
/**
42
* Type declarations for
5-
* import config from 'my-app/config/environment'
3+
* import config from 'swach/config/environment'
64
*/
75
declare const config: {
86
environment: string;
97
modulePrefix: string;
108
podModulePrefix: string;
11-
locationType: string;
9+
locationType: 'history' | 'hash' | 'none';
1210
rootURL: string;
1311
APP: Record<string, unknown>;
1412
SCHEMA_VERSION: number;
1513
};
14+
15+
export default config;

app/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta charset="utf-8" />
4+
<meta charset="utf-8">
55
<title>Swach</title>
6-
<meta name="description" content="" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="description" content="">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
88

99
{{content-for "head"}}
1010

11-
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css" />
12-
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/swach.css" />
11+
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
12+
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/swach.css">
1313

1414
{{content-for "head-footer"}}
1515
</head>

app/routes/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type Transition from '@ember/routing/-private/transition';
1+
import type Transition from '@ember/routing/transition';;
22
import Route from '@ember/routing/route';
33
import { service } from '@ember/service';
44

app/routes/contrast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type Transition from '@ember/routing/-private/transition';
1+
import type Transition from '@ember/routing/transition';;
22
import Route from '@ember/routing/route';
33
import { service } from '@ember/service';
44

app/routes/kuler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type Transition from '@ember/routing/-private/transition';
1+
import type Transition from '@ember/routing/transition';;
22
import Route from '@ember/routing/route';
33
import { service } from '@ember/service';
44

app/routes/palettes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type Transition from '@ember/routing/-private/transition';
1+
import type Transition from '@ember/routing/transition';;
22
import Route from '@ember/routing/route';
33
import { service } from '@ember/service';
44

0 commit comments

Comments
 (0)