Skip to content

Commit 3c31fb7

Browse files
committed
build: enable optional chaining/nullish coalescing, use @jedwards1211/eslint-config-typescript
1 parent 4a2a48f commit 3c31fb7

File tree

5 files changed

+3033
-2367
lines changed

5 files changed

+3033
-2367
lines changed

.babelrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module.exports = function(api) {
55
'@babel/plugin-proposal-export-default-from',
66
'@babel/plugin-proposal-export-namespace-from',
77
'@babel/plugin-proposal-object-rest-spread',
8+
'@babel/plugin-proposal-optional-chaining',
9+
'@babel/plugin-proposal-nullish-coalescing-operator',
810
]
911
const presets = [
1012
[

.eslintrc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
{
22
"extends": [
3-
"@jedwards1211/eslint-config",
4-
"eslint-config-prettier",
5-
"plugin:@typescript-eslint/eslint-recommended",
6-
"plugin:@typescript-eslint/recommended"
7-
],
8-
"parser": "@typescript-eslint/parser",
9-
"plugins": ["@typescript-eslint/eslint-plugin"],
10-
"env": {
11-
"es6": true
12-
}
3+
"@jedwards1211/eslint-config-typescript",
4+
"eslint-config-prettier"
5+
]
136
}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
"@babel/plugin-proposal-class-properties": "^7.1.0",
8787
"@babel/plugin-proposal-export-default-from": "^7.0.0",
8888
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
89+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
8990
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
91+
"@babel/plugin-proposal-optional-chaining": "^7.6.0",
9092
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
9193
"@babel/plugin-transform-runtime": "^7.1.0",
9294
"@babel/preset-env": "^7.1.6",
@@ -95,13 +97,10 @@
9597
"@commitlint/cli": "^6.0.2",
9698
"@commitlint/config-conventional": "^6.0.2",
9799
"@jedwards1211/commitlint-config": "^1.0.0",
98-
"@jedwards1211/eslint-config": "^2.0.0",
100+
"@jedwards1211/eslint-config-typescript": "^1.0.0",
99101
"@types/chai": "^4.2.0",
100102
"@types/mocha": "^5.2.7",
101103
"@types/node": "^12.12.6",
102-
"@typescript-eslint/eslint-plugin": "^2.6.1",
103-
"@typescript-eslint/parser": "^2.6.1",
104-
"@typescript-eslint/typescript-estree": "^2.6.1",
105104
"babel-eslint": "^10.0.1",
106105
"babel-plugin-istanbul": "^5.1.0",
107106
"chai": "^4.2.0",

src/index.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-env mocha */
22

33
describe('test setup', () => {
4-
it('works', () => {})
4+
it('works', () => {
5+
// fill me out!
6+
})
57
})

0 commit comments

Comments
 (0)