Skip to content

Commit

Permalink
Merge pull request #1 from technote-space/release/v0.0.0
Browse files Browse the repository at this point in the history
feat: implement
  • Loading branch information
technote-space authored May 16, 2020
2 parents 688a6af + 2b26fbd commit ed6b678
Show file tree
Hide file tree
Showing 35 changed files with 4,739 additions and 2,434 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{*.json,*.yml}]
indent_style = space
indent_size = 2

Expand Down
297 changes: 149 additions & 148 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,150 +1,151 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"env": {
"node": true,
"jest": true,
"es6": true,
"browser": true
},
"settings": {
"react": {
"version": "latest"
}
},
"rules": {
"camelcase": [
"error",
{
"properties": "always"
}
],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}
],
"valid-jsdoc": [
"error",
{
"requireReturn": false,
"preferType": {
"String": "string",
"Object": "object",
"Number": "number",
"Function": "function",
"Void": "void"
}
}
],
"quotes": [
"error",
"single",
"avoid-escape"
],
"key-spacing": [
"error",
{
"singleLine": {
"beforeColon": false,
"afterColon": true
},
"multiLine": {
"beforeColon": false,
"afterColon": true
}
}
],
"no-magic-numbers": [
"error",
{
"ignoreArrayIndexes": true
}
],
"eqeqeq": "error",
"block-scoped-var": "error",
"complexity": [
"error",
{
"maximum": 20
}
],
"curly": "error",
"default-case": "error",
"dot-location": [
"error",
"property"
],
"guard-for-in": "error",
"no-eval": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"id-length": [
"error",
{
"min": 2,
"properties": "never",
"exceptions": [
"$"
]
}
],
"indent": [
"error",
"tab",
{
"MemberExpression": "off",
"SwitchCase": 1
}
],
"space-before-function-paren": [
"error",
"never"
],
"space-before-blocks": "error",
"prefer-const": "error",
"no-var": "error",
"arrow-body-style": "off",
"arrow-spacing": "error",
"strict": [
"error"
],
"no-warning-comments": [
"warn",
{
"terms": [
"todo",
"fixme",
"hack"
],
"location": "anywhere"
}
],
"semi": [
"error"
]
}
"env": {
"node": true,
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module",
"ecmaVersion": 2018
},
"plugins": [
"react",
"react-hooks",
"@typescript-eslint"
],
"settings": {
"react": {
"version": "latest"
}
},
"parser": "@typescript-eslint/parser",
"rules": {
"camelcase": [
"error",
{
"properties": "always"
}
],
"quotes": [
"error",
"single",
"avoid-escape"
],
"key-spacing": [
"error",
{
"singleLine": {
"beforeColon": false,
"afterColon": true
},
"multiLine": {
"beforeColon": false,
"afterColon": true
}
}
],
"no-magic-numbers": [
"error",
{
"ignoreArrayIndexes": true
}
],
"eqeqeq": "error",
"block-scoped-var": "error",
"complexity": [
"error",
{
"maximum": 20
}
],
"curly": "error",
"default-case": "error",
"dot-location": [
"error",
"property"
],
"guard-for-in": "error",
"no-eval": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"id-length": [
"error",
{
"min": 2,
"properties": "never",
"exceptions": [
"$"
]
}
],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"space-before-function-paren": [
"error",
"never"
],
"space-before-blocks": "error",
"prefer-const": "error",
"no-var": "error",
"arrow-body-style": "off",
"arrow-spacing": "error",
"strict": [
"error"
],
"no-warning-comments": [
"warn",
{
"terms": [
"todo",
"fixme",
"hack"
],
"location": "anywhere"
}
],
"semi": [
"error",
"always"
],
"@typescript-eslint/interface-name-prefix": [
"error",
{
"prefixWithI": "always"
}
],
"no-func-assign": "off",
"arrow-parens": [
"off",
"as-needed"
],
"comma-dangle": [
"error",
"always-multiline"
],
"react-hooks/rules-of-hooks": "error",
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"@typescript-eslint/no-var-requires": "off"
}
}
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# TypeScript Package Template
# GA Framework

[![npm version](https://badge.fury.io/js/%40technote-space%2Fts-package-template.svg)](https://badge.fury.io/js/%40technote-space%2Fts-package-template)
[![CI Status](https://github.com/technote-space/ts-package-template/workflows/CI/badge.svg)](https://github.com/technote-space/ts-package-template/actions)
[![codecov](https://codecov.io/gh/technote-space/ts-package-template/branch/master/graph/badge.svg)](https://codecov.io/gh/technote-space/ts-package-template)
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/ts-package-template/badge)](https://www.codefactor.io/repository/github/technote-space/ts-package-template)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/ts-package-template/blob/master/LICENSE)
[![npm version](https://badge.fury.io/js/%40technote-space%2Fga-framework.svg)](https://badge.fury.io/js/%40technote-space%2Fga-framework)
[![CI Status](https://github.com/technote-space/ga-framework/workflows/CI/badge.svg)](https://github.com/technote-space/ga-framework/actions)
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/ga-framework/badge)](https://www.codefactor.io/repository/github/technote-space/ga-framework)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/ga-framework/blob/master/LICENSE)

Template for npm package.
GA Framework

## Table of Contents

Expand Down
8 changes: 0 additions & 8 deletions __tests__/index.test.ts

This file was deleted.

31 changes: 31 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-flow',
'@babel/preset-react',
'@babel/typescript',
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-react-inline-elements',
'react-html-attrs',
'react-hot-loader/babel',
'transform-class-properties',
[
'i18next-extract', {
locales: ['ja', 'en'],
outputPath: './src/locales/{{locale}}.json',
},
],
],
ignore: ['node_modules', 'build', 'distDev', 'distProd'],
};
Loading

0 comments on commit ed6b678

Please sign in to comment.