node-api-template/.eslintrc.js
2024-07-03 14:52:30 -04:00

36 lines
840 B
JavaScript

module.exports = {
env: {
es2021: true,
node: true,
jest: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'class-methods-use-this': 'off',
'no-param-reassign': 'off',
camelcase: 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off',
},
};