Skip to content

Commit e8b181a

Browse files
committed
Initial commit
0 parents  commit e8b181a

33 files changed

+12127
-0
lines changed

.eslintrc.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended",
9+
"plugin:@typescript-eslint/recommended"
10+
],
11+
"overrides": [
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"ecmaVersion": "latest",
16+
"sourceType": "module"
17+
},
18+
"plugins": [
19+
"react",
20+
"@typescript-eslint"
21+
],
22+
"rules": {
23+
"indent": [
24+
"error",
25+
2
26+
],
27+
"linebreak-style": [
28+
"error",
29+
"unix"
30+
],
31+
"quotes": [
32+
"error",
33+
"single"
34+
],
35+
"semi": [
36+
"error",
37+
"always"
38+
],
39+
// Empty Interface Rule always shows empty props interfaces as errors,
40+
// and there seems to be no way to disable it for specially-named interfaces
41+
"@typescript-eslint/no-empty-interface": "off",
42+
// Ignoring unused variables `props`, `logic` and `styles`
43+
"@typescript-eslint/no-unused-vars": ["warn", {
44+
"varsIgnorePattern": "^(_)|(logic)|(styles)$",
45+
"argsIgnorePattern": "^(_)|(props)$",
46+
"destructuredArrayIgnorePattern": "^(_)$"
47+
}],
48+
"object-curly-spacing" : ["warn", "always"],
49+
"react/react-in-jsx-scope": "off"
50+
},
51+
"settings": {
52+
"react" : {
53+
"version": "detect"
54+
}
55+
}
56+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Atomic React Starter
2+
A simple React project starter optimized to work in WebStorm
3+
4+
## Features:
5+
- Blazing-fast hot-reload
6+
- Typescript support
7+
- Linter specially configured for my code and structure style
8+
- Testing bootstrapped
9+
- On-commit linting and testing
10+
- Router included
11+
12+
## Possible problems
13+
### IDE imports modules relative to project root, not `src` folder
14+
In WebStorm settings, go to `Editor` -> `Code Style` -> `Typescript` -> `Import`, check `Use paths relative to tsconfig.json`
15+
16+
## Technologies list:
17+
- `Vite`
18+
- `Vitest`
19+
- `ESLint`
20+
- `React Testing Library`
21+
- `SASS`
22+
- `React Router`
23+
- `Husky`
24+
- `OpenColor Palette`
25+
26+
27+
## TODO features
28+
- Zip with WebStorm template settings
29+
- Mutation testing? (`Stryker`)
30+
- One-command `Mantine` and `Tabler Icon` installation
31+
- Reference files with a script to remove them all

0 commit comments

Comments
 (0)