1.0.6 • Published 1 year ago

@meteozdemir/prettier-config-core v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

prettier-config-core

Custom Prettier settings as an extensible shared config.

Installation

If using npm version 5+:

npx install-peerdeps --dev @meteozdemir/prettier-config-core

If using npm version version < 5:

npm install -g install-peerdeps
install-peerdeps --dev @meteozdemir/prettier-config-core

If want to install manually without install-peerdeps CLI:

npm i -D @meteozdemir/prettier-config-core prettier

Usage

A .prettierrc.cjs file will be automatically created in the root of your project with:

module.exports = {
    ...require('@meteozdemir/prettier-config-core'),
};

If the file is not created automatically by any reason, simply create a .prettierrc.cjs file in the root of project and copy code above.

Rule Override

Add any rule you want to override to .prettierrc.cjs file.

module.exports = {
    ...require('@meteozdemir/prettier-config-core'),
    // ...
    singleQuote: false,
    bracketSpacing: false,
};
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

2 years ago