forked from Stun3R/strapi-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
26 lines (26 loc) · 810 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
parserOptions: {
project: "./tsconfig.json",
ecmaVersion: 2018,
sourceType: "module",
},
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-this-alias": [
"error",
{
allowDestructuring: true, // Allow `const { props, state } = this`; false by default
allowedNames: ["self"], // Allow `const self = this`; `[]` by default
},
],
},
};