handshake-style 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75d1d2216eb9dae835f9658add50a87df8cef05b
4
- data.tar.gz: f29ee97015d5b9d5d0b5d76e8bfccfc51bc88acc
3
+ metadata.gz: 70d08cb1d0629abbd6cb1ef23978b59325efc0ef
4
+ data.tar.gz: b92249f2006ff2bee3ff2d86abe7fefb4810e03d
5
5
  SHA512:
6
- metadata.gz: b85f9970a927ad9ee2cbae21b6745a73165f1f74073c19b532c6f4a4c54ab7d5375a8491c04e2e519f0b9b1cc079fa633230bfaac03d675b012626bd807e302b
7
- data.tar.gz: 0f7b930840005c786d6ddfc70cf11aa5d1a5ddc2aca4e7ff8bda8f7eb038a3adf6b556e5ffb3859c43301c046ea377a2a4df72576a2fdcff5d6d01e59c623538
6
+ metadata.gz: e5824dfba506221796d54a627b53aeaf057be54f464805035c7ce09ed8d5ce6a0ad7c06d8af16fa87c474bc5a4d70662d83b7d7cc8d19eb4107b5da2ccf9b8ef
7
+ data.tar.gz: d16239764b9d13dbbf428a38fe28cf15b1eff92ca976948085129ea6495a52760e387536def9e460d25b0a5333812fe4753ac8ea2ba00cd69463ed12798b3ebb
data/.coffeelint.json ADDED
@@ -0,0 +1,109 @@
1
+ {
2
+ "arrow_spacing": {
3
+ "level": "warn"
4
+ },
5
+ "camel_case_classes": {
6
+ "level": "error"
7
+ },
8
+ "coffeescript_error": {
9
+ "level": "error"
10
+ },
11
+ "colon_assignment_spacing": {
12
+ "level": "error",
13
+ "spacing": {
14
+ "left": 0,
15
+ "right": 1
16
+ }
17
+ },
18
+ "cyclomatic_complexity": {
19
+ "value": 11,
20
+ "level": "ignore"
21
+ },
22
+ "duplicate_key": {
23
+ "level": "error"
24
+ },
25
+ "empty_constructor_needs_parens": {
26
+ "level": "ignore"
27
+ },
28
+ "indentation": {
29
+ "value": 2,
30
+ "level": "error"
31
+ },
32
+ "line_endings": {
33
+ "level": "warn",
34
+ "value": "unix"
35
+ },
36
+ "max_line_length": {
37
+ "value": 160,
38
+ "level": "error",
39
+ "limitComments": true
40
+ },
41
+ "missing_fat_arrows": {
42
+ "level": "ignore"
43
+ },
44
+ "newlines_after_classes": {
45
+ "value": 1,
46
+ "level": "warn"
47
+ },
48
+ "no_backticks": {
49
+ "level": "error"
50
+ },
51
+ "no_debugger": {
52
+ "level": "warn"
53
+ },
54
+ "no_empty_functions": {
55
+ "level": "error"
56
+ },
57
+ "no_empty_param_list": {
58
+ "level": "error"
59
+ },
60
+ "no_implicit_braces": {
61
+ "level": "ignore",
62
+ "strict": true
63
+ },
64
+ "no_implicit_parens": {
65
+ "strict": true,
66
+ "level": "ignore"
67
+ },
68
+ "no_interpolation_in_single_quotes": {
69
+ "level": "error"
70
+ },
71
+ "no_plusplus": {
72
+ "level": "ignore"
73
+ },
74
+ "spacing_after_comma": {
75
+ "level": "ignore"
76
+ },
77
+ "no_stand_alone_at": {
78
+ "level": "ignore"
79
+ },
80
+ "no_tabs": {
81
+ "level": "error"
82
+ },
83
+ "no_throwing_strings": {
84
+ "level": "error"
85
+ },
86
+ "no_trailing_semicolons": {
87
+ "level": "error"
88
+ },
89
+ "no_trailing_whitespace": {
90
+ "level": "error",
91
+ "allowed_in_comments": false,
92
+ "allowed_in_empty_lines": false
93
+ },
94
+ "no_unnecessary_double_quotes": {
95
+ "level": "ignore"
96
+ },
97
+ "no_unnecessary_fat_arrows": {
98
+ "level": "ignore"
99
+ },
100
+ "non_empty_constructor_needs_parens": {
101
+ "level": "ignore"
102
+ },
103
+ "prefer_english_operator": {
104
+ "level": "ignore"
105
+ },
106
+ "space_operators": {
107
+ "level": "ignore"
108
+ }
109
+ }
data/.haml-style.yml ADDED
@@ -0,0 +1,70 @@
1
+ # Whether to ignore frontmatter at the beginning of HAML documents for
2
+ # frameworks such as Jekyll/Middleman
3
+ skip_frontmatter: false
4
+
5
+ linters:
6
+ AltText:
7
+ enabled: false
8
+
9
+ ClassAttributeWithStaticValue:
10
+ enabled: true
11
+
12
+ ClassesBeforeIds:
13
+ enabled: false
14
+
15
+ ConsecutiveComments:
16
+ enabled: true
17
+
18
+ ConsecutiveSilentScripts:
19
+ enabled: true
20
+ max_consecutive: 2
21
+
22
+ EmptyScript:
23
+ enabled: true
24
+
25
+ HtmlAttributes:
26
+ enabled: false
27
+
28
+ ImplicitDiv:
29
+ enabled: true
30
+
31
+ LeadingCommentSpace:
32
+ enabled: true
33
+
34
+ LineLength:
35
+ enabled: true
36
+ max: 300
37
+
38
+ MultilinePipe:
39
+ enabled: true
40
+
41
+ MultilineScript:
42
+ enabled: true
43
+
44
+ ObjectReferenceAttributes:
45
+ enabled: true
46
+
47
+ RuboCop:
48
+ enabled: false
49
+
50
+ RubyComments:
51
+ enabled: true
52
+
53
+ SpaceBeforeScript:
54
+ enabled: true
55
+
56
+ SpaceInsideHashAttributes:
57
+ enabled: true
58
+ style: space
59
+
60
+ TagName:
61
+ enabled: true
62
+
63
+ TrailingWhitespace:
64
+ enabled: true
65
+
66
+ UnnecessaryInterpolation:
67
+ enabled: true
68
+
69
+ UnnecessaryStringOutput:
70
+ enabled: true
data/.hound.yml ADDED
@@ -0,0 +1,22 @@
1
+ ruby:
2
+ enabled: true
3
+ config_file: .rubocop.yml
4
+
5
+ coffee_script:
6
+ enabled: true
7
+ config_file: .coffeelint.json
8
+
9
+ java_script:
10
+ enabled: false
11
+
12
+ haml:
13
+ enabled: true
14
+ config_file: .haml-style.yml
15
+
16
+ tslint:
17
+ enabled: true
18
+ config_file: tslint-hound.json
19
+
20
+ stylelint:
21
+ enabled: true
22
+ config_file: .stylelintrc.json
data/.stylelintrc.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": "stylelint-config-standard",
3
+ "rules": {
4
+ "selector-pseudo-class-no-unknown": [true, {
5
+ "ignorePseudoClasses": [
6
+ "export",
7
+ "import",
8
+ "global",
9
+ "local"
10
+ ]
11
+ }
12
+ ],
13
+ "property-no-unknown": [true, { "ignoreProperties": ["composes"] }],
14
+ "value-no-vendor-prefix": true
15
+ }
16
+ }
data/README.md CHANGED
@@ -22,7 +22,7 @@ Create a .rubocop.yml with the following directives:
22
22
 
