Clean up indent eslint errors
This commit is contained in:
parent
45ddbb6d67
commit
4f4456bde8
3 changed files with 561 additions and 561 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,17 +1,17 @@
|
||||||
(function () {
|
(function () {
|
||||||
return function(process, require, asarSource) {
|
return function(process, require, asarSource) {
|
||||||
var createArchive, source;
|
var createArchive, source;
|
||||||
createArchive = process.binding('atom_common_asar').createArchive;
|
createArchive = process.binding('atom_common_asar').createArchive;
|
||||||
|
|
||||||
// Make asar.coffee accessible via "require".
|
// Make asar.coffee accessible via "require".
|
||||||
process.binding('natives').ATOM_SHELL_ASAR = asarSource;
|
process.binding('natives').ATOM_SHELL_ASAR = asarSource;
|
||||||
|
|
||||||
// Monkey-patch the fs module.
|
// Monkey-patch the fs module.
|
||||||
require('ATOM_SHELL_ASAR').wrapFsWithAsar(require('fs'));
|
require('ATOM_SHELL_ASAR').wrapFsWithAsar(require('fs'));
|
||||||
|
|
||||||
// Make graceful-fs work with asar.
|
// Make graceful-fs work with asar.
|
||||||
source = process.binding('natives');
|
source = process.binding('natives');
|
||||||
source['original-fs'] = source.fs;
|
source['original-fs'] = source.fs;
|
||||||
return source['fs'] = "var src = '(function (exports, require, module, __filename, __dirname) { ' +\n process.binding('natives')['original-fs'] +\n ' });';\nvar vm = require('vm');\nvar fn = vm.runInThisContext(src, { filename: 'fs.js' });\nfn(exports, require, module);\nvar asar = require('ATOM_SHELL_ASAR');\nasar.wrapFsWithAsar(exports);";
|
return source['fs'] = "var src = '(function (exports, require, module, __filename, __dirname) { ' +\n process.binding('natives')['original-fs'] +\n ' });';\nvar vm = require('vm');\nvar fn = vm.runInThisContext(src, { filename: 'fs.js' });\nfn(exports, require, module);\nvar asar = require('ATOM_SHELL_ASAR');\nasar.wrapFsWithAsar(exports);";
|
||||||
};
|
};
|
||||||
})()
|
})()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
"indent": [
|
"indent": [
|
||||||
0,
|
2,
|
||||||
2,
|
2,
|
||||||
{
|
{
|
||||||
"SwitchCase": 1
|
"SwitchCase": 1
|
||||||
|
|
Loading…
Reference in a new issue