Skip to content

Commit 6d16a8b

Browse files
authored
Guardrails for JavaScript / TypeScript
just setting up my grdrls
2 parents fef9b2d + 7f0a4a4 commit 6d16a8b

File tree

126 files changed

+19031
-162
lines changed

Some content is hidden

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

126 files changed

+19031
-162
lines changed

.eslintrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'eslint:recommended',
5+
],
6+
plugins: ['@typescript-eslint'],
7+
env: {
8+
node: true,
9+
es2020: true,
10+
},
11+
parserOptions: {
12+
ecmaVersion: 2020,
13+
sourceType: 'module',
14+
},
15+
rules: {
16+
'@typescript-eslint/no-unused-vars': 'warn',
17+
'@typescript-eslint/explicit-function-return-type': 'off',
18+
'@typescript-eslint/explicit-module-boundary-types': 'off',
19+
'@typescript-eslint/no-explicit-any': 'warn',
20+
},
21+
};

.gitignore

Lines changed: 81 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,96 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
56

6-
# C extensions
7-
*.so
8-
9-
# Distribution / packaging
10-
.Python
11-
build/
12-
develop-eggs/
7+
# Build outputs
138
dist/
14-
downloads/
15-
eggs/
16-
.eggs/
17-
lib/
18-
lib64/
19-
parts/
20-
sdist/
21-
var/
22-
wheels/
23-
pip-wheel-metadata/
24-
share/python-wheels/
25-
*.egg-info/
26-
.installed.cfg
27-
*.egg
28-
MANIFEST
29-
30-
# PyInstaller
31-
# Usually these files are written by a python script from a template
32-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33-
*.manifest
34-
*.spec
35-
36-
# Installer logs
37-
pip-log.txt
38-
pip-delete-this-directory.txt
39-
40-
# Unit test / coverage reports
41-
htmlcov/
42-
.tox/
43-
.nox/
44-
.coverage
45-
.coverage.*
46-
.cache
47-
nosetests.xml
48-
coverage.xml
49-
*.cover
50-
*.py,cover
51-
.hypothesis/
52-
.pytest_cache/
53-
54-
# Translations
55-
*.mo
56-
*.pot
57-
58-
# Django stuff:
9+
build/
10+
*.tsbuildinfo
11+
12+
# Environment variables
13+
**/.env*
14+
.env
15+
16+
# IDE and editor files
17+
.vscode/
18+
.idea/
19+
*.swp
20+
*.swo
21+
*~
22+
23+
# OS generated files
24+
.DS_Store
25+
.DS_Store?
26+
._*
27+
.Spotlight-V100
28+
.Trashes
29+
ehthumbs.db
30+
Thumbs.db
31+
32+
# Logs
33+
logs
5934
*.log
60-
local_settings.py
61-
db.sqlite3
62-
db.sqlite3-journal
6335

64-
# Flask stuff:
65-
instance/
66-
.webassets-cache
36+
# Coverage directory used by tools like istanbul
37+
coverage/
38+
*.lcov
39+
40+
# nyc test coverage
41+
.nyc_output
6742

68-
# Scrapy stuff:
69-
.scrapy
43+
# Dependency directories
44+
jspm_packages/
7045

71-
# Sphinx documentation
72-
docs/_build/
46+
# Optional npm cache directory
47+
.npm
7348

74-
# PyBuilder
75-
target/
49+
# Optional eslint cache
50+
.eslintcache
7651

77-
# Jupyter Notebook
78-
.ipynb_checkpoints
52+
# Microbundle cache
53+
.rpt2_cache/
54+
.rts2_cache_cjs/
55+
.rts2_cache_es/
56+
.rts2_cache_umd/
7957

80-
# IPython
81-
profile_default/
82-
ipython_config.py
58+
# Optional REPL history
59+
.node_repl_history
8360

84-
# pyenv
85-
.python-version
61+
# Output of 'npm pack'
62+
*.tgz
8663

87-
# pipenv
88-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91-
# install all needed dependencies.
92-
#Pipfile.lock
64+
# Yarn Integrity file
65+
.yarn-integrity
9366

94-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95-
__pypackages__/
67+
# parcel-bundler cache (https://parceljs.org/)
68+
.cache
69+
.parcel-cache
9670

97-
# Celery stuff
98-
celerybeat-schedule
99-
celerybeat.pid
71+
# next.js build output
72+
.next
10073

101-
# SageMath parsed files
102-
*.sage.py
74+
# nuxt.js build output
75+
.nuxt
10376

104-
# Environments
105-
.env
106-
.venv
107-
env/
108-
venv/
109-
ENV/
110-
env.bak/
111-
venv.bak/
112-
113-
# Spyder project settings
114-
.spyderproject
115-
.spyproject
116-
117-
# Rope project settings
118-
.ropeproject
119-
120-
# mkdocs documentation
121-
/site
122-
123-
# mypy
124-
.mypy_cache/
125-
.dmypy.json
126-
dmypy.json
127-
128-
# Pyre type checker
129-
.pyre/
77+
# vuepress build output
78+
.vuepress/dist
79+
80+
# Serverless directories
81+
.serverless
82+
83+
# FuseBox cache
84+
.fusebox/
85+
86+
# DynamoDB Local files
87+
.dynamodb/
88+
89+
# TernJS port file
90+
.tern-port
91+
92+
# Stores VSCode versions used for testing VSCode extensions
93+
.vscode-test
94+
95+
# Test data and sample files
96+
sample_eval_data/

.pre-commit-config.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"bracketSpacing": true,
9+
"arrowParens": "avoid"
10+
}

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.PHONY: install
2+
install:
3+
npm install
4+
5+
.PHONY: format
6+
format:
7+
npm run format
8+
9+
.PHONY: lint
10+
lint:
11+
npm run lint
12+
13+
.PHONY: test
14+
test:
15+
npm test
16+
17+
.PHONY: build
18+
build:
19+
npm run build
20+
21+
.PHONY: build-docs
22+
build-docs:
23+
npm run docs:build
24+
25+
.PHONY: serve-docs
26+
serve-docs:
27+
npm run docs:serve

0 commit comments

Comments
 (0)