Skip to content

Commit 4a5ae13

Browse files
Merge pull request #2 from heppokofrontend/release/2.0.0
Release/2.0.0
2 parents 645dcde + 3e01dcf commit 4a5ae13

Some content is hidden

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

44 files changed

+18392
-6516
lines changed

.babelrc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{
2-
"presets": [
3-
[
4-
"@babel/preset-env"
5-
],
6-
[
7-
"@babel/preset-typescript"
8-
]
9-
],
10-
"plugins": [
11-
]
2+
"presets": [["@babel/preset-env"], ["@babel/preset-typescript"]],
3+
"plugins": []
124
}

.codeclimate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2" # required to adjust maintainability checks
1+
version: '2' # required to adjust maintainability checks
22
exclude_patterns:
3-
- "**/*.test.ts"
4-
- "**/*.js"
3+
- '**/*.test.ts'
4+
- '**/*.js'

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist/
2+
lib/

.eslintrc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": ["google", "plugin:@typescript-eslint/recommended", "prettier"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"ecmaVersion": 12,
10+
"sourceType": "module"
11+
},
12+
"plugins": ["@typescript-eslint"],
13+
"rules": {
14+
"max-len": "off",
15+
"no-unused-vars": "off",
16+
"no-invalid-this": "off",
17+
"require-jsdoc": "off",
18+
"valid-jsdoc": [
19+
"error",
20+
{
21+
"requireReturn": false,
22+
"requireParamType": false,
23+
"requireReturnType": false
24+
}
25+
],
26+
"lines-between-class-members": ["error", "always"]
27+
},
28+
"overrides": [
29+
{
30+
"files": ["./webpack.config.js"],
31+
"rules": {
32+
"@typescript-eslint/no-var-requires": "off"
33+
}
34+
}
35+
]
36+
}

.eslintrc.yml

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

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: test
21
on:
32
push:
43
branches:
54
- main
5+
- feature/*
6+
- release/*
67
paths:
78
- '**.ts'
89
- '**.json'
@@ -15,21 +16,20 @@ jobs:
1516
strategy:
1617
matrix:
1718
# platform: [ windows-latest, macOS-latest ]
18-
platform: [ ubuntu-latest ]
19-
node: [ '14' ]
20-
name: test/node ${{ matrix.node }}/${{ matrix.platform }}
19+
platform: [ubuntu-latest]
20+
node: ['16']
21+
name: Code check on Node.${{ matrix.node }}/${{ matrix.platform }}
2122
runs-on: ${{ matrix.platform }}
2223
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-node@v2
25-
with:
26-
node-version: '14'
27-
- run: npm ci
28-
- run: npm run eslint
29-
- run: npm test
30-
- uses: paambaati/codeclimate-action@v2.7.5
31-
env:
32-
CC_TEST_REPORTER_ID: af882de8052c9e436d8e7980bec9c61773f9a9e8cf327b27e97832bfa9628f11
33-
with:
34-
coverageLocations: |
35-
${{github.workspace}}/coverage/lcov.info:lcov
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v2
26+
with:
27+
node-version: '16'
28+
- run: npm ci
29+
- run: npm test
30+
- uses: paambaati/codeclimate-action@v2.7.5
31+
env:
32+
CC_TEST_REPORTER_ID: af882de8052c9e436d8e7980bec9c61773f9a9e8cf327b27e97832bfa9628f11
33+
with:
34+
coverageLocations: |
35+
${{github.workspace}}/coverage/lcov.info:lcov

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.13.0

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
lib/
2+
dist/
3+
node_modules/
4+
*.html

.prettierrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSameLine": false,
4+
"bracketSpacing": false,
5+
"embeddedLanguageFormatting": "auto",
6+
"htmlWhitespaceSensitivity": "css",
7+
"insertPragma": false,
8+
"jsxSingleQuote": false,
9+
"printWidth": 80,
10+
"proseWrap": "preserve",
11+
"quoteProps": "as-needed",
12+
"requirePragma": false,
13+
"semi": true,
14+
"singleQuote": true,
15+
"tabWidth": 2,
16+
"trailingComma": "es5",
17+
"useTabs": false,
18+
"vueIndentScriptAndStyle": false
19+
}

types/global.d.ts renamed to @types/global.d.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import 'react';
1+
import * as React from 'react';
22

33
declare global {
4+
export type Hoge = 'hoge' | 'piyo';
5+
46
// A type for the properties of a function component
57
namespace React {
68
interface CodeBlockHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -16,14 +18,17 @@ declare global {
1618
// A type for JSX markup
1719
namespace JSX {
1820
interface IntrinsicElements {
19-
'code-block': React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement> & {
21+
'code-block': React.DetailedHTMLProps<
22+
React.HTMLAttributes<HTMLPreElement>,
23+
HTMLPreElement
24+
> & {
2025
/** The accessible name of code block */
2126
label?: string | undefined;
2227
/** The Language name */
2328
language?: string | undefined;
2429
/** The flag to display the UI */
2530
controls?: boolean;
26-
}
31+
};
2732
}
2833
}
2934
}

0 commit comments

Comments
 (0)