Skip to content

Commit

Permalink
chore: add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Oct 20, 2024
1 parent 5da7a54 commit c4a032c
Show file tree
Hide file tree
Showing 22 changed files with 1,395 additions and 145 deletions.
32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// @ts-check

import eslintJs from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslintSimpleImportSort from 'eslint-plugin-simple-import-sort';
import eslintPluginUnusedImports from 'eslint-plugin-unused-imports';
import eslintTs from 'typescript-eslint';

export default eslintTs.config(
eslintJs.configs.recommended,
...eslintTs.configs.recommended,
eslintPluginPrettierRecommended,
{
ignores: ['**/node_modules/', '**/dist/'],
},
{
plugins: {
'simple-import-sort': eslintSimpleImportSort,
'unused-imports': eslintPluginUnusedImports,
},
rules: {
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'prettier/prettier': ['error'],
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/no-explicit-any': 'off',
},
},
);
Loading

0 comments on commit c4a032c

Please sign in to comment.