Skip to content

Commit

Permalink
Merge branch 'develop' into imasyuko-patch-60
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow authored Sep 10, 2024
2 parents bbed8b1 + 067f0ee commit 8a346a1
Show file tree
Hide file tree
Showing 26 changed files with 779 additions and 366 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

73 changes: 0 additions & 73 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint -e
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run eslint
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run eslint
npm run update-icons

Expand Down
80 changes: 80 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import js from "@eslint/js";
import globals from "globals";

export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2018,
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
...globals.es6
}
}
},
{
rules: {
"no-unexpected-multiline": "error",
"block-scoped-var": "error",
"complexity": [ 1, 15 ],
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"dot-location": ["error", "property"],
"eqeqeq": ["error", "smart"],
"no-alert": "error",
"no-caller": "error",
"no-console": "error",
"no-else-return": "error",
"no-eval": "error",
"no-implied-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implicit-coercion": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-native-reassign": "error",
"no-new": "error",
"no-param-reassign": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-useless-call": "error",
"array-bracket-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": "error",
"comma-style": "error",
"consistent-this": ["error", "that"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"jsx-quotes": "error",
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"max-params": ["error", 4],
"no-multiple-empty-lines": ["error", {"max": 2}],
"no-nested-ternary": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"semi": [ "error", "always" ],
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-infix-ops": ["error", {"int32Hint": false} ],
"arrow-body-style": "error",
"no-confusing-arrow": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"no-var": "error",
"yoda": ["error", "never", { "exceptRange": true }]
}
},
{
ignores: ["**/node_modules", "**/dist"]
}
];
Loading

0 comments on commit 8a346a1

Please sign in to comment.