This commit is contained in:
Stanislav Hamara 2025-03-21 12:58:12 +00:00
parent 1f4c7c5968
commit 0ac9ea42fe
2 changed files with 33 additions and 5 deletions

View File

@ -8,16 +8,16 @@
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
"error",
{
"selector": "import",
"format": ["camelCase", "PascalCase"]
}
],
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"@typescript-eslint/semi": "error",
"curly": "error",
"eqeqeq": "error",
"no-throw-literal": "error",
"semi": "off"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]

28
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Lint
on:
pull_request:
branches:
- '**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run lint
- name: Run Prettier
run: npm run prettier:check