1
0
Fork 0

fix(rules/tsconfig): flatten target-lib using data refs

This commit is contained in:
ssube 2019-11-01 08:02:32 -05:00 committed by Sean Sube
parent 2b0dc923d3
commit b3c66dc702
2 changed files with 4 additions and 45 deletions

View File

@ -15,13 +15,10 @@
],
"module": "es6",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"outDir": "../out",
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"target": "es2017",
"types": [
"jsonpath-plus",

View File

@ -33,6 +33,7 @@ rules:
check:
not:
anyOf:
# from https://www.typescriptlang.org/docs/handbook/compiler-options.html
- required: [alwaysStrict]
- required: [noImplicitAny]
- required: [noImplicitThis]
@ -75,47 +76,8 @@ rules:
lib:
contains:
type: string
const: esnext
const:
$data: "2/target"
target:
type: string
const: esnext
- properties:
lib:
contains:
type: string
const: es2017
target:
type: string
const: es2017
- properties:
lib:
contains:
type: string
const: es2016
target:
type: string
const: es2016
- properties:
lib:
contains:
type: string
enum: [es2015, es6]
target:
type: string
enum: [es2015, es6]
- properties:
lib:
contains:
type: string
const: es5
target:
type: string
const: es5
- properties:
lib:
contains:
type: string
const: es3
target:
type: string
const: es3
enum: [esnext, es2017, es2016, es5, es3]