generated from Attacktive/attacktive-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7ee2a1
commit 8b9c780
Showing
7 changed files
with
1,227 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'ESLint' | ||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
jobs: | ||
build: | ||
name: 'ESLint' | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: 'Checkout code' | ||
uses: 'actions/checkout@v4' | ||
- name: 'Install Node.js' | ||
uses: 'actions/setup-node@v4' | ||
with: | ||
node-version: '22.x' | ||
- name: 'Install NPM packages' | ||
run: 'npm ci' | ||
- name: 'Run ESLint' | ||
run: 'npm run lint' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import js from "@eslint/js"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import tsPlugin from "@typescript-eslint/eslint-plugin"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.browser | ||
} | ||
} | ||
}, | ||
js.configs.recommended, | ||
{ | ||
files: ["**/*.ts"], | ||
languageOptions: { | ||
parser: tsParser | ||
}, | ||
plugins: { | ||
"@typescript-eslint": tsPlugin | ||
}, | ||
rules: { | ||
...tsPlugin.configs.recommended.rules | ||
} | ||
}, | ||
{ | ||
rules: { | ||
"indent": ["warn", "tab", { "MemberExpression": 1 }], | ||
}, | ||
files: ["**/*.js", "**/*.ts"] | ||
} | ||
]; |
Oops, something went wrong.