Skip to content

Commit 601d5eb

Browse files
authored
prepare 5.4.2 (#253)
* prepare 5.4.2 * use node 18 in ci build
1 parent 2aaba60 commit 601d5eb

File tree

6 files changed

+849
-765
lines changed

6 files changed

+849
-765
lines changed

Diff for: .eslintrc.json

-27
This file was deleted.

Diff for: .github/workflows/node.js.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [16.x]
16+
node-version: [18.x]
1717
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1818

1919
steps:

Diff for: .npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ src/
99
test/
1010
.gitignore
1111
.travis.yml
12-
.eslintrc.json
12+
eslint.config.mjs
1313
gulpfile.js
1414
.mocharc.json

Diff for: eslint.config.mjs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
4+
export default [{
5+
files: ["**/*.ts"],
6+
7+
plugins: {
8+
"@typescript-eslint": typescriptEslint,
9+
},
10+
11+
languageOptions: {
12+
parser: tsParser,
13+
ecmaVersion: 6,
14+
sourceType: "module",
15+
},
16+
17+
rules: {
18+
"@typescript-eslint/naming-convention": ["warn", {
19+
selector: "typeLike",
20+
format: ["PascalCase"],
21+
}],
22+
23+
curly: "warn",
24+
eqeqeq: "warn",
25+
"no-throw-literal": "warn",
26+
semi: "off",
27+
},
28+
}];

0 commit comments

Comments
 (0)