Skip to content

Commit

Permalink
fix(rules/tsconfig): flatten target-lib using data refs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 2, 2019
1 parent 2b0dc92 commit b3c66dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 45 deletions.
3 changes: 0 additions & 3 deletions config/tsconfig.json
Expand Up @@ -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",
Expand Down
46 changes: 4 additions & 42 deletions rules/tsconfig.yml
Expand Up @@ -33,6 +33,7 @@ rules:
check:
not:
anyOf:
# from https://www.typescriptlang.org/docs/handbook/compiler-options.html
- required: [alwaysStrict]
- required: [noImplicitAny]
- required: [noImplicitThis]
Expand Down Expand Up @@ -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]

0 comments on commit b3c66dc

Please sign in to comment.