Skip to content

fix(styles): Add ESLint config and improve GoogleSafeBrowsing tests #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2024
Merged
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 .codacy.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: autofix.ci

on:
pull_request:
push:
branches:
- main
permissions:
contents: read

Expand Down
36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// @ts-check

import vitest from '@vitest/eslint-plugin'
import perfectionist from 'eslint-plugin-perfectionist'
import tsEslint from 'typescript-eslint'

export default tsEslint.config(
...tsEslint.configs.recommended,
{
plugins: {
perfectionist,
},
rules: {
'perfectionist/sort-imports': 'error',
'perfectionist/sort-named-imports': 'error',

'perfectionist/sort-exports': 'error',
'perfectionist/sort-named-exports': 'error',

'perfectionist/sort-jsx-props': 'error',
'perfectionist/sort-union-types': 'error',
},
},
{
files: ['src/**/*.test.ts'],
plugins: {
vitest,
},
rules: {
...vitest.configs.recommended.rules,
},
},
{
ignores: ['**/dist/**', '**/coverage/**', '**/*.d.ts'],
},
)
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
"devDependencies": {
"@edge-runtime/vm": "4.0.4",
"@types/node": "22.10.1",
"@vitest/eslint-plugin": "^1.1.12",
"eslint": "^9.16.0",
"eslint-plugin-perfectionist": "^4.1.2",
"prettier": "3.4.1",
"typescript": "5.7.2",
"typescript-eslint": "^8.16.0",
"vitest": "2.1.6"
},
"packageManager": "[email protected]"
Expand Down
Loading