Skip to content

Commit a7d066a

Browse files
committed
config update
2 parents 00d3829 + 90558ea commit a7d066a

File tree

12 files changed

+690
-225
lines changed

12 files changed

+690
-225
lines changed

.eslintrc.json

+11-6
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@
4343
},
4444
"reportUnusedDisableDirectives": true,
4545
"rules": {
46+
"@typescript-eslint/interface-name-prefix": 0,
47+
"@typescript-eslint/no-use-before-define": 1,
48+
4649
"class-methods-use-this": 1,
47-
"func-names": "off",
50+
// "func-names": 0,
4851
"global-require": 1,
4952
"guard-for-in": 1,
50-
"max-classes-per-file": "off",
53+
"max-classes-per-file": 0,
5154
"no-array-constructor": 1,
5255
"no-continue": 1,
5356
"no-nested-ternary": 1,
@@ -73,10 +76,10 @@
7376
"no-return-assign": 1,
7477
"no-underscore-dangle": 1,
7578
"no-unreachable": 1,
76-
"no-unused-vars": 1,
77-
"no-use-before-define": 1,
79+
"no-unused-vars": 0,
80+
"no-use-before-define": 0,
7881
"prefer-destructuring": 1,
79-
"prefer-object-spread": 0,
82+
// "prefer-object-spread": 0,
8083
"prefer-rest-params": 1,
8184
"prefer-spread": 1,
8285
"strict": 0,
@@ -86,7 +89,9 @@
8689
// eslint-plugin-es - https://mysticatea.github.io/eslint-plugin-es/
8790

8891
// eslint-plugin-import rules - https://github.com/benmosher/eslint-plugin-import/blob/master/README.md
92+
"import/extensions": ["error", { "ts": "never" }],
8993
"import/no-dynamic-require": 1,
94+
"import/no-extraneous-dependencies": 0,
9095
"import/prefer-default-export": 0,
9196

9297
// eslint-plugin-jest - https://github.com/jest-community/eslint-plugin-jest/blob/master/README.md
@@ -103,10 +108,10 @@
103108
// eslint-plugin-jsdoc - https://github.com/gajus/eslint-plugin-jsdoc/blob/master/README.md
104109

105110
// eslint-plugin-node - https://github.com/mysticatea/eslint-plugin-node
111+
"node/no-extraneous-import": ["error", { "allowModules": ["ts-essentials"] }],
106112
"node/no-unpublished-require": 1,
107113
"node/no-unsupported-features/es-syntax": 0,
108114
"node/no-deprecated-api": 1,
109-
110115
"prettier/prettier": "error"
111116
}
112117
}

.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: node_js
22
node_js:
3-
- "8"
4-
- "10"
5-
- "12"
3+
- '10'
4+
- '12'
65
script:
76
- npm run ci

0 commit comments

Comments
 (0)