Skip to content

v2.0.0-rc.46

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Dec 18:09
· 189 commits to rc since this release

New Features

  • Support ESLint v9 and flat configuration @1aron f0c83a4

    // eslint.config.js
    import css from '@master/eslint-config-css'
    
    export default [
        css
    ]

Additions

ESLint
  • Automatically load master.css.* configuration based on the current working directory @1aron 1578d11

    // before
    import { fileURLToPath } from 'node:url'
    import css from '@master/eslint-config-css'
    
    export default [
        css,
        {
            settings: {
                '@master/css': {
                    config: fileURLToPath(new URL('master.css', import.meta.url))
                }
            }
        }
    ]
    // after
    import css from '@master/eslint-config-css'
    
    export default [
        css
    ]

    You can still manually specify master.css.js if it is not in the current working directory.

Extractor
  • Exclusions for .next, .nuxt, and .svelte-kit directories in options @1aron 070fbb9

Improvements

ESLint
  • Import css from @master/eslint-config-css instead of @master/eslint-config-css/flat @1aron 5656195

    // eslint.config.js
    - import css from '@master/eslint-config-css/flat'
    + import css from '@master/eslint-config-css'
    
    export default [
        css
    ]
  • Use plugin:@master/css/legacy instead of @master/css @1aron ac85723

    /** @type {import('eslint').Linter.LegacyConfig} */
    module.exports = {
        extends: [
    -        'plugin:@master/css',
    +        'plugin:@master/css/legacy',
        ]
    }
Extractor Vite
  • Exclude CSS files from being processed in CSSExtractorPlugin transform @1aron cb5fec8

Bug Fixes

Extractor Vite

Upgrades

Examples