Skip to content

Commit

Permalink
feat: initial detection of i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
leaftail1880 committed Sep 3, 2024
1 parent 82cb8b4 commit b1308ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eslint from '@eslint/js'
import prettier from 'eslint-config-prettier'
import ts from 'typescript-eslint'
import tr from './tools/eslint-plugin/i.js'

export default ts.config(
eslint.configs.recommended,
Expand All @@ -22,6 +23,10 @@ export default ts.config(
'src/test/__mocks__/**',
],
},
process.env.I18N ? {
plugins: { tr },
rules: { 'tr/tr': 'error' }
} : {},
{
languageOptions: { parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname } },
rules: {
Expand Down
14 changes: 0 additions & 14 deletions tools/eslint-plugin/package.json

This file was deleted.

17 changes: 0 additions & 17 deletions tools/eslint-plugin/tsconfig.json

This file was deleted.

0 comments on commit b1308ed

Please sign in to comment.