2022-11-09 11:02:35 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser',
|
2022-11-28 13:31:15 +01:00
|
|
|
parserOptions: {
|
|
|
|
project: './tsconfig.eslint.json',
|
|
|
|
},
|
2022-11-09 11:02:35 +01:00
|
|
|
plugins: ['@typescript-eslint'],
|
2022-11-28 13:31:15 +01:00
|
|
|
extends: ['@strapi/eslint-config/typescript'],
|
2022-11-09 11:02:35 +01:00
|
|
|
globals: {
|
|
|
|
strapi: false,
|
|
|
|
},
|
2022-11-15 08:41:33 +01:00
|
|
|
// Instead of extending (which includes values that interfere with this configuration), only take the rules field
|
2022-11-17 21:19:33 +01:00
|
|
|
rules: {
|
|
|
|
...require('./.eslintrc.back.js').rules,
|
|
|
|
'import/no-extraneous-dependencies': ['error', { devDependencies: ['**/*.test.ts'] }],
|
2022-11-28 13:31:15 +01:00
|
|
|
// TODO: The following rules from @strapi/eslint-config/typescript are disabled because they require praserOptions.project configuration
|
|
|
|
// '@typescript-eslint/dot-notation': 'off',
|
|
|
|
// '@typescript-eslint/no-implied-eval': 'off',
|
|
|
|
// '@typescript-eslint/no-throw-literal': 'off',
|
|
|
|
// '@typescript-eslint/return-await': 'off',
|
2022-11-17 21:19:33 +01:00
|
|
|
},
|
2022-11-09 11:02:35 +01:00
|
|
|
};
|