Skip to content

Commit 6e368ec

Browse files
authored
Merge pull request #2080 from mateuszbartosik/new-docs
Add svg icons & fix styles
2 parents fa444d6 + a4521b5 commit 6e368ec

File tree

348 files changed

+3900
-1402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

348 files changed

+3900
-1402
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.docusaurus
99
.cache-loader
1010
.idea
11+
src/typescript/iconName.ts
1112

1213
# Misc
1314
.DS_Store

docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ const config: Config = {
155155
context: "Check the latest",
156156
label: "product updates",
157157
href: "https://ravendb.net/whats-new",
158-
icon: "updates",
158+
icon: "star-filled",
159159
},
160160
{
161161
context: "Something’s not working?",
162162
label: "Check system status",
163163
href: "https://status.ravendb.net",
164-
icon: "status",
164+
icon: "server",
165165
},
166166
],
167167
},

eslint.config.js

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
const js = require("@eslint/js");
2+
const tseslint = require("@typescript-eslint/eslint-plugin");
3+
const tsparser = require("@typescript-eslint/parser");
4+
const reactPlugin = require("eslint-plugin-react");
5+
const reactHooksPlugin = require("eslint-plugin-react-hooks");
6+
7+
module.exports = [
8+
js.configs.recommended,
9+
{
10+
files: ["**/*.{ts,tsx,js,jsx}"],
11+
languageOptions: {
12+
parser: tsparser,
13+
parserOptions: {
14+
ecmaFeatures: {
15+
jsx: true,
16+
},
17+
ecmaVersion: "latest",
18+
sourceType: "module",
19+
},
20+
globals: {
21+
browser: true,
22+
es2021: true,
23+
node: true,
24+
window: "readonly",
25+
document: "readonly",
26+
navigator: "readonly",
27+
console: "readonly",
28+
require: "readonly",
29+
module: "readonly",
30+
exports: "readonly",
31+
__dirname: "readonly",
32+
__filename: "readonly",
33+
process: "readonly",
34+
Buffer: "readonly",
35+
global: "readonly",
36+
atob: "readonly",
37+
btoa: "readonly",
38+
HTMLButtonElement: "readonly",
39+
HTMLDivElement: "readonly",
40+
HTMLLIElement: "readonly",
41+
MouseEvent: "readonly",
42+
KeyboardEvent: "readonly",
43+
Node: "readonly",
44+
},
45+
},
46+
plugins: {
47+
"@typescript-eslint": tseslint,
48+
react: reactPlugin,
49+
"react-hooks": reactHooksPlugin,
50+
},
51+
rules: {
52+
"@typescript-eslint/no-unused-vars": [
53+
"error",
54+
{
55+
argsIgnorePattern: "^_",
56+
varsIgnorePattern: "^_",
57+
caughtErrorsIgnorePattern: "^_",
58+
},
59+
],
60+
"no-unused-vars": "off",
61+
62+
"no-warning-comments": [
63+
"warn",
64+
{
65+
terms: ["fixme", "xxx", "hack"],
66+
location: "anywhere",
67+
},
68+
],
69+
"spaced-comment": [
70+
"error",
71+
"always",
72+
{
73+
line: {
74+
markers: ["/"],
75+
exceptions: ["-", "+"],
76+
},
77+
block: {
78+
markers: ["!"],
79+
exceptions: ["*"],
80+
balanced: true,
81+
},
82+
},
83+
],
84+
85+
"react/prop-types": "off",
86+
"react/jsx-no-target-blank": "off",
87+
"react/react-in-jsx-scope": "off",
88+
"react-hooks/exhaustive-deps": "off",
89+
"react/jsx-curly-brace-presence": [
90+
"warn",
91+
{ props: "never", children: "never" },
92+
],
93+
94+
"@typescript-eslint/no-var-requires": "off",
95+
"@typescript-eslint/triple-slash-reference": "off",
96+
"@typescript-eslint/no-explicit-any": "off",
97+
"@typescript-eslint/prefer-namespace-keyword": "off",
98+
99+
"no-console": "warn",
100+
"no-debugger": "error",
101+
"no-alert": "warn",
102+
"no-var": "error",
103+
"prefer-const": "error",
104+
"no-duplicate-imports": "error",
105+
"no-multiple-empty-lines": ["error", { max: 2, maxEOF: 1 }],
106+
"eol-last": "error",
107+
"no-trailing-spaces": "error",
108+
curly: "warn",
109+
},
110+
settings: {
111+
react: {
112+
pragma: "React",
113+
fragment: "Fragment",
114+
version: "detect",
115+
},
116+
},
117+
},
118+
{
119+
ignores: [
120+
"node_modules/",
121+
"build/",
122+
"dist/",
123+
"static/",
124+
"versioned_docs/",
125+
"docs/",
126+
"*.config.js",
127+
"*.config.ts",
128+
],
129+
},
130+
];

0 commit comments

Comments
 (0)