Skip to content

Commit

Permalink
Chore: Upgrade devDependencies (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning authored Oct 11, 2020
1 parent 2fe2728 commit 0589760
Show file tree
Hide file tree
Showing 6 changed files with 1,505 additions and 1,266 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ module.exports = {
rules: {},
overrides: [
{
files: ['**.ts'],
files: ['**/*.ts'],
extends: [
'@zazen/eslint-config',
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/recommended.json
'plugin:@typescript-eslint/recommended',
// https://github.com/prettier/eslint-config-prettier/blob/master/%40typescript-eslint.js
Expand Down
2 changes: 1 addition & 1 deletion __tests__/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PluginOptions } from '../src/types'

const generatePluginCss = async (
config: Record<string, unknown>,
pluginOptions: PluginOptions,
pluginOptions: PluginOptions
) => {
return postcss(
tailwindcss(
Expand Down
27 changes: 18 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"typography",
"whitespace"
],
"repository": "stormwarning/tailwindcss-capsize",
"license": "ISC",
"author": "Jeff Nelson <[email protected]> (http://tidaltheory.co/)",
"main": "dist/index.js",
Expand Down Expand Up @@ -53,19 +54,21 @@
},
"devDependencies": {
"@changesets/changelog-github": "0.2.7",
"@changesets/cli": "2.10.x",
"@navith/tailwindcss-plugin-author-types": "0.2.0",
"@changesets/cli": "2.11.x",
"@navith/tailwindcss-plugin-author-types": "1.8.1-0.1",
"@types/lodash.merge": "4.6.x",
"@typescript-eslint/eslint-plugin": "3.9.x",
"@typescript-eslint/parser": "3.9.x",
"@zazen/eslint-config": "2.0.x",
"eslint": "7.10.x",
"husky": "4.2.x",
"@typescript-eslint/eslint-plugin": "4.4.x",
"@typescript-eslint/parser": "4.4.x",
"@zazen/eslint-config": "2.1.x",
"eslint": "7.11.x",
"husky": "4.3.x",
"import-sort-style-python": "1.0.x",
"lint-staged": "10.4.x",
"lodash.merge": "4.6.x",
"prettier": "2.0.x",
"prettier": "2.1.x",
"prettier-plugin-import-sort": "0.0.5",
"prettier-plugin-packagejson": "2.2.x",
"tsdx": "0.13.3",
"tsdx": "0.14.0",
"tslib": "2.0.x",
"typescript": "4.0.x"
},
Expand All @@ -74,5 +77,11 @@
},
"engines": {
"node": ">=10"
},
"importSort": {
".js,.ts": {
"parser": "babylon",
"style": "python"
}
}
}
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const cssRegex = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/

export function getValueAndUnit(value: string): [number, string | undefined] {
if (typeof value !== 'string') return [value, '']
const matchedValue = value.match(cssRegex)
let matchedValue = value.match(cssRegex)
if (matchedValue) return [parseFloat(value), matchedValue[2]]
return [parseInt(value), undefined]
}
Expand Down
2 changes: 1 addition & 1 deletion types/tailwindcss.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ declare module 'tailwindcss'
declare module 'tailwindcss/plugin' {
import { CreatePlugin } from '@navith/tailwindcss-plugin-author-types'

const createPlugin: CreatePlugin
let createPlugin: CreatePlugin
export default createPlugin
}
Loading

0 comments on commit 0589760

Please sign in to comment.