Skip to content

Releases: pixel-perfect-agency/eslint-config-pixel

[v1.5.0] Remove default prettier import sorting

05 Dec 16:16
Compare
Choose a tag to compare

This release removes @trivago/prettier-plugin-sort-imports from the core package and exposes a new eslint-config-pixel/prettier/base export.
You can use this file as a base for your project specific prettier config like this:

module.exports = {
    ...require('eslint-config-pixel/prettier/base'),
    // Custom settings:
    plugins: ['@ianvs/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
    importOrder: ['^react$', '^next$', '<THIRD_PARTY_MODULES>', '', '^~(.*)$'],
    importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
    importOrderTypeScriptVersion: '5.0.0',
};

The plugin is removed because you want to configure its settings on a per project basis. We recommend using @ianvs/prettier-plugin-sort-imports in favour of @trivago/prettier-plugin-sort-imports for prettier v3+ and ESM support.

[v1.4.4] Minor / patch updates of dependencies

17 Jul 20:05
Compare
Choose a tag to compare

[v1.4.3] React does not have to be in scope

09 Jun 12:52
Compare
Choose a tag to compare

Before:

import React from 'react';

const Component = () => {
    return (
        <h1>Hello world!</h1>
    );
};

export default Component;

After:

const Component = () => {
    return (
        <h1>Hello world!</h1>
    );
};

export default Component;

[v1.4.2] Support Typescript 5.x

25 May 07:31
Compare
Choose a tag to compare

Previously only Typescript ^4.5.0 was supported, in addition ^5.0.0 is now also supported.