ts-npm-ytmusic-api/.eslintrc.json

42 lines
1.0 KiB
JSON

{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"linebreak-style": ["error", "unix"],
"no-empty": "warn",
"no-empty-function": "off",
"no-empty-pattern": "warn",
"react/react-in-jsx-scope": "off",
"simple-import-sort/imports": [
"warn",
{
"groups": [["^\\w"], ["^@\\w+"], ["^@/"], ["^\\."]]
}
]
}
}