-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added eslint to clean up the project later
- Loading branch information
1 parent
803c20a
commit 3408c18
Showing
4 changed files
with
1,583 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"no-duplicate-case": "error", | ||
"no-empty": "error", | ||
"no-extra-semi": "error", | ||
"no-func-assign": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-unreachable": "error", | ||
"curly": "error", | ||
"dot-notation": "error", | ||
"eqeqeq": "error", | ||
"no-empty-function": "error", | ||
"no-multi-spaces": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-trailing-spaces": "error", | ||
"default-case": "error", | ||
"no-fallthrough": "error", | ||
"no-unused-vars": "error", | ||
"no-use-before-define": "error", | ||
"no-redeclare": "error", | ||
"brace-style": "error", | ||
"indent": ["error", 2], | ||
"quotes": ["error", "single"], | ||
"semi": ["error", "always"], | ||
"radix": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"node": true, | ||
"es2021": true, | ||
"es6": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 2021 | ||
}, | ||
"rules": { | ||
"no-duplicate-case": "error", | ||
"no-empty": "error", | ||
"no-extra-semi": "error", | ||
"no-func-assign": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-unreachable": "error", | ||
"curly": "error", | ||
"dot-notation": "error", | ||
"eqeqeq": "error", | ||
"no-empty-function": "error", | ||
"no-multi-spaces": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-trailing-spaces": "error", | ||
"default-case": "error", | ||
"no-fallthrough": "error", | ||
"no-unused-vars": "error", | ||
"no-use-before-define": "error", | ||
"no-redeclare": "error", | ||
"brace-style": "error", | ||
"indent": ["error", 2], | ||
"quotes": ["error", "single"], | ||
"semi": ["error", "always"], | ||
"radix": "off" | ||
} | ||
} |
Oops, something went wrong.