Skip to content

Commit 97a3efd

Browse files
authored
lint fix (#79)
* ci: add ci yml * ci: fix check-types * ci: lint config * ci: lint fix * feat: log version * ci: check more node versions
1 parent 06ce3ce commit 97a3efd

File tree

174 files changed

+11387
-8363
lines changed

Some content is hidden

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

174 files changed

+11387
-8363
lines changed

.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ app/web/store
1313
plugins/
1414
app/web/asset/
1515
app/view/
16-
test.js
16+
test.js
17+
18+
config/manifest.json

.eslintrc

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

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
extends: [require.resolve('ko-lint-config/.eslintrc')],
3+
rules: {
4+
'no-param-reassign': 0,
5+
'prefer-rest-params': 0,
6+
'no-octal-escape': 0,
7+
'new-cap': 0,
8+
'no-new': 0,
9+
'react/no-unescaped-entities': 0,
10+
'no-control-regex': 0,
11+
},
12+
};

.github/workflows/CI.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
setup:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version: [14.x, 16.x]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Install dependencies
28+
run: yarn
29+
30+
- name: Run Prettier
31+
run: yarn prettier
32+
33+
- name: Run Eslint
34+
run: yarn eslint
35+
36+
- name: Run Stylelint
37+
run: yarn stylelint
38+
39+
- name: Run check-types
40+
run: yarn check-types
41+
42+
- name: Run build
43+
run: yarn build

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.vscode
21
node_modules
32
config/manifest.json
43
run
@@ -7,4 +6,4 @@ cache
76
.history
87
public
98
resources
10-
app/view
9+
app/view

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Please Checkout And Make Sure Patterns Isn't Exist In .gitignore File First
2+
*.md
3+
**/iconfont*/*
4+
*.yml
5+
app/view/
6+
public
7+
8+
config/manifest.json

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const prettier = require('ko-lint-config/.prettierrc');
2+
3+
module.exports = {
4+
...prettier,
5+
};

.stylelintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Please Checkout And Make Sure Patterns Isn't Exist In .gitignore File First
2+
3+
**/iconfont*/*
4+
app/view/
5+
public

.stylelintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
extends: ['ko-lint-config/.stylelintrc'],
3+
rules: {
4+
'value-no-vendor-prefix': null,
5+
},
6+
};

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"cSpell.words": ["SUBSCRIPTIONSENDTYPE", "SUBSCRIPTIONSENDTYPECN", "SUBSCRIPTIONSTATUS"]
4+
}

0 commit comments

Comments
 (0)