Skip to content

Commit 771fc3f

Browse files
committed
Initial commit.
0 parents  commit 771fc3f

21 files changed

Lines changed: 15164 additions & 0 deletions

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
build/
3+
.eslintrc.js
4+
.prettierrc.js
5+
tailwind.config.js
6+
tsconfig.json

.eslintrc.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
module.exports = {
3+
env: {
4+
browser: true,
5+
es6: true
6+
},
7+
extends: [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:react/recommended",
11+
"plugin:react-hooks/recommended"
12+
],
13+
overrides: [
14+
{
15+
env: {
16+
node: true
17+
},
18+
files: [".eslintrc.{js,cjs}"],
19+
parserOptions: {
20+
sourceType: "script"
21+
}
22+
}
23+
],
24+
parser: "@typescript-eslint/parser",
25+
parserOptions: {
26+
ecmaVersion: "latest",
27+
sourceType: "module"
28+
},
29+
plugins: ["@typescript-eslint", "react", "react-hooks"],
30+
rules: {
31+
"@typescript-eslint/no-non-null-assertion": "off",
32+
"@typescript-eslint/no-empty-function": "off",
33+
"@typescript-eslint/no-unused-vars": [
34+
"error",
35+
{
36+
argsIgnorePattern: "^_",
37+
varsIgnorePattern: "^_",
38+
caughtErrorsIgnorePattern: "^_"
39+
}
40+
],
41+
"@typescript-eslint/explicit-function-return-type": [
42+
"error",
43+
{
44+
allowExpressions: true
45+
}
46+
],
47+
"react/prop-types": "off",
48+
curly: "error"
49+
},
50+
settings: {
51+
react: {
52+
version: "detect"
53+
}
54+
},
55+
root: true
56+
};

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
/build

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
*.json

.prettierrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import("prettier").Config} */
2+
const config = {
3+
trailingComma: "none",
4+
tabWidth: 4,
5+
semi: true,
6+
singleQuote: false,
7+
arrowParens: "avoid",
8+
plugins: [],
9+
importOrderParserPlugins: ["typescript"],
10+
};
11+
12+
module.exports = config;

.vscode/settings.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"editor.tabSize": 4,
3+
"editor.trimAutoWhitespace": true,
4+
"editor.formatOnSave": true,
5+
"files.insertFinalNewline": true,
6+
"files.trimTrailingWhitespace": true,
7+
"typescript.tsdk": "./node_modules/typescript/lib",
8+
"typescript.preferences.quoteStyle": "double",
9+
"eslint.nodePath": "./node_modules",
10+
"eslint.validate": [
11+
"javascript",
12+
"typescript"
13+
],
14+
"editor.defaultFormatter": "esbenp.prettier-vscode",
15+
"[javascript]": {
16+
"editor.defaultFormatter": "esbenp.prettier-vscode"
17+
},
18+
"[javascriptreact]": {
19+
"editor.defaultFormatter": "esbenp.prettier-vscode"
20+
},
21+
"[typescript]": {
22+
"editor.defaultFormatter": "esbenp.prettier-vscode"
23+
},
24+
"[typescriptreact]": {
25+
"editor.defaultFormatter": "esbenp.prettier-vscode"
26+
},
27+
"[yaml]": {
28+
"editor.formatOnSave": true
29+
}
30+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"Component": {
3+
"prefix": ["component"],
4+
"body": [
5+
"const $0 = React.memo(function $0(): React.JSX.Element {",
6+
"\treturn (",
7+
"\t\t<>",
8+
"\t\t</>",
9+
"\t);",
10+
"});",
11+
"",
12+
"export default $0;"
13+
],
14+
"description": "Declares a memoed React component."
15+
}
16+
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RDF Viewer
2+
3+
Just messing around

0 commit comments

Comments
 (0)