@overdose/config

0.3.1 • Public • Published

config

Configs for various tools.

Usage

yarn add @overdose/config -D

ESLint

eslintrc.js:

const baseConfig = require('@overdose/config/src/eslint-plugin')
module.exports = baseConfig

Or for a Next.js project:

const baseConfig = require('@overdose/config/src/eslint-plugin')

baseConfig.extends.push('plugin:@next/next/recommended')

module.exports = baseConfig

Prettier

prettierrc.js:

module.exports = require("@overdose/config/src/prettier-config")

Stylelint

stylelintrc.js:

{
  "extends": "@overdose/config/src/stylelint-config"
}

PostCSS

postcss.config.js:

const config = require('@overdose/config/src/postcss-config')

module.exports = config

Or if using custome media breakpoints from @overdose/theme:

const config = require('@overdose/config/src/postcss-config')

config.plugins = {
  ...config.plugins,
  'postcss-custom-media': {
    importFrom: {
      customMedia: require('@overdose/theme/mq.json'),
    },
  },
}

module.exports = config

Readme

Keywords

none

Package Sidebar

Install

npm i @overdose/config

Weekly Downloads

348

Version

0.3.1

License

UNLICENSED

Unpacked Size

11.9 kB

Total Files

10

Last publish

Collaborators

  • rhounslow
  • emil.bagirov
  • nikolai-overdose
  • lochlan_overdose