Skip to content

Commit 2f5f4d9

Browse files
committed
Initial commit
- project skeleton - storybook - add LEDElement
0 parents  commit 2f5f4d9

File tree

12 files changed

+13068
-0
lines changed

12 files changed

+13068
-0
lines changed

.eslintrc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"ecmaVersion": 2018,
5+
"sourceType": "module"
6+
},
7+
"plugins": ["@typescript-eslint", "prettier", "json"],
8+
"env": {
9+
"browser": true,
10+
"es6": true,
11+
"node": true
12+
},
13+
"extends": [
14+
"eslint:recommended",
15+
"plugin:@typescript-eslint/recommended",
16+
"prettier/@typescript-eslint",
17+
"plugin:prettier/recommended"
18+
],
19+
"rules": {
20+
"prettier/prettier": "error",
21+
"@typescript-eslint/explicit-function-return-type": 0
22+
}
23+
}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.cache
2+
node_modules
3+
dist
4+
build
5+
*.log
6+
storybook-static

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"printWidth": 100,
5+
"singleQuote": true
6+
}

.storybook/addons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@storybook/addon-knobs/register';

.storybook/config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { configure } from '@storybook/polymer';
2+
3+
// automatically import all files ending in *.stories.ts
4+
configure(require.context('../src', true, /\.stories\.ts$/), module);

.storybook/webpack.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = ({ config }) => {
2+
config.module.rules.push({
3+
test: /\.(ts|tsx)$/,
4+
use: [
5+
{
6+
loader: require.resolve('awesome-typescript-loader')
7+
}
8+
]
9+
});
10+
config.resolve.extensions.push('.ts', '.tsx');
11+
return config;
12+
};

0 commit comments

Comments
 (0)