Skip to content

Commit

Permalink
chore: add eslint for js and ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hdev14 committed Feb 10, 2024
1 parent 8692c49 commit 8142878
Show file tree
Hide file tree
Showing 58 changed files with 2,212 additions and 371 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
jest.*
global.d.ts
src/application/public/
global.d.ts
83 changes: 67 additions & 16 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,79 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"globals": {
"document": true,
"utils": true,
"Validator": true,
"grecaptcha": true
},
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
"rules": {
"camelcase": "off",
"no-plusplus": "off",
"no-await-in-loop": "off",
"no-console": "off",
"no-continue": "off",
"no-param-reassign": "off",
"no-restricted-syntax": "off",
"class-methods-use-this": "off"
},
"overrides": [
{
"files": [
"**/*.ts"
],
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
}
}
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"import/no-unresolved": "off",
"import/named": "off",
"import/no-extraneous-dependencies": "off",
"import/no-duplicates": "off",
"import/extensions": "off",
"import/order": "off",
"import/no-self-import": "off",
"import/no-cycle": "off",
"import/no-relative-packages": "off",
"no-underscore-dangle": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-useless-path-segments": "off",
"no-useless-constructor": "off",
"no-empty-function": "off",
"semi": "off",
"no-shadow": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
},
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
]
}
Loading

0 comments on commit 8142878

Please sign in to comment.