Skip to content

Commit 86129c3

Browse files
authored
Update ESLint version (#22)
Update the ESLint version to v9.
1 parent 8a4b536 commit 86129c3

File tree

7 files changed

+424
-3042
lines changed

7 files changed

+424
-3042
lines changed

.eslintrc.json

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Code Quality Assurance
4+
name: Code Quality Assurance - JavaScript
55

66
on:
77
push:
@@ -22,9 +22,9 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
2626
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@v6
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
- name: Cache Node.js modules

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55

66
# VS Code
77
.vscode/settings.json
8+
.idea

eslint.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const eslintPluginPrettier = require("eslint-plugin-prettier");
2+
3+
module.exports = [
4+
{
5+
ignores: ["**/*.min.js", "eslint.config.js", "node_modules/**/*"],
6+
},
7+
{
8+
languageOptions: {
9+
ecmaVersion: "latest",
10+
parserOptions: {
11+
ecmaFeatures: {
12+
modules: true,
13+
},
14+
},
15+
},
16+
plugins: {
17+
prettier: eslintPluginPrettier,
18+
},
19+
rules: {
20+
indent: ["error", "tab"],
21+
"no-console": "off",
22+
"no-continue": "off",
23+
"no-param-reassign": "off",
24+
"no-restricted-syntax": "off",
25+
"no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
26+
"no-use-before-define": "off",
27+
"prettier/prettier": "error",
28+
semi: ["error", "always"],
29+
},
30+
},
31+
];

0 commit comments

Comments
 (0)