Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kristerkari committed May 22, 2023
1 parent 1c935ba commit 20d1580
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ var upstreamTransformer = require("metro-react-native-babel-transformer");

var lessTransformer = require("react-native-less-transformer");

module.exports.transform = function({ src, filename, options }) {
module.exports.transform = function ({ src, filename, options }) {
if (filename.endsWith(".less")) {
var opts = Object.assign(options, {
lessOptions: {
Expand Down Expand Up @@ -253,11 +253,11 @@ var upstreamTransformer = require("metro-react-native-babel-transformer");
var lessTransformer = require("react-native-less-transformer");
var postCSSTransformer = require("react-native-postcss-transformer");

module.exports.transform = function({ src, filename, options }) {
module.exports.transform = function ({ src, filename, options }) {
if (filename.endsWith(".less")) {
return lessTransformer
.renderToCSS({ src, filename, options })
.then(css =>
.then((css) =>
postCSSTransformer.transform({ src: css, filename, options })
);
} else {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"devDependencies": {
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard": "^15.0.1",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^11.1.0",
Expand All @@ -44,12 +45,11 @@
]
},
"eslintConfig": {
"extends": "standard",
"extends": [
"standard",
"prettier"
],
"rules": {
"space-before-function-paren": [
2,
"never"
],
"semi": [
2,
"always"
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,11 @@ escape-string-regexp@^4.0.0:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==

eslint-config-prettier@^8.8.0:
version "8.8.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348"
integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==

eslint-config-standard@^15.0.1:
version "15.0.1"
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-15.0.1.tgz#1262eafaba66f4f03fdf3cf655a28aa8b40868b7"
Expand Down

0 comments on commit 20d1580

Please sign in to comment.