forked from botblock/BotBlock.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from botblock/node
Add .editorconfig (botblock#24)
- Loading branch information
Showing
11 changed files
with
82 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
# editorconfig-tools is unable to ignore longs strings or urls | ||
max_line_length = off | ||
trim_trailing_whitespace = true | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
[*.scss] | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
# Don't enforce indent size on these types of files | ||
[*.{md,txt}] | ||
indent_size = none | ||
|
||
# Ignored paths | ||
[*.{psd,opts}] | ||
charset = none | ||
end_of_line = none | ||
indent_size = none | ||
indent_style = none | ||
insert_final_newline = none | ||
trim_trailing_whitespace = none | ||
|
||
[db/seeds/data/*] | ||
indent_size = none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
|
||
|
||
======================================================== | ||
This pattern is downloaded from www.subtlepatterns.com | ||
This pattern is downloaded from www.subtlepatterns.com | ||
If you need more, that's where to get'em. | ||
======================================================== | ||
|
||
|
||
======================================================== |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ window.addEventListener("load", function (event) { | |
elm.innerText = "Show All"; | ||
} | ||
}; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ window.addEventListener("load", function (event) { | |
handleClick(thiselm); | ||
}; | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { describe, it } = require('./base'); | ||
const path = require('path'); | ||
const exec = require('child_process').exec; | ||
|
||
describe('editorconfig', () => { | ||
it('should follow editorconfig conventions', function (done) { | ||
this.retries(0); | ||
this.slow(2000); | ||
exec('npm run lint:editorconfig', { cwd: path.join(__dirname, '..') }, (err, stdout) => { | ||
if (err) return done(new Error(stdout)); | ||
done(); | ||
}); | ||
}); | ||
}); |