Skip to content

Commit 9474cc7

Browse files
committed
Merge remote-tracking branch 'rumanbsl/project-upgrade'
2 parents e62724a + b784367 commit 9474cc7

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
'eslint:recommended',
99
'plugin:unicorn/recommended',
1010
],
11-
'parser': 'typescript-eslint-parser',
11+
'parser': '@typescript-eslint/parser',
1212
'parserOptions': {
1313
'ecmaVersion': 2017,
1414
'sourceType': 'module'

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,32 @@
2626
"commit": "git-cz"
2727
},
2828
"dependencies": {
29-
"typescript-service": "^2.0.0"
29+
"typescript-service": "^2.0.3"
3030
},
3131
"devDependencies": {
32-
"@semantic-release/changelog": "^3.0.0",
33-
"@semantic-release/git": "^7.0.2",
34-
"@semantic-release/npm": "^5.0.2",
35-
"@types/eslint": "^4.16.3",
36-
"@types/mocha": "^5.2.5",
37-
"@types/node": "^10.9.1",
38-
"chokidar-cli": "^1.2.0",
39-
"conventional-changelog-eslint": "^3.0.0",
40-
"cz-adapter-eslint": "^0.1.2",
41-
"eslint": "^5.4.0",
42-
"eslint-plugin-import": "^2.14.0",
43-
"eslint-plugin-typescript": "^0.12.0",
44-
"eslint-plugin-unicorn": "^6.0.0",
45-
"mocha": "^5.2.0",
46-
"rimraf": "^2.6.2",
47-
"semantic-release": "^15.9.9",
48-
"ts-node": "^7.0.1",
49-
"typescript": "3.0.1",
50-
"typescript-eslint-parser": "^18.0.0"
32+
"@semantic-release/changelog": "^5.0.1",
33+
"@semantic-release/git": "^9.0.0",
34+
"@semantic-release/npm": "^7.0.6",
35+
"@types/eslint": "^7.2.2",
36+
"@types/mocha": "^8.0.3",
37+
"@types/node": "^14.10.1",
38+
"chokidar-cli": "^2.1.0",
39+
"conventional-changelog-eslint": "^3.0.8",
40+
"cz-adapter-eslint": "^0.3.0",
41+
"eslint": "^7.9.0",
42+
"eslint-plugin-import": "^2.22.0",
43+
"eslint-plugin-typescript": "^0.14.0",
44+
"eslint-plugin-unicorn": "^21.0.0",
45+
"mocha": "^8.1.3",
46+
"rimraf": "^3.0.2",
47+
"semantic-release": "^17.1.1",
48+
"ts-node": "^9.0.0",
49+
"typescript": "4.0.2",
50+
"@typescript-eslint/parser": "^4.1.1"
5151
},
5252
"engines": {
53-
"node": ">=6",
54-
"npm": ">=3"
53+
"node": ">=12",
54+
"npm": ">=6"
5555
},
5656
"repository": {
5757
"type": "git",

src/config.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RuleTester } from 'eslint';
33
import { resolve } from 'path';
44

55
const ruleTester = new RuleTester({
6-
parser: 'typescript-eslint-parser',
6+
parser: require.resolve('@typescript-eslint/parser'),
77
parserOptions: {
88
ecmaVersion: 2017,
99
sourceType: 'module',
@@ -20,8 +20,8 @@ ruleTester.run('tests', rules.config as any, {
2020
code: 'test-project/errors.ts',
2121
options: [{ configFile: 'test-project/tsconfig.json' }],
2222
errors: [
23-
{ message: 'Type \'1\' is not assignable to type \'string\'.', line: 2, column: 7 },
24-
{ message: 'Type \'"foo"\' is not assignable to type \'number\'.', line: 3, column: 7 },
23+
{ message: 'Type \'number\' is not assignable to type \'string\'.', line: 2, column: 7 },
24+
{ message: 'Type \'string\' is not assignable to type \'number\'.', line: 3, column: 7 },
2525
]
2626
},
2727
],

0 commit comments

Comments
 (0)