mirror of
https://github.com/ershisan99/node-ts-boilerplate.git
synced 2025-12-18 05:09:27 +00:00
init
This commit is contained in:
19
.eslintrc.cjs
Normal file
19
.eslintrc.cjs
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint/eslint-plugin', 'import', 'eslint-plugin-tsdoc'],
|
||||
extends: ['plugin:@typescript-eslint/recommended'],
|
||||
env: {
|
||||
jest: true,
|
||||
node: true,
|
||||
},
|
||||
rules: {
|
||||
'no-console': 'off',
|
||||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-dupe-class-members': ['error'],
|
||||
'@typescript-eslint/no-useless-constructor': ['error'],
|
||||
'@typescript-eslint/no-inferrable-types': ['off'],
|
||||
|
||||
'import/extensions': ['error', 'ignorePackages', { js: 'always', jsx: 'never', ts: 'never', tsx: 'never' }],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user