Skip to content

Commit

Permalink
feat: develop home layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Sep 1, 2022
1 parent 84eab07 commit 3ac15c5
Show file tree
Hide file tree
Showing 31 changed files with 4,594 additions and 532 deletions.
6 changes: 6 additions & 0 deletions .eslintignore
@@ -0,0 +1,6 @@
**/dist/**
**/node_modules/**
package.json
*.d.ts
.eslintrc.js
tsconfig.json
33 changes: 33 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,33 @@
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': 'error',
quotes: ['error', 'single'],
semi: ['error', 'always'],
'react/react-in-jsx-scope': 'off'
},
settings: {
react: {
version: 'detect'
}
}
};
2 changes: 1 addition & 1 deletion bin/island.js
@@ -1,2 +1,2 @@
#!/usr/bin/env node
import('../dist/node/cli.js');
import('../dist/node/cli');
12 changes: 10 additions & 2 deletions package.json
Expand Up @@ -8,12 +8,15 @@
"start:client": "cd src/client && tsc -w",
"start:node": "cd src/node && tsc -w",
"dev:playground": "node ./bin/island playground",
"build:playground": "node ./bin/island build playground"
"build:playground": "node ./bin/island build playground",
"lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx --quiet ./"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@mdx-js/mdx": "1",
"@mdx-js/react": "1",
"@vitejs/plugin-react": "^2.0.1",
"cac": "^6.7.12",
"esbuild": "^0.15.5",
Expand All @@ -32,10 +35,15 @@
"@types/koa-router": "^7.4.4",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"eslint": "^8.23.0",
"eslint-plugin-react": "^7.31.1",
"ora": "^6.1.2",
"rollup": "^2.78.1",
"sass": "^1.54.5",
"tsx": "^3.8.2",
"typescript": "^4.7.4"
"typescript": "^4.7.4",
"vite-plugin-mdx": "^3.5.10"
}
}
5 changes: 5 additions & 0 deletions playground/src/1.md
@@ -1,3 +1,8 @@
# 鏂囩珷 1

杩欐槸鏂囩珷 1

```ts
const a = 1;
console.log(a);
```

0 comments on commit 3ac15c5

Please sign in to comment.