Skip to content

Commit 2c4dd43

Browse files
authored
Merge pull request #124 from solidity-parser/dependencies
Dependencies
2 parents 538731b + d697300 commit 2c4dd43

File tree

8 files changed

+2202
-1617
lines changed

8 files changed

+2202
-1617
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/CI.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
submodules: true
1919
- uses: actions/setup-node@v3
2020
with:
21-
node-version: 16
21+
node-version: 20
2222
cache: 'npm'
2323
- name: Install
2424
run: npm install
@@ -34,7 +34,7 @@ jobs:
3434
submodules: true
3535
- uses: actions/setup-node@v3
3636
with:
37-
node-version: 16
37+
node-version: 20
3838
cache: 'npm'
3939
- name: Install
4040
run: npm install
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353
strategy:
5454
matrix:
55-
node: [16, 18, 20]
55+
node: [20, 22, 24]
5656
steps:
5757
- uses: actions/checkout@v3
5858
with:
@@ -67,31 +67,31 @@ jobs:
6767
run: npm run test:node
6868

6969
test_macos:
70-
name: Test on MacOS with Node 16
70+
name: Test on MacOS with Node 20
7171
runs-on: macos-latest
7272
steps:
7373
- uses: actions/checkout@v3
7474
with:
7575
submodules: true
7676
- uses: actions/setup-node@v3
7777
with:
78-
node-version: 16
78+
node-version: 20
7979
cache: 'npm'
8080
- name: Install
8181
run: npm install
8282
- name: Run tests
8383
run: npm run test:node
8484

8585
test_windows:
86-
name: Test on Windows with Node 16
86+
name: Test on Windows with Node 20
8787
runs-on: windows-latest
8888
steps:
8989
- uses: actions/checkout@v3
9090
with:
9191
submodules: true
9292
- uses: actions/setup-node@v3
9393
with:
94-
node-version: 16
94+
node-version: 20
9595
cache: 'npm'
9696
- name: Install
9797
run: npm install

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

33
Copyright (c) 2017-2018 Federico Bond
4+
Copyright (c) 2020-2025 Franco Victorio
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

eslint.config.mjs

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import { defineConfig, globalIgnores } from 'eslint/config'
2+
import typescriptEslint from '@typescript-eslint/eslint-plugin'
3+
import globals from 'globals'
4+
import tsParser from '@typescript-eslint/parser'
5+
import path from 'node:path'
6+
import { fileURLToPath } from 'node:url'
7+
import js from '@eslint/js'
8+
import { FlatCompat } from '@eslint/eslintrc'
9+
10+
const __filename = fileURLToPath(import.meta.url)
11+
const __dirname = path.dirname(__filename)
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all,
16+
})
17+
18+
export default defineConfig([
19+
globalIgnores(['src/antlr', '**/dist']),
20+
{
21+
extends: compat.extends('eslint:recommended'),
22+
23+
plugins: {
24+
'@typescript-eslint': typescriptEslint,
25+
},
26+
27+
languageOptions: {
28+
globals: {
29+
...globals.mocha,
30+
...globals.node,
31+
},
32+
33+
parser: tsParser,
34+
},
35+
36+
rules: {
37+
'no-var': 'error',
38+
'object-curly-spacing': ['error', 'always'],
39+
'object-shorthand': 'error',
40+
'prefer-const': 'error',
41+
'max-len': 'off',
42+
},
43+
},
44+
{
45+
files: ['**/*.ts'],
46+
47+
extends: compat.extends(
48+
'eslint:recommended',
49+
'plugin:@typescript-eslint/recommended',
50+
'plugin:@typescript-eslint/recommended-requiring-type-checking'
51+
),
52+
53+
plugins: {
54+
'@typescript-eslint': typescriptEslint,
55+
},
56+
57+
languageOptions: {
58+
parser: tsParser,
59+
ecmaVersion: 5,
60+
sourceType: 'script',
61+
62+
parserOptions: {
63+
project: ['./tsconfig.json'],
64+
},
65+
},
66+
67+
rules: {
68+
'@typescript-eslint/no-explicit-any': 'off',
69+
'@typescript-eslint/strict-boolean-expressions': 'off',
70+
'@typescript-eslint/no-unsafe-call': 'off',
71+
'@typescript-eslint/no-unsafe-member-access': 'off',
72+
'@typescript-eslint/no-unsafe-assignment': 'off',
73+
'@typescript-eslint/explicit-module-boundary-types': 'off',
74+
'@typescript-eslint/no-unsafe-return': 'off',
75+
'@typescript-eslint/no-empty-interface': 'off',
76+
'@typescript-eslint/no-non-null-assertion': 'off',
77+
},
78+
},
79+
])

0 commit comments

Comments
 (0)