Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Cleanup whitespace, switch to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
tholinka committed Apr 15, 2019
1 parent f5145b3 commit 0e84e84
Show file tree
Hide file tree
Showing 27 changed files with 7,354 additions and 7,337 deletions.
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"presets": [ "@babel/preset-env"]
}
"presets": [
"@babel/preset-env"
]
}
12 changes: 10 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
[*]
charset = utf-8
indent_style = space
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
trim_trailing_whitespace = true

[*.md]
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ $RECYCLE.BIN/
*.lnk


# End of https://www.gitignore.io/api/vim,node,linux,windows,webstorm+all,visualstudiocode
# End of https://www.gitignore.io/api/vim,node,linux,windows,webstorm+all,visualstudiocode
2 changes: 1 addition & 1 deletion .sass-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ rules:
indentation:
- 2
-
size: 4
size: 'tab'
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ ignore:
- build-check.sh

git:
depth: 1
depth: 1

install:
- npm install -g gulp-cli
- npm install

script: gulp build && ./build-check.sh
script: gulp build && ./build-check.sh
2 changes: 1 addition & 1 deletion SCSS NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Login page might be partially broke, didn't check, but based on legacy_styles.css it might share code with newtrial page
Manga page might share code with queue page

Theme .tooltip-icon and the tooltip that pops up at some point, it's used at least on https://www.crunchyroll.com/en/premium_comparison, waiting to see if its used elsewhere
Theme .tooltip-icon and the tooltip that pops up at some point, it's used at least on https://www.crunchyroll.com/en/premium_comparison, waiting to see if its used elsewhere
36 changes: 18 additions & 18 deletions add_important.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
var postcss = require('postcss');

module.exports = postcss.plugin('postcss-add-important', function(options) {
return function(css) {
css.walkRules(function(rule) {
rule.walkDecls(function(declaration, i) {
if (declaration.important) {
throw declaration.error(
'Do not use `!important`. These are added automatically.',
{plugin: 'postcss-add-important'}
);
}
module.exports = postcss.plugin('postcss-add-important', function (options) {
return function (css) {
css.walkRules(function (rule) {
rule.walkDecls(function (declaration, i) {
if (declaration.important) {
throw declaration.error(
'Do not use `!important`. These are added automatically.',
{ plugin: 'postcss-add-important' }
);
}

if (declaration.prop.indexOf('unimportant-') >= 0) {
declaration.prop = declaration.prop.replace(/^unimportant-/g, '');
} else {
declaration.important = true;
}
});
});
};
if (declaration.prop.indexOf('unimportant-') >= 0) {
declaration.prop = declaration.prop.replace(/^unimportant-/g, '');
} else {
declaration.important = true;
}
});
});
};
});
8 changes: 4 additions & 4 deletions build-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

# see if ./build/* are there
for file in background_script.js content_script.js manifest.json styles.css background_page.html; do
if [ ! -f ./build/$file ]; then
echo "missing $file"
exit 1
fi
if [ ! -f ./build/$file ]; then
echo "missing $file"
exit 1
fi
done

echo "All files present"
Expand Down
Loading

0 comments on commit 0e84e84

Please sign in to comment.