Skip to content

Commit 1967d22

Browse files
committed
eslint config
1 parent e83d3e2 commit 1967d22

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
VALIDATE_JAVASCRIPT_PRETTIER: false
3535
VALIDATE_MARKDOWN_PRETTIER: false
3636
VALIDATE_CHECKOV: false
37+
JAVASCRIPT_ES_CONFIG_FILE: eslint.config.mjs
3738

3839
dependabot:
3940
name: Dependabot auto-merge

definitions/output/reports/reports_dynamic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ SELECT
7878
})
7979
})
8080
} else {
81-
iterations.forEach((params, i) => {
81+
iterations.forEach((params, _) => {
8282
metrics.forEach(metric => {
8383
metric.SQL.forEach(sql => {
8484
operate(metric.id + '_' + sql.type + '_' + params.date, {

eslint.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export default [
2+
{
3+
languageOptions: {
4+
ecmaVersion: 2021,
5+
sourceType: 'module',
6+
globals: {
7+
dataform: 'readonly',
8+
constants: 'readonly',
9+
declare: 'readonly',
10+
assert: 'readonly',
11+
publish: 'readonly',
12+
ctx: 'readonly'
13+
}
14+
},
15+
rules: {
16+
// Add any custom rules here if needed
17+
}
18+
}
19+
]

0 commit comments

Comments
 (0)