@labeg/code-style 3.1.1 → 3.1.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/.eslintrc.js CHANGED
@@ -51,11 +51,6 @@ module.exports = {
51
51
  node: true
52
52
  },
53
53
  ignorePatterns: ["node_modules/*"],
54
- settings: {
55
- react: {
56
- version: "detect"
57
- }
58
- },
59
54
  rules: {
60
55
  ...jsAndTsRules
61
56
  },
@@ -63,19 +58,21 @@ module.exports = {
63
58
  {
64
59
  files: ["**/*.{ts,tsx}"],
65
60
  settings: {
61
+ react: {
62
+ version: "detect"
63
+ },
66
64
  "import/parsers": {
67
65
  "@typescript-eslint/parser": [".ts", ".tsx"]
68
66
  },
69
67
  "import/resolver": {
70
68
  typescript: {
71
- project: "./tsconfig.json"
69
+ project: "tsconfig.json"
72
70
  }
73
71
  }
74
72
  },
75
73
  parser: "@typescript-eslint/parser",
76
74
  parserOptions: {
77
75
  project: "tsconfig.json",
78
- tsconfigRootDir: __dirname,
79
76
  sourceType: "module",
80
77
  ecmaVersion: "latest",
81
78
  ecmaFeatures: {
package/.prettierrc ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "printWidth": 80,
3
+ "tabWidth": 4,
4
+ "useTabs": false,
5
+ "semi": true,
6
+ "singleQuote": false,
7
+ "trailingComma": "none",
8
+ "bracketSpacing": true,
9
+ "jsxBracketSameLine": true,
10
+ "arrowParens": "always",
11
+ "proseWrap": "always"
12
+ }
package/README.md CHANGED
@@ -15,7 +15,7 @@ npm i -D @labeg/code-style
15
15
  Далее в вашь файл eslint config необходимо добавить следующую строчку:
16
16
  ```Javascript
17
17
  module.exports = {
18
- extends: ["@labeg/code-style"],
18
+ extends: ["./node_modules/@labeg/code-style/.eslintrc.js"],
19
19
  rules:{
20
20
  // override here
21
21
  }
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@labeg/code-style",
3
- "version": "3.1.1",
4
- "main": ".eslintrc.js",
3
+ "version": "3.1.4",
5
4
  "scripts": {
6
5
  "prepublishOnly": "npm version patch"
7
6
  },