@ofk/eslint-config 0.0.3 → 0.0.4

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.
package/README.md CHANGED
@@ -6,6 +6,12 @@
6
6
 
7
7
  ```sh
8
8
  npm install --save-dev @ofk/eslint-config
9
+ npm install --save-dev $(npm info @ofk/eslint-config peerDependencies --json | jq -r 'to_entries | map("\(.key)@\(.value)") | join(" ")')
10
+ ```
11
+
12
+ or
13
+
14
+ ```sh
9
15
  npx install-peerdeps --dev @ofk/eslint-config
10
16
  ```
11
17
 
@@ -18,7 +24,7 @@ import config from '@ofk/eslint-config';
18
24
  export default config();
19
25
  ```
20
26
 
21
- Customization is possible.
27
+ You can customize it. For example:
22
28
 
23
29
  ```js
24
30
  import config from '@ofk/eslint-config';
package/dist/index.js CHANGED
@@ -880,7 +880,7 @@ var tsStrict = import_typescript_eslint4.default.config(
880
880
  }
881
881
  );
882
882
  function ts({
883
- disableTypeChecked = false,
883
+ disableTypeChecked = true,
884
884
  parserOptions = {},
885
885
  strict = true,
886
886
  ...config
@@ -897,24 +897,7 @@ function ts({
897
897
  strict ? tsStrict : tsRecommended,
898
898
  config,
899
899
  disableTypeChecked ? {
900
- extends: [
901
- import_typescript_eslint4.default.configs.disableTypeChecked,
902
- // disabled unsafe rules for js files
903
- {
904
- rules: {
905
- "@typescript-eslint/no-unsafe-argument": "off",
906
- "@typescript-eslint/no-unsafe-assignment": "off",
907
- "@typescript-eslint/no-unsafe-call": "off",
908
- "@typescript-eslint/no-unsafe-declaration-merging": "off",
909
- "@typescript-eslint/no-unsafe-enum-comparison": "off",
910
- "@typescript-eslint/no-unsafe-function-type": "off",
911
- "@typescript-eslint/no-unsafe-member-access": "off",
912
- "@typescript-eslint/no-unsafe-return": "off",
913
- "@typescript-eslint/no-unsafe-type-assertion": "off",
914
- "@typescript-eslint/no-unsafe-unary-minus": "off"
915
- }
916
- }
917
- ],
900
+ extends: [import_typescript_eslint4.default.configs.disableTypeChecked],
918
901
  files: ["**/*.{js,jsx,mjs,cjs}"]
919
902
  } : {}
920
903
  );
package/dist/index.mjs CHANGED
@@ -844,7 +844,7 @@ var tsStrict = pluginTs4.config(
844
844
  }
845
845
  );
846
846
  function ts({
847
- disableTypeChecked = false,
847
+ disableTypeChecked = true,
848
848
  parserOptions = {},
849
849
  strict = true,
850
850
  ...config
@@ -861,24 +861,7 @@ function ts({
861
861
  strict ? tsStrict : tsRecommended,
862
862
  config,
863
863
  disableTypeChecked ? {
864
- extends: [
865
- pluginTs4.configs.disableTypeChecked,
866
- // disabled unsafe rules for js files
867
- {
868
- rules: {
869
- "@typescript-eslint/no-unsafe-argument": "off",
870
- "@typescript-eslint/no-unsafe-assignment": "off",
871
- "@typescript-eslint/no-unsafe-call": "off",
872
- "@typescript-eslint/no-unsafe-declaration-merging": "off",
873
- "@typescript-eslint/no-unsafe-enum-comparison": "off",
874
- "@typescript-eslint/no-unsafe-function-type": "off",
875
- "@typescript-eslint/no-unsafe-member-access": "off",
876
- "@typescript-eslint/no-unsafe-return": "off",
877
- "@typescript-eslint/no-unsafe-type-assertion": "off",
878
- "@typescript-eslint/no-unsafe-unary-minus": "off"
879
- }
880
- }
881
- ],
864
+ extends: [pluginTs4.configs.disableTypeChecked],
882
865
  files: ["**/*.{js,jsx,mjs,cjs}"]
883
866
  } : {}
884
867
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofk/eslint-config",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "ofk (https://github.com/ofk/)",