1.0.0-beta.24 • Published 4 years ago

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

Weekly downloads
135
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.0-beta.23

5 years ago

1.0.0-beta.22

5 years ago

1.0.0-beta.20

5 years ago

1.0.0-beta.21

5 years ago

1.0.0-beta.19

5 years ago

1.0.0-beta.18

5 years ago

1.0.0-beta.17

5 years ago

1.0.0-beta.16

5 years ago

1.0.0-beta.15

5 years ago

1.0.0-beta.14

5 years ago

1.0.0-beta.13

5 years ago

1.0.0-beta.12

5 years ago

1.0.0-beta.11

5 years ago

1.0.0-beta.10

5 years ago

1.0.0-beta.9

5 years ago

1.0.0-beta.8

5 years ago

1.0.0-beta.7

5 years ago

1.0.0-beta.6

5 years ago

1.0.0-beta.5

5 years ago

1.0.0-beta.4

5 years ago

1.0.0-beta.3

5 years ago