Skip to content

Commit

Permalink
added eslint to clean up the project later
Browse files Browse the repository at this point in the history
  • Loading branch information
singharaj-usai committed Oct 12, 2024
1 parent 803c20a commit 3408c18
Show file tree
Hide file tree
Showing 4 changed files with 1,583 additions and 22 deletions.
34 changes: 34 additions & 0 deletions .eslintignore
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"
}
}
39 changes: 39 additions & 0 deletions .eslintrc.json
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"
}
}
Loading

0 comments on commit 3408c18

Please sign in to comment.