@cenk1cenk2/eslint-config

Eslint configuration for my taste.

Usage no npm install needed!

<script type="module">
  import cenk1cenk2EslintConfig from 'https://cdn.skypack.dev/@cenk1cenk2/eslint-config';
</script>

README

@cenk1cenk2/eslint-config

Build Status Version Downloads/week Dependencies semantic-release

Supported Functionality

default -> javascript
react-typescript
typescript

Extend Typescript Import Path Order

module.exports = {
  extends: ['@cenk1cenk2/eslint-config/typescript'],
  rules: {
    'import/order': [
      'error',
      {
        pathGroups: [
          {
            pattern: '@root/**',
            group: 'parent'
          }
        ],
        pathGroupsExcludedImportTypes: ['builtin'],
        groups: [
          ['builtin', 'external'],
          ['index', 'parent', 'sibling']
        ],
        'newlines-between': 'always',
        alphabetize: {
          order: 'asc',
          caseInsensitive: true
        }
      }
    ]
  }
}