forked from MrBmikhael/react-native-ssh-sftp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
31 lines (31 loc) · 864 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
27
28
29
30
31
module.exports = {
parser: "@typescript-eslint/parser",
env: { es6: true },
plugins: [
"@typescript-eslint",
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
parserOptions: {
ecmaVersion: 2019,
sourceType: "module",
project: [
"./tsconfig.json",
],
},
"rules": {
"max-len": ["warn", {"code": 80}],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"no-trailing-spaces": ["error"],
"semi": ["error", "always"],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-console": ["warn"],
}
};