Skip to content

Commit

Permalink
add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka authored and ameshkov committed Nov 30, 2023
1 parent 5e6ee5c commit 55c0c50
Show file tree
Hide file tree
Showing 11 changed files with 1,639 additions and 230 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
filters/general_js_api.js
platforms/
72 changes: 72 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"env": {
"node": true
},
"extends": "airbnb-base",
"rules": {
"import/no-extraneous-dependencies": 0,
"max-len": [
"error",
{
"code": 120,
"comments": 120,
"tabWidth": 4,
"ignoreUrls": true,
"ignoreTrailingComments": false,
"ignoreComments": false
}
],
"indent": [
"error",
4
],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always",
"functions": "never"
}
],
"no-useless-escape": "off",
"no-param-reassign": "off",
"wrap-iife": "off",
"func-names": "off",
"no-shadow": "off",
"arrow-body-style": 0,
"no-multi-spaces": [
"error",
{
"ignoreEOLComments": true
}
],
// Prefer destructuring from arrays and objects
// https://eslint.org/docs/rules/prefer-destructuring
"prefer-destructuring": [
"error",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": false
}
},
{
"enforceForRenamedProperties": false
}
],
"consistent-return": "off",
"no-prototype-builtins": "off",
"dot-notation": "off",
"quote-props": "off",
"no-continue": "off",
"strict": "off",
"no-bitwise": "off",
"no-underscore-dangle": "off"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
.idea
.vscode
.eslintcache
node_modules
platforms
log.txt
Expand Down
Loading

0 comments on commit 55c0c50

Please sign in to comment.