eslint-config-gits 1.3.0 → 2.0.0

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/.gitlab-ci.yml ADDED
@@ -0,0 +1,13 @@
1
+ stages:
2
+ - deploy
3
+
4
+ image: node:18
5
+
6
+ deploy:npm:
7
+ stage: deploy
8
+ only:
9
+ - main
10
+ before_script:
11
+ - npm install
12
+ script:
13
+ - npx semantic-release
@@ -0,0 +1,20 @@
1
+ {
2
+ "branches": [
3
+ "main"
4
+ ],
5
+ "plugins": [
6
+ "@semantic-release/commit-analyzer",
7
+ "@semantic-release/release-notes-generator",
8
+ "@semantic-release/gitlab",
9
+ "@semantic-release/npm",
10
+ [
11
+ "@semantic-release/git",
12
+ {
13
+ "assets": [
14
+ "package.json"
15
+ ],
16
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
17
+ }
18
+ ]
19
+ ]
20
+ }
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Custom ESLint Preset
2
+
3
+ This ESLint-Config provides commonly used configuration for eslint for all our projects, using:
4
+
5
+ - ESLint
6
+ - prettier
7
+
8
+ ## Installation
9
+
10
+ ```shell
11
+ npm install --save-dev eslint eslint-config-gits
12
+ ```
package/index.js CHANGED
@@ -15,8 +15,36 @@ module.exports = {
15
15
  sourceType: "module"
16
16
  },
17
17
  rules: {
18
- "prettier/prettier": "error",
19
- "@typescript-eslint/explicit-function-return-type": "off"
18
+ "prettier/prettier": [
19
+ "error",
20
+ {
21
+ "tabWidth": 4,
22
+ "useTabs": false,
23
+ "printWidth": 80,
24
+ "semi": true,
25
+ "singleQuote": true,
26
+ "quoteProps": "as-needed",
27
+ "jsxSingleQuote": false,
28
+ "trailingComma": "es5",
29
+ "bracketSpacing": true,
30
+ "bracketSameLine": false,
31
+ "arrowParens": "avoid"
32
+ }
33
+ ],
34
+ "@typescript-eslint/explicit-function-return-type": "off",
35
+ "@typescript-eslint/typedef": [
36
+ "error",
37
+ {
38
+ "arrayDestructuring": false,
39
+ "arrowParameter": false,
40
+ "memberVariableDeclaration": true,
41
+ "objectDestructuring": true,
42
+ "parameter": false,
43
+ "propertyDeclaration": true,
44
+ "variableDeclaration": true,
45
+ "variableDeclarationIgnoreFunction": true
46
+ }
47
+ ]
20
48
  },
21
49
  overrides: [
22
50
  {
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "eslint-config-gits",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "EsLint preset for Geenen IT-Systeme",
5
5
  "repository": "https://gitlab.com/geenen-it-systeme/eslint-preset",
6
6
  "main": "index.js",
7
- "files": [
8
- ".prettierrc"
9
- ],
10
7
  "scripts": {
11
8
  "test": "echo \"Error: no test specified\" && exit 1"
12
9
  },
package/.prettierrc DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "tabWidth": 4,
3
- "useTabs": false,
4
- "printWidth": 80,
5
- "semi": true,
6
- "singleQuote": true,
7
- "quoteProps": "as-needed",
8
- "jsxSingleQuote": false,
9
- "trailingComma": "es5",
10
- "bracketSpacing": true,
11
- "bracketSameLine": false,
12
- "arrowParens": "avoid"
13
- }