All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package..eslintrc.js Maven / Gradle / Ivy

Go to download

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

The newest version!
// npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-tree-shaking
module.exports = {
  root: true,
  parser: '@typescript-eslint/parser',
  plugins: ['@typescript-eslint', 'tree-shaking'],
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/eslint-recommended',
    'plugin:@typescript-eslint/recommended',
    'prettier/@typescript-eslint',
  ],
  rules: {
    '@typescript-eslint/no-explicit-any': 'off',
    '@typescript-eslint/ban-ts-ignore': 'off',
    'tree-shaking/no-side-effects-in-initialization': 'error',
    '@typescript-eslint/explicit-module-boundary-types': 'off'
  },
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy