Skip to content

Commit

Permalink
fix: added eslint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Oct 12, 2021
1 parent e050ca8 commit 24bec8a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docs/*
scripts/*
38 changes: 38 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"env": {
"node": true,
"mocha": true,
"commonjs": true
},
"plugins": ["prettier", "simple-import-sort", "eslint-plugin-import"],
"extends": [
"airbnb-base",
"prettier"
],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"simple-import-sort/imports": "error",
"no-underscore-dangle": "off",
"camelcase":"off",
"no-unused-vars":"warn",
"func-names": "off",
"no-param-reassign": "warn",
"consistent-return":"warn",
"no-restricted-syntax":"warn",
"global-require":"off",
"radix":"off",
"no-await-in-loop":"off",
"class-methods-use-this":"warn",
"no-return-await":"warn",
"no-new-wrappers": "warn",
"prefer-destructuring": "warn",
"no-shadow":"warn",
"import/order": "warn",
"no-unused-expressions": "warn",
"import/no-extraneous-dependencies": "warn" ,
"import/no-unresolved": "warn",
"no-plusplus":"warn",
"no-continue":"off" }
}

0 comments on commit 24bec8a

Please sign in to comment.