Skip to content

Commit

Permalink
chore(eslint): migrate to flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
regchiu committed Jan 3, 2025
1 parent 1793240 commit 74e2cf5
Show file tree
Hide file tree
Showing 9 changed files with 3,287 additions and 4,048 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.cjs

This file was deleted.

23 changes: 23 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// @ts-check

import eslint from '@eslint/js'
import stylisticTs from '@stylistic/eslint-plugin-ts'
import tseslint from 'typescript-eslint'

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.strict,
tseslint.configs.stylistic,
{
plugins: {
'@stylistic/ts': stylisticTs,
},
rules: {
'@stylistic/ts/indent': ['error', 2],
'@stylistic/ts/semi': ['error', 'never'],
'@stylistic/ts/quotes': ['error', 'single', { allowTemplateLiterals: true }],
},
ignores: ['media', 'out', 'dist', '**/*.d.ts'],
files: ['**/*.ts'],
},
)
Loading

0 comments on commit 74e2cf5

Please sign in to comment.