Skip to content
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

chore: add kebab-case eslint rule, update filenames #29

Merged
merged 1 commit into from
Sep 30, 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
17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import vitest from 'eslint-plugin-vitest';
import globals from 'globals';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import unicorn from 'eslint-plugin-unicorn';

/**
* most of the configurations are glob-based,
Expand Down Expand Up @@ -158,4 +159,20 @@ export default [
'jsdoc/require-returns': 'off',
},
},

{
files: ['**/*.{ts,js}'],
plugins: {
unicorn,
},

rules: {
'unicorn/filename-case': [
'error',
{
case: 'kebabCase',
},
],
},
},
];
Loading