Skip to content

Commit b965d3b

Browse files
authored
Merge pull request #108 from solidity-parser/esbuild
Using the latest Esbuild
2 parents 4d81697 + cabb09e commit b965d3b

File tree

9 files changed

+832
-1533
lines changed

9 files changed

+832
-1533
lines changed

.eslintignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
src/lib
21
src/antlr
3-
scripts
2+
dist

.eslintrc.js

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,44 @@ module.exports = {
22
root: true,
33
parser: '@typescript-eslint/parser',
44
plugins: ['@typescript-eslint/eslint-plugin'],
5-
extends: [
6-
'eslint:recommended',
7-
'plugin:@typescript-eslint/recommended',
8-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
9-
],
10-
11-
parserOptions: {
12-
tsconfigRootDir: __dirname,
13-
project: ['./tsconfig.json'],
14-
},
5+
extends: ['eslint:recommended'],
156

167
rules: {
17-
'@typescript-eslint/no-explicit-any': 'off',
18-
'@typescript-eslint/strict-boolean-expressions': 'off',
19-
'@typescript-eslint/no-unsafe-call': 'off',
20-
'@typescript-eslint/no-unsafe-member-access': 'off',
21-
'@typescript-eslint/no-unsafe-assignment': 'off',
22-
'@typescript-eslint/explicit-module-boundary-types': 'off',
23-
'@typescript-eslint/no-unsafe-return': 'off',
24-
'@typescript-eslint/no-empty-interface': 'off',
25-
'@typescript-eslint/no-non-null-assertion': 'off',
268
'no-var': 'error',
279
'object-curly-spacing': ['error', 'always'],
2810
'object-shorthand': 'error',
2911
'prefer-const': 'error',
3012
'max-len': 'off',
3113
},
14+
15+
overrides: [
16+
{
17+
files: ['**/*.ts'],
18+
extends: [
19+
'eslint:recommended',
20+
'plugin:@typescript-eslint/recommended',
21+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
22+
],
23+
parser: '@typescript-eslint/parser',
24+
plugins: ['@typescript-eslint'],
25+
parserOptions: {
26+
tsconfigRootDir: __dirname,
27+
project: ['./tsconfig.json'],
28+
},
29+
rules: {
30+
'@typescript-eslint/no-explicit-any': 'off',
31+
'@typescript-eslint/strict-boolean-expressions': 'off',
32+
'@typescript-eslint/no-unsafe-call': 'off',
33+
'@typescript-eslint/no-unsafe-member-access': 'off',
34+
'@typescript-eslint/no-unsafe-assignment': 'off',
35+
'@typescript-eslint/explicit-module-boundary-types': 'off',
36+
'@typescript-eslint/no-unsafe-return': 'off',
37+
'@typescript-eslint/no-empty-interface': 'off',
38+
'@typescript-eslint/no-non-null-assertion': 'off',
39+
},
40+
},
41+
],
42+
3243
env: {
3344
es6: true,
3445
mocha: true,

browser-test/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-undef */
12
it('smoke test for browser', () => {
23
if (SolidityParser === undefined) {
34
throw new Error('SolidityParser is not available')

0 commit comments

Comments
 (0)