You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.6 KiB
87 lines
1.6 KiB
{
|
|
"settings": {
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [
|
|
".js",
|
|
".jsx",
|
|
".ts",
|
|
".tsx"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"env": {
|
|
"commonjs": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"plugins": [
|
|
"prefer-arrow-functions"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"project": [
|
|
"./tsconfig.eslint.json"
|
|
]
|
|
},
|
|
"rules": {
|
|
"func-style": [
|
|
"error",
|
|
"expression"
|
|
],
|
|
"prefer-arrow-functions/prefer-arrow-functions": [
|
|
"warn",
|
|
{
|
|
"classPropertiesAllowed": false,
|
|
"disallowPrototype": false,
|
|
"returnStyle": "unchanged",
|
|
"singleReturnOnly": false
|
|
}
|
|
],
|
|
"require-await":["error"],
|
|
"global-require": 0,
|
|
"no-void": 0,
|
|
"@typescript-eslint/no-floating-promises": [
|
|
"error"
|
|
],
|
|
"@typescript-eslint/no-var-requires": 0,
|
|
"class-methods-use-this": 0,
|
|
"no-case-declarations": 0,
|
|
"camelcase": 0,
|
|
"jsx-a11y/click-events-have-key-events": 0,
|
|
"no-underscore-dangle": [
|
|
"error",
|
|
{
|
|
"allow": [
|
|
"_id"
|
|
]
|
|
}
|
|
],
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 120
|
|
}
|
|
],
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
"js": "never",
|
|
"jsx": "never",
|
|
"ts": "never",
|
|
"tsx": "never"
|
|
}
|
|
]
|
|
}
|
|
} |