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

Commit

Permalink
Use eslint-config-brunch (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan authored and shvaikalesh committed Jan 3, 2017
1 parent 615b2f0 commit 50cf9ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 85 deletions.
83 changes: 0 additions & 83 deletions .eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HandlebarsCompiler {

return [
sysPath.join(__dirname, 'dist', includeFile),
sysPath.join(__dirname, 'ns.js')
sysPath.join(__dirname, 'ns.js'),
];
}

Expand All @@ -47,6 +47,7 @@ class HandlebarsCompiler {
const source = `Handlebars.template(${handlebars.precompile(data)})`;

if (ns) {
// eslint-disable-next-line prefer-template
const key = ns + '.' + path.replace(/\\/g, '/').replace(this.pathReplace, '').replace(/\..+?$/, '').replace(/\//g, '.');
result = `Handlebars.initNS( '${key}' ); ${key} = ${source}`;
} else {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
},
"devDependencies": {
"chai": "^3.5.0",
"eslint": "^2.1.0",
"eslint": "^3.12.2",
"eslint-config-brunch": "brunch/eslint-config-brunch",
"mocha": "^3.2.0"
},
"eslintConfig": {
"extends": "brunch"
}
}

0 comments on commit 50cf9ab

Please sign in to comment.