serverless-bundle
serverless-bundle copied to clipboard
Error: Plugin "@typescript-eslint" was conflicted between ".eslintrc.js" and "BaseConfig".
current eslingrc file
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
@softmarshmallow I had an issue before. Just simply remove in package.json typescript-eslint
as serverless-bundle is providing it which conflicting with its BaseConfig.
You could also disable linting during the package process, see AnomalyInnovations/serverless-bundle#options for more information
custom:
bundle:
...
linting: false # Enable linting as a part of the build process
You could also disable linting during the package process, see AnomalyInnovations/serverless-bundle#options for more information
custom: bundle: ... linting: false # Enable linting as a part of the build process
this does not work