Skip to content

Commit

Permalink
config files
Browse files Browse the repository at this point in the history
  • Loading branch information
frodo821 committed Aug 20, 2020
1 parent ced889c commit 7362043
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 3 deletions.
56 changes: 56 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": ["airbnb"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"rules": {
"quotes": ["warn", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "always"],
"spaced-comment": ["warn", "always"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"id-length": ["error", { "min": 2, "exceptions": ["_", "i"] }],
"new-cap": "warn",
"eqeqeq": ["error", "always"],
"no-else-return": ["error", { "allowElseIf": false }],
"no-fallthrough": "error",
"max-len": "warn",
"camelcase": "off",
"no-plusplus": "off",
"react/no-array-index-key": "off",
"react/destructuring-assignment": "off",
"template-curly-spacing": "off",
"no-empty": "warn",
"react/jsx-props-no-spreading": "off",
"no-prototype-builtins": "off",
"react/jsx-filename-extension": "off",
"no-console": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/control-has-associated-label": "off",
"no-unused-vars": ["error", { "varsIgnorePattern": "^_|^[A-Z]*$" }],
"import/no-unresolved": "off",
"react/prop-types": "off",
"no-param-reassign": "off",
"no-throw-literal": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/self-closing-comp": "warn",
"linebreak-style": "off",
"import/extensions": "off",
"operator-linebreak": ["error", "before"],
"react-hooks/exhaustive-deps": "off"
}
}
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "always",
"overrides": [
{
"files": ["*.ts"],
"options": {
"parser": "typescript"
}
}
]
}
13 changes: 10 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ version: '3.2'
services:
builder:
container_name: nimmer-jp_website-builder
build: ./src/pubs
build:
context: ./resources
dockerfile: Dockerfile.build
volumes:
- ./docs:/app/build
- ../src:/app/src
- ../public:/app/public
restart: 'no'
devenv:
container_name: nimmer-jp_website-dev_env
build: ./src/devs
build:
context: ./resources
dockerfile: Dockerfile.dev
volumes:
- ./src/pubs/src:/app/src
- ../src:/app/src
- ../public:/app/public
restart: always
68 changes: 68 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"name": "nimmer-japan-website",
"version": "0.0.1",
"description": "a website of Nimmer Japan",
"scripts": {
"test": "jest",
"build": "webpack -p",
"start": "webpack-dev-server",
"lint": "eslint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nimmer-jp/www.nimmer.jp.git"
},
"author": "@nimmer-jp",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/nimmer-jp/www.nimmer.jp/issues"
},
"homepage": "https://github.com/nimmer-jp/www.nimmer.jp#readme",
"husky": {
"hooks": {}
},
"devDependencies": {
"@babel/core": "^7.11.1",
"@babel/preset-env": "^7.11.0",
"@types/jest": "^26.0.10",
"babel-loader": "^8.1.0",
"copy-webpack-plugin": "^6.0.3",
"css-loader": "^4.2.1",
"eslint": "^7.7.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-preact": "^1.1.1",
"html-loader": "^1.2.1",
"html-webpack-plugin": "^4.3.0",
"husky": "^4.2.5",
"jest": "^26.4.1",
"jest-preset-preact": "^4.0.2",
"mini-css-extract-plugin": "^0.10.0",
"sass": "^1.26.10",
"sass-loader": "^9.0.3",
"style-loader": "^1.2.1",
"terser-webpack-plugin": "^4.1.0",
"ts-jest": "^26.2.0",
"ts-loader": "^8.0.2",
"typescript": "^3.9.7",
"url-loader": "^4.1.0",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
},
"dependencies": {
"preact": "^10.4.7",
"preact-router": "^3.2.1"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}

0 comments on commit 7362043

Please sign in to comment.