41 lines
1,014 B
JSON
41 lines
1,014 B
JSON
{
|
|
"env": {
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"airbnb-typescript/base",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module",
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/explicit-member-accessibility": ["error"],
|
|
"import/order": ["error", {
|
|
"alphabetize": {
|
|
"order": "asc"
|
|
}
|
|
}],
|
|
"import/prefer-default-export": "warn",
|
|
"no-console": "off",
|
|
"max-len": ["off"],
|
|
"import/first": ["off"],
|
|
"max-classes-per-file": ["off"],
|
|
"@typescript-eslint/consistent-type-imports": ["error", {
|
|
"prefer": "type-imports",
|
|
"disallowTypeAnnotations": true
|
|
}],
|
|
"no-underscore-dangle": ["error", {
|
|
"allow": ["_id"]
|
|
}]
|
|
}
|
|
}
|