mirror of
https://github.com/Nezumi-2711/typescript-training.git
synced 2026-09-22 20:02:19 +00:00
57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:node/recommended",
|
|
"prettier",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"plugins": ["@typescript-eslint", "prettier"],
|
|
"rules": {
|
|
"import/no-unresolved": "error",
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
"endOfLine": "auto",
|
|
"semi": true
|
|
}
|
|
],
|
|
"no-unused-vars": "warn",
|
|
"no-console": "off",
|
|
"func-names": "off",
|
|
"no-process-exit": "off",
|
|
"object-shorthand": "off",
|
|
"class-methods-use-this": "off",
|
|
"no-shadow": "off",
|
|
"node/no-unsupported-features/es-syntax": [
|
|
"error",
|
|
{ "ignores": ["modules"] }
|
|
],
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
"js": "never",
|
|
"mjs": "never",
|
|
"ts": "never"
|
|
}
|
|
]
|
|
},
|
|
"settings": {
|
|
"import/parsers": {
|
|
"@typescript-eslint/parser": [".ts", ".tsx"]
|
|
},
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".js", ".ts", ".json"]
|
|
}
|
|
},
|
|
"import/extensions": {
|
|
"typescript": {
|
|
"alwaysTryTypes": true // always try to resolve types under
|
|
}
|
|
}
|
|
}
|
|
}
|