27 lines
721 B
JavaScript
27 lines
721 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: [
|
|
'./tsconfig.json',
|
|
'./packages/web/tsconfig.json',
|
|
'./packages/api/tsconfig.json',
|
|
'./packages/admin/tsconfig.json',
|
|
],
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'prettier',
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
],
|
|
ignorePatterns: ['.eslintrc.js'],
|
|
rules: {
|
|
'@typescript-eslint/unbound-method': 'off',
|
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
},
|
|
};
|