23
23
  ```
24
24
  inherit_gem:
25
- percy-style:
25
+ handshake-style:
26
26
  - default.yml
27
27
 
28
28
  ```
@@ -33,7 +33,7 @@ Now, run:
33
33
  $ bundle exec rubocop
34
34
  ```
35
35
 
36
- You do not need to include rubocop directly in your application's dependences. Percy-style will include a specific version of rubocop and rubocop-rspec that is shared across all projects.
36
+ You do not need to include rubocop directly in your application's dependences. Handshake-style will include a specific version of rubocop and rubocop-rspec that is shared across all projects.
37
37
 
38
38
  ## Development
39
39
 
@@ -1,5 +1,5 @@
1
1
  module Handshake
2
2
  module Style
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1".freeze
4
4
  end
5
5
  end
data/tslint-hound.json ADDED
@@ -0,0 +1,72 @@
1
+ // TODO: This file is separate from the hound-specific tslint.json file
2
+ // so that hound can parse it. Hound struggles with the rulesDirectory rule until
3
+ // https://github.com/houndci/hound/issues/1362 is fixed.
4
+ // Any changes here should be made also in tslint-hound.json
5
+ // Don't include comments within JSON hash. Sections below:
6
+ // 1 - Tightening rules from default
7
+ // 2 - Loosening rules from default
8
+ // 3 - Introduced in new TSLint versions and needed to be disabled, but
9
+ // should be turned on using auto fix
10
+ {
11
+ "extends": ["tslint:latest"],
12
+ "rules": {
13
+ "no-parameter-properties": true,
14
+ "interface-name": [true, "never-prefix"],
15
+ "trailing-comma": [true, {"multiline": "never", "singleline": "never"}],
16
+ "object-literal-sort-keys": false,
17
+ "jsx-alignment": true,
18
+ "jsx-no-lambda": true,
19
+ "jsx-no-string-ref": true,
20
+ "jsx-self-close": true,
21
+ "no-default-export": true,
22
+ "react-this-binding-issue": true,
23
+ "no-console": [true, "debug", "info", "log", "time", "timeEnd", "trace"],
24
+ "no-stateless-class": true,
25
+ "mocha-avoid-only": true,
26
+ "no-invalid-regexp": true,
27
+ "insecure-random": true,
28
+ "mocha-unneeded-done": true,
29
+ "no-banned-terms": true,
30
+ "no-document-domain": true,
31
+ "no-document-write": true,
32
+ "no-duplicate-case": true,
33
+ "no-exec-script": true,
34
+ "no-octal-literal": true,
35
+ "valid-typeof": true,
36
+
37
+ "no-reference": false,
38
+ "ordered-imports": false,
39
+ "only-arrow-functions": false,
40
+ "react-tsx-curly-spacing": [false, "always", {"allowMultiline": false}],
41
+ "jsx-curly-spacing": false,
42
+ "jsx-no-multiline-js": false,
43
+ "jsx-wrap-multiline": false,
44
+ "arrow-parens": false,
45
+ "space-before-function-paren": false,
46
+ "prefer-const": false,
47
+ "no-empty-interface": false,
48
+ "prefer-for-of": false,
49
+ "no-var-requires": false,
50
+
51
+ "semicolon": ["always"],
52
+ "align": [false],
53
+ "no-unused-expression": false,
54
+ "no-object-literal-type-assertion": false,
55
+ "ban-types": false,
56
+ "prefer-conditional-expression": false,
57
+ "typeof-compare": false,
58
+ "arrow-return-shorthand": false,
59
+ "no-unnecessary-initializer": false,
60
+ "jsx-boolean-value": false,
61
+ "jsx-no-bind": false,
62
+ "variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"]
63
+ }
64
+ }
65
+
66
+ // would be nice to add these, but need to clean up first
67
+ // "no-inner-html": true,
68
+ // "no-empty-interfaces": true,
69
+ // "no-reserved-keywords": true,
70
+ // "no-unnecessary-semicolons": true,
71
+ // "react-unused-props-and-state": true,
72
+ // "arrow-parens": [true, "ban-single-arg-parens"],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handshake-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Ringwelski
@@ -87,10 +87,14 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".coffeelint.json"
90
91
  - ".default.yml"
91
92
  - ".gitignore"
93
+ - ".haml-style.yml"
94
+ - ".hound.yml"
92
95
  - ".rspec"
93
96
  - ".rubocop.yml"
97
+ - ".stylelintrc.json"
94
98
  - ".travis.yml"
95
99
  - Gemfile
96
100
  - LICENSE.txt
@@ -101,6 +105,7 @@ files:
101
105
  - handshake-style.gemspec
102
106
  - lib/handshake/style.rb
103
107
  - lib/handshake/style/version.rb
108
+ - tslint-hound.json
104
109
  homepage: https://joinhandshake.com/engineering-blog/
105
110
  licenses:
106
111
  - MIT