Skip to content

Commit 1f907ea

Browse files
committed
Adding ESLint w/ minimal config
1 parent 1089853 commit 1f907ea

File tree

4 files changed

+3186
-249
lines changed

4 files changed

+3186
-249
lines changed

.eslintrc.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"overrides": [
7+
],
8+
"parser": "@typescript-eslint/parser",
9+
"parserOptions": {
10+
"ecmaVersion": "latest"
11+
},
12+
"plugins": [
13+
"@typescript-eslint"
14+
],
15+
"rules": {
16+
"semi": ["error", "always"],
17+
"quotes": ["error", "double"]
18+
}
19+
}

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
```
55
sudo npm install -g webpack webpack-cli typescript-formatter
66
npm install
7+
npm init @eslint/config
78
export NODE_OPTIONS=--openssl-legacy-provider (or 'direnv allow' on .envrc file if installed)
89
npm run start
910
```
@@ -15,9 +16,11 @@ Trouble Shooting: https://stackoverflow.com/a/69699772
1516
## Development
1617
```
1718
tsfmt -r src/<your-file>.ts
19+
./node_modules/eslint/bin/eslint.js src/<your-file>.ts
1820
npm run build
1921
git add .
2022
git commit -S -m "<my-detailed-commit-message>"
2123
git push
2224
```
2325

26+
## TODO

0 commit comments

Comments
 (0)