Skip to content

Commit

Permalink
3.4.0-dev-22
Browse files Browse the repository at this point in the history
Linter fixes
  • Loading branch information
AlexInCube committed Aug 3, 2024
1 parent 6ef499c commit a3f9fd6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint.yaml → .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run linters
uses: wearerequired/lint-action@v2
with:
eslint: true
prettier: true
- name: Run Prettier
run: pnpm run prettier:check

- name: Run ESLint
run: pnpm run eslint
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.r
plugins: {
'typescript-eslint': ParserTypeScript,
prettier: prettierPlugin
}, ignores: ['build', 'node_modules', 'coverage', 'eslint.config.js'],
},
ignores: ['build', 'node_modules', 'coverage', 'eslint.config.js'],
languageOptions: {
globals: {
...globals.node,
Expand All @@ -20,12 +21,12 @@ export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.r
}
},
rules: {
...prettierPlugin.configs.recommended.rules,
...eslintConfigPrettier.rules,
...prettierPlugin.configs.recommended.rules,
...eslintConfigPrettier.rules,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-explicit-any': "warn",
'@typescript-eslint/no-explicit-any': 'warn',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'no-constant-binary-expression': "off"
'no-constant-binary-expression': 'off'
}
});
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"development": "tsc&& cross-env NODE_ENV=development node build/main.js",
"production": "cross-env NODE_ENV=production node build/main.js",
"cookies_grabbing": "cross-env NODE_ENV=development node build/Script_getCookie.js",
"test": "tsc&& cross-env NODE_ENV=development node --test"
"test": "tsc&& cross-env NODE_ENV=development node --test",
"eslint": "eslint \"src/**/*.{ts,js}\"",
"prettier:format": "prettier --write \"**/*.{ts,js}\"",
"prettier:check": "prettier --check \"**/*.{ts,js}\""
},
"type": "module",
"keywords": [],
Expand Down

0 comments on commit a3f9fd6

Please sign in to comment.