Skip to content

Commit b36f657

Browse files
Merge pull request #137 from Chia-Network/EL.package-updates
update eslint and adjust versions for node 18 as needed
2 parents c04c001 + 5485424 commit b36f657

File tree

4 files changed

+1522
-4800
lines changed

4 files changed

+1522
-4800
lines changed

.eslintrc.json

-24
This file was deleted.

eslint.config.mjs

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

0 commit comments

Comments
 (0)