Releases: pixel-perfect-agency/eslint-config-pixel
Releases · pixel-perfect-agency/eslint-config-pixel
[v1.5.0] Remove default prettier import sorting
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
[v1.4.3] React does not have to be in scope
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
Previously only Typescript ^4.5.0
was supported, in addition ^5.0.0
is now also supported.