Skip to content

Commit

Permalink
chore: add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciNyan committed Feb 23, 2023
1 parent 0e3c360 commit 1445829
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
node_modules
*.d.ts
26 changes: 26 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"rules": {
"no-inner-declarations": 0,
"no-useless-escape": 1,
"@typescript-eslint/ban-ts-comment": 1,
"@typescript-eslint/no-extra-semi": 0,
"@typescript-eslint/no-shadow": 2,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-namespace": 0,
},
"ignorePatterns": ["dist/", "node_modules"]
}

0 comments on commit 1445829

Please sign in to comment.