-
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.
- Loading branch information
1 parent
ed12f2a
commit 7e5a7bc
Showing
13 changed files
with
226 additions
and
105 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,20 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[GNUmakefile] | ||
indent_style = tab | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[makefile] | ||
indent_style = tab | ||
|
||
# cheat sheet: http://EditorConfig.org |
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,104 @@ | ||
{ | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"mocha": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"installedESLint": true, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"jsx": true | ||
} | ||
}, | ||
"rules": { | ||
"array-bracket-spacing": [ | ||
"off" | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"always-multiline" | ||
], | ||
"comma-spacing": [ | ||
"error", | ||
{ | ||
"after": true, | ||
"before": false | ||
} | ||
], | ||
"computed-property-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"eol-last": [ | ||
"error", | ||
"always" | ||
], | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"keyword-spacing": [ | ||
"error", | ||
{ | ||
"after": true, | ||
"before": true | ||
} | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 80, | ||
"ignoreComments": true, | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true, | ||
"ignoreUrls": true | ||
} | ||
], | ||
"no-empty-pattern": "error", | ||
"no-multiple-empty-lines": [ | ||
"error", | ||
{ | ||
"max": 1, | ||
"maxBOF": 0, | ||
"maxEOF": 0 | ||
} | ||
], | ||
"object-curly-spacing": [ | ||
"off" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"prefer-const": "error", | ||
"space-before-function-paren": [ | ||
"error", | ||
{ | ||
"anonymous": "always", | ||
"named": "never" | ||
} | ||
], | ||
"space-in-parens": [ | ||
"error", | ||
"never" | ||
], | ||
"space-unary-ops": [ | ||
"error", | ||
{ | ||
"nonwords": false, | ||
"words": true | ||
} | ||
] | ||
} | ||
} |
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,27 +1,10 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
# Dependency directories | ||
node_modules | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
# Optional npm cache directory | ||
.npm | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
yarn.lock |
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,2 +1,6 @@ | ||
.editorconfig | ||
.eslintrc.json | ||
.gitignore | ||
test/ | ||
.npmignore | ||
.travis.yml | ||
test |
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,3 +1,5 @@ | ||
'use strict'; | ||
|
||
var bemjsonToDecl = require('bemjson-to-decl'); | ||
var loaderUtils = require('loader-utils'); | ||
|
||
|
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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
module.exports = { | ||
block: "b1", | ||
block: 'b1', | ||
content: [{ | ||
elem: "e1", | ||
elem: 'e1', | ||
elemMods: { | ||
m1: "v1", | ||
bool: true | ||
m1: 'v1', | ||
bool: true, | ||
}, | ||
content: "blah" | ||
content: 'blah', | ||
}, { | ||
elem: "e2", | ||
elem: 'e2', | ||
content: [{ | ||
block: "b1", | ||
block: 'b1', | ||
mods: { | ||
b1m1: "v2" | ||
} | ||
b1m1: 'v2', | ||
}, | ||
}, { | ||
block: "b3", | ||
content: "blah" | ||
}] | ||
block: 'b3', | ||
content: 'blah', | ||
}], | ||
}, { | ||
block: "b2", | ||
block: 'b2', | ||
content: { | ||
elem: "e1Ofb2", | ||
elem: 'e1Ofb2', | ||
content: { | ||
elem: "e2Ofb2", | ||
elem: 'e2Ofb2', | ||
content: [{ | ||
block: "b1", | ||
block: 'b1', | ||
content: { | ||
elem: "e3" | ||
} | ||
elem: 'e3', | ||
}, | ||
}, { | ||
block: "b1", | ||
block: 'b1', | ||
mods: { | ||
b1m1: "v1" | ||
} | ||
}] | ||
} | ||
} | ||
}] | ||
b1m1: 'v1', | ||
}, | ||
}], | ||
}, | ||
}, | ||
}], | ||
}; |
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,18 +1,18 @@ | ||
module.exports = { | ||
block: "b1", | ||
block: 'b1', | ||
content: [{ | ||
elem: "e1" | ||
elem: 'e1', | ||
}, { | ||
elem: "e1", | ||
elemMods: { m1: "v1" } | ||
elem: 'e1', | ||
elemMods: { m1: 'v1' }, | ||
}, { | ||
elem: "e1", | ||
mods: { m1: "v2" } | ||
elem: 'e1', | ||
mods: { m1: 'v2' }, | ||
}, { | ||
block: "b1", | ||
elem: "e1" | ||
block: 'b1', | ||
elem: 'e1', | ||
}, { | ||
elem: "e1", | ||
mods: { m2: true } | ||
}] | ||
elem: 'e1', | ||
mods: { m2: true }, | ||
}], | ||
}; |
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,6 +1,6 @@ | ||
module.exports = [ | ||
"string to skip", { | ||
block: "b1" | ||
'string to skip', { | ||
block: 'b1', | ||
}, | ||
"string to skip" | ||
'string to skip', | ||
]; |
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,31 +1,31 @@ | ||
module.exports = [{ | ||
block: "b1", | ||
block: 'b1', | ||
attrs: { | ||
foo: { | ||
block: "b1", | ||
elem: "e1", | ||
elemMods: { m1: "v1" }, | ||
block: 'b1', | ||
elem: 'e1', | ||
elemMods: { m1: 'v1' }, | ||
attrs: { | ||
bar: [{ | ||
block: "b11", | ||
mods: { m1: "v1" } | ||
}] | ||
} | ||
} | ||
} | ||
block: 'b11', | ||
mods: { m1: 'v1' }, | ||
}], | ||
}, | ||
}, | ||
}, | ||
}, { | ||
block: "b2", | ||
block: 'b2', | ||
js: { | ||
foo: [{ | ||
block: "b2", | ||
elem: "e2", | ||
elemMods: { m2: "v2" }, | ||
block: 'b2', | ||
elem: 'e2', | ||
elemMods: { m2: 'v2' }, | ||
js: { | ||
bar: { | ||
block: "b22", | ||
mods: { m2: "v2" } | ||
} | ||
} | ||
}] | ||
} | ||
block: 'b22', | ||
mods: { m2: 'v2' }, | ||
}, | ||
}, | ||
}], | ||
}, | ||
}]; |
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
Oops, something went wrong.