diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2f525c3..58f05ed 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,4 +13,4 @@ jobs: uses: node-modules/github-actions/.github/workflows/node-test.yml@master with: os: 'ubuntu-latest' - version: '14, 16, 18' + version: '16, 18, 20' diff --git a/README.md b/README.md index e8bc55b..60e925c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ npm i eslint eslint-config-egg --save-dev ```json { "devDependencies": { - "eslint-config-egg": "12", + "eslint-config-egg": "13", "eslint": "8" } } @@ -53,7 +53,7 @@ module.exports = { ```json { "devDependencies": { - "eslint-config-egg": "12", + "eslint-config-egg": "13", "typescript": "^4.5.2" } } @@ -105,7 +105,7 @@ If you want to use eslint-config-egg with experimental features such as `async f ```json { "devDependencies": { - "eslint-config-egg": "12", + "eslint-config-egg": "13", "eslint": "8", "@babel/core": "7", "@babel/eslint-parser": "7" @@ -137,7 +137,7 @@ If you want to use eslint-config-egg with react, jsx and es6 modules: ```json { "devDependencies": { - "eslint-config-egg": "12", + "eslint-config-egg": "13", "eslint": "8", "@babel/core": "7", "@babel/eslint-parser": "7", diff --git a/lib/legacy.js b/lib/legacy.js index 3b1e879..4cda131 100644 --- a/lib/legacy.js +++ b/lib/legacy.js @@ -1,5 +1,3 @@ -'use strict'; - module.exports = { extends: [ './rules/best-practices', diff --git a/package.json b/package.json index a95f126..4ad8140 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "dependencies": { "@babel/core": "^7.16.0", "@babel/eslint-parser": "^7.16.3", - "@typescript-eslint/eslint-plugin": "^5.4.0", - "@typescript-eslint/parser": "^5.4.0", + "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/parser": "^6.7.0", "eslint-plugin-eggache": "^2.0.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-jsdoc": "^39.3.0", @@ -29,7 +29,7 @@ "egg-bin": "6", "eslint": "^8.3.0", "git-contributor": "2", - "typescript": "^4.5.2" + "typescript": "^5.2.2" }, "repository": { "type": "git", diff --git a/test/fixtures/ts-app/constructor/correct.ts b/test/fixtures/ts-app/constructor/correct.ts index 50b9f84..31e148a 100644 --- a/test/fixtures/ts-app/constructor/correct.ts +++ b/test/fixtures/ts-app/constructor/correct.ts @@ -2,5 +2,7 @@ export class MyClass { constructor( public a: number, public b: string, - ) {} + ) { + // ignore + } } diff --git a/test/ts.test.js b/test/ts.test.js index cf6b9a7..363c03f 100644 --- a/test/ts.test.js +++ b/test/ts.test.js @@ -1,5 +1,3 @@ -'use strict'; - const path = require('path'); const coffee = require('coffee'); @@ -163,7 +161,7 @@ describe('test/ts.test.js', () => { describe('no-useless-constructor', () => { it('should success', () => { return coffee.spawn('eslint', [ './constructor/correct.ts' ], { cwd }) - // .debug() + .debug() .expect('code', 0) .end(); }); diff --git a/typescript.js b/typescript.js index fc43688..cb65004 100644 --- a/typescript.js +++ b/typescript.js @@ -1,5 +1,3 @@ -'use strict'; - module.exports = { parser: '@typescript-eslint/parser', plugins: [ '@typescript-eslint' ],