eslint-config-gits 0.0.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.
- package/.editorconfig +15 -0
- package/.eslintrc.json +45 -0
- package/.prettierrc +13 -0
- package/index.js +3 -0
- package/package.json +31 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
insert_final_newline = true
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
|
|
9
|
+
[*.json]
|
|
10
|
+
indent_size = 4
|
|
11
|
+
indent_style = space
|
|
12
|
+
max_line_length = 80
|
|
13
|
+
|
|
14
|
+
[{package.json, package-lock.json}]
|
|
15
|
+
indent_size = 2
|
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"eslint:recommended",
|
|
4
|
+
"plugin:react/recommended",
|
|
5
|
+
"plugin:@typescript-eslint/recommended",
|
|
6
|
+
"plugin:editorconfig/all",
|
|
7
|
+
"plugin:react-hooks/recommended"
|
|
8
|
+
],
|
|
9
|
+
"parser": "@typescript-eslint/parser",
|
|
10
|
+
"parserOptions": {
|
|
11
|
+
"ecmaFeatures": {
|
|
12
|
+
"jsx": true
|
|
13
|
+
},
|
|
14
|
+
"ecmaVersion": "latest",
|
|
15
|
+
"sourceType": "module"
|
|
16
|
+
},
|
|
17
|
+
"plugins": ["react", "@typescript-eslint", "prettier", "editorconfig", "react-hooks"],
|
|
18
|
+
"rules": {
|
|
19
|
+
"prettier/prettier": "error",
|
|
20
|
+
"@typescript-eslint/explicit-function-return-type": "off"
|
|
21
|
+
},
|
|
22
|
+
"overrides": [
|
|
23
|
+
{
|
|
24
|
+
"files": ["*.ts", "*.tsx"],
|
|
25
|
+
"excludedFiles": ["*.test.ts", "*.test.tsx"],
|
|
26
|
+
"rules": {
|
|
27
|
+
"@typescript-eslint/explicit-function-return-type": ["error"]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"files": ["*.json"],
|
|
32
|
+
"rules": {
|
|
33
|
+
"prettier/prettier": "off"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"files": [
|
|
38
|
+
"**/*.stories.*"
|
|
39
|
+
],
|
|
40
|
+
"rules": {
|
|
41
|
+
"import/no-anonymous-default-export": "off"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
package/.prettierrc
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eslint-config-gits",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "EsLint preset for Geenen IT-Systeme",
|
|
5
|
+
"repository": "https://gitlab.com/geenen-it-systeme/eslint-preset",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["eslint", "eslint-config"],
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"eslint": "^8.38.0",
|
|
15
|
+
"eslint-plugin-editorconfig": "^4.0.2",
|
|
16
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
17
|
+
"eslint-plugin-react": "^7.32.2",
|
|
18
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
19
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
20
|
+
"prettier": "^2.8.7"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"eslint": "^8.38.0",
|
|
24
|
+
"eslint-plugin-editorconfig": "^4.0.2",
|
|
25
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
26
|
+
"eslint-plugin-react": "^7.32.2",
|
|
27
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
28
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
29
|
+
"prettier": "^2.8.7"
|
|
30
|
+
}
|
|
31
|
+
}
|