Skip to content

Commit

Permalink
chore: add kebab-case eslint rule, update filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzianis Dashkevich committed Sep 30, 2024
1 parent 685d1b2 commit 4cb7887
Show file tree
Hide file tree
Showing 79 changed files with 1,221 additions and 1,063 deletions.
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

0 comments on commit 4cb7887

Please sign in to comment.