Files
account-sdk/.eslintrc.js
cb-jakeandGitHub b593cf6620 create top level tsconfig.base.json (#935)
* 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
2023-07-14 15:10:00 -06:00

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",
},
};