Skip to content

Commit

Permalink
Merge pull request #1716 from anchan828/renovate/major-eslint
Browse files Browse the repository at this point in the history
chore(deps): update dependency eslint to v9
  • Loading branch information
anchan828 authored Aug 10, 2024
2 parents ce874b8 + 720e084 commit cbf1976
Show file tree
Hide file tree
Showing 10 changed files with 300 additions and 373 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const { includeIgnoreFile } = require("@eslint/compat");
const { resolve } = require("path");

module.exports = [
includeIgnoreFile(resolve(__dirname, ".gitignore")),
...tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, {
languageOptions: {
parserOptions: {
projectService: true,
},
},
rules: {
"no-unused-vars": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-explicit-any": "off",
"lines-between-class-members": ["error", "always"],
},
ignores: ["**/.prettierrc.js", "**/cli.js", "**/jest.config.js"],
}),
];
Loading

0 comments on commit cbf1976

Please sign in to comment.