Skip to content

Commit

Permalink
feat(ts): ban const enum
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Jun 15, 2023
1 parent bbed70b commit b96f78a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/eslint-config-ts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
plugins: ['@rnx-kit'],
settings: {
'import/resolver': {
node: { extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.d.ts'] },
Expand Down Expand Up @@ -160,6 +161,9 @@ module.exports = {
'antfu/no-cjs-exports': 'error',
'antfu/no-ts-export-equal': 'error',

// best practices
'@rnx-kit/no-const-enum': 'error',

// off
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/naming-convention': 'off',
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"dependencies": {
"@antfu/eslint-config-basic": "workspace:*",
"@rnx-kit/eslint-plugin": "^0.4.2",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"eslint-plugin-jest": "^27.2.1"
Expand Down
34 changes: 33 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b96f78a

Please sign in to comment.