data-structure-typed/.eslintrc.js

63 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

2023-09-26 12:10:32 +00:00
module.exports = {
"parser": "@typescript-eslint/parser",
"plugins": [
"import",
"@typescript-eslint"
],
2023-09-25 03:16:04 +00:00
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
],
"ignorePatterns": ["lib/", "dist/", "umd/", "coverage/", "docs/"],
2023-09-25 03:16:04 +00:00
"rules": {
"import/no-anonymous-default-export": "off",
"@typescript-eslint/no-unused-vars": "warn",
2023-09-25 03:16:04 +00:00
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
2023-09-25 03:16:04 +00:00
"@typescript-eslint/no-non-null-assertion": "off",
"lines-around-comment": [
"error",
{
"beforeLineComment": false,
"beforeBlockComment": true,
"allowBlockStart": true,
"allowClassStart": true,
"allowObjectStart": true,
"allowArrayStart": true
}
],
"newline-before-return": "off",
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": [
"./tsconfig.json"
]
}
}
}
}