@cenk1cenk2/eslint-config 0.4.49 → 1.0.2

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/.drone.yml CHANGED
@@ -27,6 +27,6 @@ steps:
27
27
  - master
28
28
  event:
29
29
  - push
30
-
30
+
31
31
  image_pull_secrets:
32
32
  - dockerconfigjson
package/.prettierrc.js ADDED
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ printWidth: 179,
3
+ tabWidth: 2,
4
+ semi: false,
5
+ singleQuote: true,
6
+ trailingComma: 'none',
7
+ bracketSpacing: true,
8
+ arrowParens: 'always',
9
+ proseWrap: 'never',
10
+ endOfLine: 'lf'
11
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,42 @@
1
+ ## [1.0.2](https://github.com/cenk1cenk2/eslint-config/compare/v1.0.1...v1.0.2) (2021-10-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * upgrade vue config ([77665c0](https://github.com/cenk1cenk2/eslint-config/commit/77665c017e1e1b4f09d6da32a6756df65226ab8c))
7
+
8
+ ## [1.0.1](https://github.com/cenk1cenk2/eslint-config/compare/v1.0.0...v1.0.1) (2021-10-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * configuration for vue typescript ([feebdf4](https://github.com/cenk1cenk2/eslint-config/commit/feebdf4e4fdc816894cfa3e9263967c00f40c218))
14
+
15
+ # [1.0.0](https://github.com/cenk1cenk2/eslint-config/compare/v0.4.50...v1.0.0) (2021-10-31)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **deps:** update dependency eslint-plugin-import to ^2.25.2 ([6968a65](https://github.com/cenk1cenk2/eslint-config/commit/6968a6573c63d7c1ad982c9a668aab17b9f28389))
21
+
22
+
23
+ ### Performance Improvements
24
+
25
+ * update breakign versions ([50cefba](https://github.com/cenk1cenk2/eslint-config/commit/50cefbab8134dc9dfa84ee97cf4c057ffab9aeab))
26
+
27
+
28
+ ### BREAKING CHANGES
29
+
30
+ * breaking changes for the eslint 8 and add vue stuff
31
+
32
+ ## [0.4.50](https://github.com/cenk1cenk2/eslint-config/compare/v0.4.49...v0.4.50) (2021-10-10)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * **deps:** update all slow ring [@weekly](https://github.com/weekly) ([625e8da](https://github.com/cenk1cenk2/eslint-config/commit/625e8da9f5c2c747c353f17f8bc2abcf7f147098))
38
+ * **deps:** update all slow ring [@weekly](https://github.com/weekly) to ^4.32.0 ([2cfbe07](https://github.com/cenk1cenk2/eslint-config/commit/2cfbe079a9a9a8de2024a91a05587ab33dfdb33c))
39
+
1
40
  ## [0.4.49](https://github.com/cenk1cenk2/eslint-config/compare/v0.4.48...v0.4.49) (2021-09-26)
2
41
 
3
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/eslint-config",
3
- "version": "0.4.49",
3
+ "version": "1.0.2",
4
4
  "description": "Eslint configuration for my taste.",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/cenk1cenk2/eslint-config",
@@ -10,11 +10,9 @@
10
10
  "lint": "prettier --loglevel warn --write ./*.js && eslint --ext .ts,.js,.tsx,.jsx --fix ./",
11
11
  "lint:check": "eslint --ext .ts,.js,.tsx,.jsx ./"
12
12
  },
13
- "husky": {
14
- "hooks": {
15
- "pre-commit": "lint-staged",
16
- "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
17
- }
13
+ "simple-git-hooks": {
14
+ "pre-commit": "yarn exec lint-staged",
15
+ "prepare-commit-msg": "[ -t 1 ] && exec < /dev/tty && git cz --hook || true"
18
16
  },
19
17
  "lint-staged": {
20
18
  "./*.{ts,js,tsx,jsx}": [
@@ -26,21 +24,23 @@
26
24
  ]
27
25
  },
28
26
  "peerDependencies": {
29
- "eslint": ">= 7.5.0"
27
+ "eslint": ">= 8"
30
28
  },
31
29
  "dependencies": {
32
- "@typescript-eslint/eslint-plugin": "^4.31.2",
33
- "@typescript-eslint/parser": "^4.31.2",
30
+ "@nuxtjs/eslint-config": "^7.0.0",
31
+ "@nuxtjs/eslint-config-typescript": "^7.0.2",
32
+ "@typescript-eslint/eslint-plugin": "^5.2.0",
33
+ "@typescript-eslint/parser": "^5.2.0",
34
34
  "eslint-config-react": "^1.1.7",
35
- "eslint-plugin-import": "^2.24.2",
35
+ "eslint-plugin-import": "^2.25.2",
36
36
  "eslint-plugin-react-hooks": "^4.2.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@cenk1cenk2/cz-cc": "^1.4.7",
40
- "eslint": "^7.32.0",
41
- "husky": "^7.0.2",
42
- "lint-staged": "^11.1.2",
43
- "prettier": "^2.4.1"
39
+ "@cenk1cenk2/cz-cc": "^1.4.9",
40
+ "eslint": "^8.0.0",
41
+ "lint-staged": "^11.2.3",
42
+ "prettier": "^2.4.1",
43
+ "simple-git-hooks": "^2.7.0"
44
44
  },
45
45
  "config": {
46
46
  "commitizen": {
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ extends: [ './typescript' ],
3
+ overrides: [
4
+ {
5
+ files: [ '*.ts', '*.tsx' ],
6
+ parserOptions: {
7
+ ecmaVersion: 'latest',
8
+ sourceType: 'module'
9
+ },
10
+ rules: {
11
+ '@typescript-eslint/no-floating-promises': 'error',
12
+ '@typescript-eslint/return-await': [ 'error', 'never' ]
13
+ }
14
+ }
15
+ ]
16
+ }
package/typescript.js CHANGED
@@ -6,8 +6,7 @@ module.exports = {
6
6
  plugins: [ '@typescript-eslint' ],
7
7
  extends: [ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended' ],
8
8
  // parserOptions: {
9
- // project: './tsconfig.json',
10
- // ecmaVersion: 2018,
9
+ // ecmaVersion: 'esnext',
11
10
  // sourceType: 'module'
12
11
  // },
13
12
  rules: {
@@ -107,8 +106,6 @@ module.exports = {
107
106
  '@typescript-eslint/func-call-spacing': [ 'error', 'never' ],
108
107
  '@typescript-eslint/prefer-for-of': 'warn',
109
108
  '@typescript-eslint/prefer-function-type': 'error',
110
- // '@typescript-eslint/no-floating-promises': 'error',
111
- // '@typescript-eslint/return-await': [ 'error', 'never' ],
112
109
  'space-before-function-paren': 'off',
113
110
  '@typescript-eslint/space-before-function-paren': [ 'error' ],
114
111
  'no-extra-parens': 'off',
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ extends: [ './index', './typescript' ],
3
+ overrides: [
4
+ {
5
+ files: [ '*.vue' ],
6
+ extends: [ './index', '@nuxtjs/eslint-config-typescript/index' ],
7
+ rules: {}
8
+ }
9
+ ]
10
+ }
package/vue.js ADDED
@@ -0,0 +1,15 @@
1
+ module.exports = {
2
+ extends: [ './index' ],
3
+ overrides: [
4
+ {
5
+ files: [ '*.vue' ],
6
+ extends: [ '@nuxtjs' ],
7
+ rules: {
8
+ 'vue/singleline-html-element-content-newline': 0,
9
+ 'vue/multiline-html-element-content-newline': 0,
10
+ 'vue/html-self-closing': 0,
11
+ 'vue/no-v-html': 0
12
+ }
13
+ }
14
+ ]
15
+ }
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- package.json
2
- node_modules/**
package/.eslintrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: './index'
3
- }
package/.prettierrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "printWidth": 180,
3
- "tabWidth": 2,
4
- "semi": false,
5
- "singleQuote": true,
6
- "trailingComma": "none",
7
- "bracketSpacing": true,
8
- "arrowParens": "always",
9
- "proseWrap": "never",
10
- "endOfLine": "lf"
11
- }