0.2.2 • Published 2 years ago

@useless-developers/eslint-config v0.2.2

Weekly downloads
-
License
GPLV3
Repository
github
Last release
2 years ago

Useless Developers Eslint Config

Deal with it.

module.exports = {
  env: {
    browser: true,
    es6: true,
    node: true,
  },
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/recommended',
    'plugin:jsdoc/recommended',
    'plugin:prettier/recommended',
    'plugin:react/recommended',
    'plugin:typescript-sort-keys/recommended',
    'prettier',
  ],
  globals: {
    JSX: 'readonly',
    React: 'readonly',
  },
  parser: '@typescript-eslint/parser',
  parserOptions: {
    ecmaFeatures: {
      jsx: true,
    },
  },
  plugins: [
    '@typescript-eslint',
    'eslint-plugin-tsdoc',
    'prettier',
    'react',
    'sort-keys-fix',
    'typescript-sort-keys',
  ],
  root: true,
  rules: {
    '@typescript-eslint/ban-ts-comment': 0,
    '@typescript-eslint/ban-ts-ignore': 0,
    '@typescript-eslint/ban-types': [
      2,
      {
        types: {
          Object: 'Do not use object',
          object: 'Do not use object',
        },
      },
    ],
    '@typescript-eslint/explicit-function-return-type': 0,
    '@typescript-eslint/explicit-member-accessibility': 0,
    '@typescript-eslint/explicit-module-boundary-types': 0,
    '@typescript-eslint/member-delimiter-style': [2, { multiline: { delimiter: 'none' } }],
    '@typescript-eslint/no-explicit-any': 2,
    '@typescript-eslint/no-non-null-assertion': 0,
    '@typescript-eslint/no-shadow': 2,
    '@typescript-eslint/no-unused-vars': [
      1,
      {
        argsIgnorePattern: '^_',
        varsIgnorePattern: '^_',
      },
    ],
    '@typescript-eslint/no-var-requires': 0,
    'arrow-body-style': [1, 'as-needed'],
    'arrow-parens': [2, 'as-needed'],
    camelcase: [1],
    'comma-dangle': [2, 'always-multiline'],
    curly: [0, 'multi-or-nest'],
    'import/namespace': 0,
    'import/no-unresolved': 0,
    indent: 0,
    'jsdoc/match-description': [
      2,
      {
        mainDescription: '^[A-Z].*',
        message: 'Please describe the component/method',
      },
    ],
    'jsdoc/require-param': [1, { unnamedRootBase: ['props'] }],
    'jsdoc/require-param-description': 0,
    'jsdoc/require-param-type': 0,
    'jsdoc/require-returns': 0,
    'jsdoc/require-returns-description': 0,
    'jsdoc/tag-lines': [1, 'any', { startLines: 1 }],
    'jsx-quotes': [2, 'prefer-single'],
    'lines-between-class-members': 0,
    'new-parens': 2,
    'no-console': [1, { allow: ['warn', 'error', 'info'] }],
    'no-irregular-whitespace': 1,
    'no-multiple-empty-lines': [1, { max: 1 }],
    'no-new': 0,
    'no-shadow': 0,
    'no-trailing-spaces': 1,
    'no-undef': 0,
    'no-undef-init': 'error',
    'no-unused-expressions': 0,
    'no-var': 2,
    'object-curly-spacing': [1, 'always'],
    'object-shorthand': 2,
    'one-var-declaration-per-line': 2,
    'padded-blocks': 0,
    'prefer-arrow-callback': 2,
    'prefer-const': 2,
    'prettier/prettier': [
      2,
      {
        arrowParens: 'avoid',
        bracketSameLine: false,
        bracketSpacing: true,
        jsxSingleQuote: true,
        printWidth: 100,
        quoteProps: 'as-needed',
        semi: false,
        singleQuote: true,
        tabWidth: 2,
        trailingComma: 'all',
      },
    ],
    quotes: [
      2,
      'single',
      {
        allowTemplateLiterals: true,
        avoidEscape: true,
      },
    ],
    'react/jsx-boolean-value': 2,
    'react/jsx-curly-brace-presence': [2, 'never'],
    'react/jsx-first-prop-new-line': [2, 'multiline'],
    'react/jsx-indent': 0,
    'react/jsx-no-duplicate-props': 2,
    'react/jsx-no-undef': 2,
    'react/jsx-sort-props': [
      2,
      {
        shorthandLast: true,
      },
    ],
    'react/no-multi-comp': 2,
    'react/prop-types': 0,
    'react/self-closing-comp': 2,
    'require-await': 1,
    semi: [2, 'never'],
    'sort-keys-fix/sort-keys-fix': 1,
    'space-before-function-paren': [1, 'always'],
  },
}
0.0.13

2 years ago

0.1.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.2.2

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago