serverless-bundle icon indicating copy to clipboard operation
serverless-bundle copied to clipboard

Error: Plugin "@typescript-eslint" was conflicted between ".eslintrc.js" and "BaseConfig".

Open softmarshmallow opened this issue 4 years ago • 3 comments

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 avatar Dec 10 '20 04:12 softmarshmallow

@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.

larrybek avatar Dec 14 '20 14:12 larrybek

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

Poitrin avatar Mar 10 '21 07:03 Poitrin

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

rafapaulin avatar Aug 31 '22 14:08 rafapaulin