mirror of
https://github.com/hanzoai/account-sdk.git
synced 2026-10-30 14:46:02 +00:00
* create top level base tsconfig * clean up scripts & update license * conver to yarn 3 * move check commad to root * update eslint to match ts pattern * fix ci * update readme * check why install fails * lint and fix script * udpate yarnrc.yml * add immutable flag * update directorys * revert changes
71 lines
1.5 KiB
JavaScript
71 lines
1.5 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
commonjs: true,
|
|
},
|
|
plugins: [
|
|
"@typescript-eslint",
|
|
"simple-import-sort",
|
|
"unused-imports",
|
|
"prettier",
|
|
],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:prettier/recommended",
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"simple-import-sort/imports": [
|
|
"error",
|
|
{
|
|
groups: [["^\\u0000"], ["^@?\\w"], ["^src(/.*|$)"]],
|
|
},
|
|
],
|
|
"simple-import-sort/exports": "error",
|
|
"no-unused-vars": "off",
|
|
"unused-imports/no-unused-imports": "error",
|
|
"unused-imports/no-unused-vars": [
|
|
"error",
|
|
{
|
|
vars: "all",
|
|
varsIgnorePattern: "^_",
|
|
args: "after-used",
|
|
argsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
allow: ["warn", "error", "info"],
|
|
},
|
|
],
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
arrowParens: "always",
|
|
bracketSpacing: true,
|
|
endOfLine: "lf",
|
|
htmlWhitespaceSensitivity: "css",
|
|
printWidth: 100,
|
|
quoteProps: "as-needed",
|
|
semi: true,
|
|
singleQuote: true,
|
|
tabWidth: 2,
|
|
trailingComma: "es5",
|
|
useTabs: false,
|
|
},
|
|
],
|
|
// TODO: change this back to error
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
},
|
|
};
|