Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Updated ESLint to v9

## [2.1.4] - 2024-12-05

- Fix ref handling in nested GitHub Actions
Expand Down
55 changes: 35 additions & 20 deletions .eslintrc.json → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
{
"plugins": ["ava", "@typescript-eslint", "simple-import-sort"],
"extends": ["plugin:github/recommended", "plugin:ava/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"project": "./tsconfig.json"
import eslint from "@eslint/js"
import ava from "eslint-plugin-ava"
import github from "eslint-plugin-github"
import simpleImportSort from "eslint-plugin-simple-import-sort"
import tseslint from "typescript-eslint"
import globals from "globals"

export default tseslint.config({
files: ["**/*.ts"],
extends: [
eslint.configs.recommended,
tseslint.configs.recommended,
github.getFlatConfigs().recommended,
ava.configs["flat/recommended"]
],
plugins: {
"simple-import-sort": simpleImportSort
},
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
rules: {
"i18n-text/no-en": "off",
"eslint-comments/no-use": "off",
"import/no-namespace": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{ "accessibility": "no-public" }
{ accessibility: "no-public" }
],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"camelcase": "off",
camelcase: "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{ "allowExpressions": true }
{ allowExpressions: true }
],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
Expand All @@ -49,12 +56,20 @@
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"semi": "off",
semi: "off",
"sort-imports": "off",
"@typescript-eslint/unbound-method": "error"
"@typescript-eslint/unbound-method": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
"env": {
"node": true,
"es6": true
languageOptions: {
parserOptions: {
ecmaVersion: 9,
sourceType: "module",
project: "./tsconfig.json"
},
ecmaVersion: 6,
sourceType: "commonjs",
globals: { ...globals.node }
}
}
})
Loading
Loading