fixings 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +18 -0
- data/lib/fixings/railtie.rb +1 -1
- data/lib/fixings/version.rb +1 -1
- data/node-packages/eslint-config/index.js +43 -0
- data/node-packages/eslint-config/package.json +7 -0
- data/node-packages/prettier-config/index.js +3 -0
- data/node-packages/prettier-config/package.json +7 -0
- data/node_modules/.yarn-integrity +20 -0
- data/node_modules/@fixings/eslint-config +1 -0
- data/node_modules/@fixings/prettier-config +1 -0
- data/package.json +4 -0
- data/yarn.lock +4 -0
- metadata +10 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5b0bea364c71d1c9a69cd585b8051602bfbddc35af9ad20e4f6de775b9273fc
|
4
|
+
data.tar.gz: 2b0350fd3db0b95b6346baa24d524b04700ad9488a1d548af722643ee67fb2b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11766c1a98bac0aa55504bccceb2ebadc9082e128bd8a2646edbfb490d4fd79a3e228f3484ff786fb9c4422fa2a38e1d0034f8ad2a044803faf5394e0d73649c
|
7
|
+
data.tar.gz: 68b31a19870d584dd2e6ca730003d26a824402e36a01cddec184714a61692554d93b59081706049dafc6a3353ac88dd060a470c69d9aff9cf379478b7719b20d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -73,6 +73,24 @@ end
|
|
73
73
|
|
74
74
|
```
|
75
75
|
|
76
|
+
## JavaScript / TypeScript config
|
77
|
+
|
78
|
+
We have those fixings too!
|
79
|
+
|
80
|
+
Create `.eslintrc.js` in your project with this content:
|
81
|
+
|
82
|
+
```json
|
83
|
+
{
|
84
|
+
"extends": "@fixings/eslint-config"
|
85
|
+
}
|
86
|
+
```
|
87
|
+
|
88
|
+
Create `.prettierrc.json` in your project with this content:
|
89
|
+
|
90
|
+
```json
|
91
|
+
"@fixings/prettier-config"
|
92
|
+
```
|
93
|
+
|
76
94
|
## Development
|
77
95
|
|
78
96
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/fixings/railtie.rb
CHANGED
@@ -77,7 +77,7 @@ module Fixings
|
|
77
77
|
# Always log to stdout in development. Rails somehow magically makes this happen for the webserver but not for other processes
|
78
78
|
# like the jobs server
|
79
79
|
if SemanticLogger.appenders.all? { |appender| appender.instance_variable_get(:@log) != STDOUT }
|
80
|
-
|
80
|
+
app.config.semantic_logger.add_appender(io: STDOUT, level: app.config.log_level, formatter: app.config.rails_semantic_logger.format)
|
81
81
|
end
|
82
82
|
else
|
83
83
|
# Use semantic_logger logging setup to log JSON to STDOUT
|
data/lib/fixings/version.rb
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
module.exports = {
|
2
|
+
parser: "@typescript-eslint/parser",
|
3
|
+
parserOptions: {
|
4
|
+
project: "./tsconfig.json"
|
5
|
+
},
|
6
|
+
plugins: ["@typescript-eslint", "react-hooks", "lodash"],
|
7
|
+
extends: [
|
8
|
+
"plugin:@typescript-eslint/recommended",
|
9
|
+
"prettier",
|
10
|
+
"prettier/@typescript-eslint",
|
11
|
+
"plugin:react/recommended",
|
12
|
+
"plugin:lodash/recommended"
|
13
|
+
],
|
14
|
+
rules: {
|
15
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
16
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
17
|
+
"@typescript-eslint/camelcase": "warn",
|
18
|
+
"@typescript-eslint/no-explicit-any": "off",
|
19
|
+
"@typescript-eslint/no-unused-vars": [
|
20
|
+
"warn",
|
21
|
+
{
|
22
|
+
argsIgnorePattern: "^_"
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"react/display-name": "off",
|
26
|
+
"react-hooks/rules-of-hooks": "error",
|
27
|
+
"react-hooks/exhaustive-deps": "warn",
|
28
|
+
"lodash/import-scope": ["error", "member"],
|
29
|
+
"lodash/prefer-lodash-method": "off",
|
30
|
+
"lodash/prefer-noop": "off",
|
31
|
+
"lodash/prefer-is-nil": "off",
|
32
|
+
"lodash/prefer-constant": "off",
|
33
|
+
"lodash/prefer-get": "off",
|
34
|
+
"lodash/prefer-set": "off",
|
35
|
+
"lodash/prefer-lodash-typecheck": "off",
|
36
|
+
"lodash/matches-prop-shorthand": "warn"
|
37
|
+
},
|
38
|
+
settings: {
|
39
|
+
react: {
|
40
|
+
version: "detect"
|
41
|
+
}
|
42
|
+
}
|
43
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"systemParams": "darwin-x64-67",
|
3
|
+
"modulesFolders": [
|
4
|
+
"node_modules",
|
5
|
+
"node_modules"
|
6
|
+
],
|
7
|
+
"flags": [],
|
8
|
+
"linkedModules": [
|
9
|
+
"grommet",
|
10
|
+
"react-toast-notifications",
|
11
|
+
"use-bus"
|
12
|
+
],
|
13
|
+
"topLevelPatterns": [
|
14
|
+
"@fixings/eslint-config@1.0.0",
|
15
|
+
"@fixings/prettier-config@1.0.0"
|
16
|
+
],
|
17
|
+
"lockfileEntries": {},
|
18
|
+
"files": [],
|
19
|
+
"artifacts": {}
|
20
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
../../node-packages/eslint-config
|
@@ -0,0 +1 @@
|
|
1
|
+
../../node-packages/prettier-config
|
data/package.json
ADDED
data/yarn.lock
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Brundage
|
@@ -443,6 +443,15 @@ files:
|
|
443
443
|
- lib/fixings/silent_log_middleware.rb
|
444
444
|
- lib/fixings/test_help.rb
|
445
445
|
- lib/fixings/version.rb
|
446
|
+
- node-packages/eslint-config/index.js
|
447
|
+
- node-packages/eslint-config/package.json
|
448
|
+
- node-packages/prettier-config/index.js
|
449
|
+
- node-packages/prettier-config/package.json
|
450
|
+
- node_modules/.yarn-integrity
|
451
|
+
- node_modules/@fixings/eslint-config
|
452
|
+
- node_modules/@fixings/prettier-config
|
453
|
+
- package.json
|
454
|
+
- yarn.lock
|
446
455
|
homepage: https://github.com/airhorns/fixings
|
447
456
|
licenses:
|
448
457
|
- MIT
|