Skip to content

Commit

Permalink
Flag using devDependency in production code (#1222)
Browse files Browse the repository at this point in the history
* Flag using devDependency in production code

* Fix lint issue
  • Loading branch information
TwitchBronBron authored Jun 6, 2024
1 parent b5da14f commit e4e1305
Show file tree
Hide file tree
Showing 3 changed files with 2,359 additions and 69 deletions.
18 changes: 16 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@ module.exports = {
plugins: [
'@typescript-eslint',
'no-only-tests',
'jsdoc'
'jsdoc',
'import'
],
extends: [
'eslint:all',
'plugin:@typescript-eslint/all',
'plugin:jsdoc/recommended'
'plugin:jsdoc/recommended',
'plugin:import/typescript'
],
settings: {
'import/resolver': {
typescript: true,
node: true
}
},
rules: {
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
Expand Down Expand Up @@ -118,6 +126,9 @@ module.exports = {
'getter-return': 'off',
'guard-for-in': 'off',
'id-length': 'off',
'import/no-extraneous-dependencies': ['error', {
'devDependencies': ['**/*.spec.ts']
}],
'indent': 'off',
'init-declarations': 'off',
'line-comment-position': 'off',
Expand Down Expand Up @@ -242,6 +253,9 @@ module.exports = {
files: ['benchmarks/**/*.ts'],
rules: {
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-var': 'off',
'camelcase': 'off'
}
}]
Expand Down
Loading

0 comments on commit e4e1305

Please sign in to comment.