Skip to content

Commit 94d7c40

Browse files
committed
Updated ESLint to new config version
1 parent 69f487c commit 94d7c40

File tree

6 files changed

+4467
-49
lines changed

6 files changed

+4467
-49
lines changed

.eslintrc.json

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

.github/workflows/eslint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
3939
- name: Run ESLint
4040
run: |
41-
npx eslint .
42-
--config .eslintrc.json
43-
--ext .js,.jsx,.ts,.tsx
44-
--format @microsoft/eslint-formatter-sarif
41+
npx eslint . \
42+
--config eslint.config.js \
43+
--ext .js,.jsx,.ts,.tsx \
44+
--format @microsoft/eslint-formatter-sarif \
4545
--output-file eslint-results.sarif
4646
continue-on-error: true
4747

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules/
22
.DS_Store
33
*.sljson
4-
*.log
5-
*.json
4+
*.log

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import github from 'eslint-plugin-github';
2+
3+
export default [
4+
{
5+
plugins: {
6+
github
7+
},
8+
},
9+
];

0 commit comments

Comments
 (0)