@overdose/config
v0.3.1
Published
Overdose eslint plugin for React apps
Downloads
3,053
Keywords
Readme
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