Skip to content

Commit 05d5844

Browse files
committed
Initial commit
0 parents  commit 05d5844

24 files changed

+20595
-0
lines changed

.babelrc

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

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_style = space
5+
indent_size = 2
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
max_line_length = 80
9+
10+
[*.md]
11+
max_line_length=off
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true

.eslintplugin.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports.rules = {
2+
'jsx-uses-vars': {
3+
create(context) {
4+
return {
5+
JSXOpeningElement(node) {
6+
if (node.name.name) {
7+
const variable = node.name.name;
8+
context.markVariableAsUsed(variable);
9+
}
10+
},
11+
};
12+
},
13+
},
14+
};

.eslintrc

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
7+
"plugin:jsx-a11y/recommended",
8+
"plugin:import/errors",
9+
"plugin:import/warnings",
10+
"plugin:import/typescript",
11+
"plugin:jest/recommended",
12+
"plugin:jest/style",
13+
"plugin:testing-library/recommended",
14+
"plugin:jest-dom/recommended",
15+
"plugin:prettier/recommended",
16+
"prettier/@typescript-eslint"
17+
],
18+
"plugins": ["local"],
19+
"parserOptions": {
20+
"sourceType": "module",
21+
"ecmaFeatures": {
22+
"impliedStrict": true,
23+
"jsx": true
24+
},
25+
"project": "./tsconfig.json"
26+
},
27+
"rules": {
28+
},
29+
"overrides": [
30+
{
31+
"files": [
32+
"**/*.tsx"
33+
],
34+
"rules": {
35+
"@typescript-eslint/explicit-function-return-type": [
36+
1,
37+
{
38+
"allowExpressions": true
39+
}
40+
],
41+
"local/jsx-uses-vars": 1
42+
}
43+
}
44+
],
45+
"settings": {
46+
"react": {
47+
"version": "detect"
48+
},
49+
"import/parsers": {
50+
"@typescript-eslint/parser": [ ".ts", ".tsx" ]
51+
},
52+
"import/resolver": {
53+
"node": {},
54+
"typescript": {}
55+
}
56+
},
57+
"env": {
58+
"es2020": true,
59+
"browser": true,
60+
"jest": true
61+
}
62+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
.cache
3+
node_modules
4+
coverage
5+
dist

.prettierrc

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

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "chrome",
9+
"request": "launch",
10+
"name": "Chromium",
11+
"url": "http://localhost:3000",
12+
"webRoot": "${workspaceFolder}"
13+
},
14+
{
15+
"type": "firefox",
16+
"request": "launch",
17+
"name": "Firefox",
18+
"url": "http://localhost:3000",
19+
"webRoot": "${workspaceFolder}"
20+
}
21+
]
22+
}

.vscode/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"eslint.validate": [
3+
"javascript",
4+
"javascriptreact",
5+
"typescript",
6+
"typescriptreact",
7+
],
8+
"editor.rulers": [
9+
100
10+
],
11+
"editor.codeActionsOnSave": {
12+
"source.fixAll.eslint": true
13+
}
14+
}

__mocks__/fileMock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = "test-file-stub";

__mocks__/styleMock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {};

jest.setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom';

0 commit comments

Comments
 (0)