Skip to content

Commit 894ed44

Browse files
kosztimosabua
authored andcommitted
Add eslint and prettier config
1 parent e583eb5 commit 894ed44

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ The local URL will be be displayed which you can open in your browser.
138138

139139
To build parser: `npm run antlr4ng`, as configured in **package.json**
140140

141+
### Linting and code formatting
142+
143+
To check code quality and formatting:
144+
145+
```shell
146+
npm run check
147+
```
148+
149+
This command runs both eslint and prettier, as defined in **package.json**
150+
141151
## Philosophy
142152

143153
This UI's purpose is to provide an environment where once the cluster is stood up, executing queries and exploring data sets can be done right away. The idended use cases are:

precise/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/generated/**

precise/.eslintrc.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@ module.exports = {
1414
'warn',
1515
{ allowConstantExport: true },
1616
],
17+
// ❗ Temporarily disabled due to widespread use of `any` an `unused vars` in the codebase.
18+
// Defining proper types will require significant effort.
19+
// We will address this incrementally in future pull requests.
20+
'@typescript-eslint/no-explicit-any': 'off',
21+
'@typescript-eslint/no-unused-vars': 'off',
1722
},
1823
}

precise/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/generated/**

precise/.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 4,
4+
"semi": false,
5+
"singleQuote": true,
6+
"printWidth": 120
7+
}

0 commit comments

Comments
 (0)