1.0.0-beta.24 • Published 3 years ago

@worktile-devkit/config v1.0.0-beta.24

Weekly downloads
135
License
ISC
Repository
github
Last release
3 years ago

@worktile-devkit/config

General configuration extraction, such as prettier

Usage

Prettier Config

add .prettierrc.js or prettier.config.js in repo root folder, and copy bellow code to it.

const { prettier } require("@worktile-devkit/config");

// prettier.config.js or .prettierrc.js
module.exports = {
    ...prettier.backendConfig, // prettier.frontendConfig
    custom config
}

The base config is:

export const baseConfig = {
    eslintIntegration: true,
    stylelintIntegration: true,
    tabWidth: 2,
    semi: true,
    printWidth: 140,
    proseWrap: 'preserve',
    trailingComma: 'none',
    overrides: [
        {
            files: '*.js',
            options: {
                tabWidth: 4
            }
        },
        {
            files: '*.ts',
            options: {
                tabWidth: 4
            }
        },
        {
            files: '*.scss',
            options: {
                tabWidth: 4
            }
        },
        {
            files: '*.css',
            options: {
                tabWidth: 4
            }
        }
    ]
};

the frontendConfig is combination of baseConfig and below

{
    singleQuote: true
}

the backendConfig is the same as baseConfig

1.0.0-beta.24

3 years ago

1.0.0-beta.23

4 years ago

1.0.0-beta.22

4 years ago

1.0.0-beta.20

4 years ago

1.0.0-beta.21

4 years ago

1.0.0-beta.19

4 years ago

1.0.0-beta.18

4 years ago

1.0.0-beta.17

4 years ago

1.0.0-beta.16

4 years ago

1.0.0-beta.15

4 years ago

1.0.0-beta.14

4 years ago

1.0.0-beta.13

4 years ago

1.0.0-beta.12

4 years ago

1.0.0-beta.11

4 years ago

1.0.0-beta.10

4 years ago

1.0.0-beta.9

4 years ago

1.0.0-beta.8

4 years ago

1.0.0-beta.7

4 years ago

1.0.0-beta.6

4 years ago

1.0.0-beta.5

4 years ago

1.0.0-beta.4

4 years ago

1.0.0-beta.3

4 years ago