Skip to content

Commit 730b863

Browse files
committed
[Release] v1.0.1
1 parent 368f082 commit 730b863

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

.eslintrc.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
{
1919
"indent": [
2020
"error",
21-
4
21+
4,
22+
{
23+
"SwitchCase": 1
24+
}
2225
],
2326
"linebreak-style": [
2427
"error",
@@ -38,6 +41,6 @@
3841
"no-constant-condition": [
3942
"warn"
4043
],
41-
"snakecasejs/snakecasejs": "error"
44+
"snakecasejs/snakecasejs": "warn"
4245
}
4346
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v1.0.1 (June 02, 2018)
2+
3+
* New: logo from [freepik](https://it.freepik.com/) (premium account)
4+
* Exclude: executablePath()
5+
6+
17
# v1.0.0 (May 27, 2018)
28

39
* First Release.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This is to enforce a style of snake_case in your project, rather than just disab
4242
}
4343
```
4444
3. If work add star :star: at this project :heart:
45-
4. If you want help me: <b><a href="http://paypal.ptkdev.io">donate on paypal</a> or become a <a href="http://patreon.ptkdev.io">backer on patreon</a></b>.
45+
4. If you want help me: <b><a href="http://paypal.ptkdev.io"></b>donate on paypal</a> or become a <b><a href="http://patreon.ptkdev.io">backer on patreon</a></b>.
4646

4747
NOTE: switch `error` to `warn` if you don't need snake_case as mandatory rules.
4848

index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/**
2+
* snakecasejs
3+
* =====================
4+
* This is to enforce a style of snake_case in your project, rather than just disabling camelcase.
5+
*
6+
* @author: Patryk Rzucidlo [@ptkdev] <support@ptkdev.io> (https://ptkdev.it)
7+
* @original: David Buchan-Swanson <david.buchanswanson@gmail.com>
8+
* @license: This code and contributions have 'GNU General Public License v3'
9+
* @version: 0.1
10+
* @changelog: 0.1 initial release
11+
*
12+
*/
113
function is_class_usage(node) {
214
return ["FunctionDeclaration", "NewExpression", "MemberExpression"].indexOf(node.parent.type) > -1;
315
}
@@ -21,7 +33,7 @@ module.exports = {
2133
return {
2234
Identifier(node) {
2335
var name = node.name;
24-
var array_system_var = ["parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "indexOf", "forEach", "charAt", "charCodeAt", "endsWith", "lastIndexOf", "startsWith", "toLowerCase", "toLocaleLowerCase", "toUpperCase", "toLocaleUpperCase", "toFixed", "toPrecision", "setInterval", "clearInterval", "setTimeout", "toDateString", "toTimeString", "getTime", "getFullYear", "getUTCFullYear", "getMonth", "getUTCMonth", "getDate", "getUTCDate", "getDay", "getUTCDay", "getHours", "getUTCHours", "getMinutes", "getUTCMinutes", "getSeconds", "getUTCSeconds", "getMilliseconds", "getUTCMilliseconds", "getTimeZoneOffset", "setTime", "setMilliseconds", "setUTCMilliseconds", "setSeconds", "setUTCSeconds", "setMinutes", "setUTCMinutes", "setHours", "setUTCHours", "setDate", "setUTCDate", "setMonth", "setUTCMonth", "setFullYear", "setUTCFullYear", "toUTCString", "toISOString", "toJSON"];
36+
var array_system_var = ["parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "indexOf", "forEach", "charAt", "charCodeAt", "endsWith", "lastIndexOf", "startsWith", "toLowerCase", "toLocaleLowerCase", "toUpperCase", "toLocaleUpperCase", "toFixed", "toPrecision", "setInterval", "clearInterval", "setTimeout", "toDateString", "toTimeString", "getTime", "getFullYear", "getUTCFullYear", "getMonth", "getUTCMonth", "getDate", "getUTCDate", "getDay", "getUTCDay", "getHours", "getUTCHours", "getMinutes", "getUTCMinutes", "getSeconds", "getUTCSeconds", "getMilliseconds", "getUTCMilliseconds", "getTimeZoneOffset", "setTime", "setMilliseconds", "setUTCMilliseconds", "setSeconds", "setUTCSeconds", "setMinutes", "setUTCMinutes", "setHours", "setUTCHours", "setDate", "setUTCDate", "setMonth", "setUTCMonth", "setFullYear", "setUTCFullYear", "toUTCString", "toISOString", "toJSON", "executablePath"];
2537
var split = name.split(/(?=[A-Z])/);
2638
var split_az = name.split(/(?=[a-z])/);
2739
if ((split.length > 1 && split_az.length > 1) && !contains(array_system_var, name)) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-snakecasejs",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"main": "index.js",
55
"author": "Patryk Rzucidlo [@ptkdev] <support@ptkdev.io> (https://ptkdev.it)",
66
"author_original": "David Buchan-Swanson <david.buchanswanson@gmail.com>",

0 commit comments

Comments
 (0)