@ossy/eslint-config-ossy 1.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/.eslintrc.json +90 -0
- package/README.md +3 -0
- package/index.js +3 -0
- package/package.json +21 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"env": {
|
|
4
|
+
"browser": true,
|
|
5
|
+
"es6": true,
|
|
6
|
+
"node": true,
|
|
7
|
+
"jest": true,
|
|
8
|
+
"cypress/globals": true
|
|
9
|
+
},
|
|
10
|
+
"globals": {
|
|
11
|
+
"Atomics": "readonly",
|
|
12
|
+
"SharedArrayBuffer": "readonly"
|
|
13
|
+
},
|
|
14
|
+
"parserOptions": {
|
|
15
|
+
"ecmaVersion": 2020,
|
|
16
|
+
"ecmaFeatures": {
|
|
17
|
+
"jsx": true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"plugins": [
|
|
21
|
+
"cypress",
|
|
22
|
+
"react"
|
|
23
|
+
],
|
|
24
|
+
"rules": {
|
|
25
|
+
"indent": ["error", 2],
|
|
26
|
+
"linebreak-style": ["error", "unix"],
|
|
27
|
+
"quotes": ["error", "single"],
|
|
28
|
+
"semi": ["error", "never"],
|
|
29
|
+
"dot-notation":["error"],
|
|
30
|
+
"eqeqeq": ["error"],
|
|
31
|
+
"no-multi-spaces": ["error"],
|
|
32
|
+
"no-new": ["error"],
|
|
33
|
+
"no-new-func": ["error"],
|
|
34
|
+
"no-new-wrappers": ["error"],
|
|
35
|
+
"no-param-reassign": ["error", { "props": true }],
|
|
36
|
+
"no-return-assign": ["error"],
|
|
37
|
+
"no-self-assign": ["error"],
|
|
38
|
+
"no-self-assign": ["error"],
|
|
39
|
+
"require-await": ["error"],
|
|
40
|
+
"yoda": ["error"],
|
|
41
|
+
"no-undef": ["error"],
|
|
42
|
+
"no-undef-init": ["error"],
|
|
43
|
+
"no-unused-vars": ["error", { "args": "after-used" }],
|
|
44
|
+
"no-use-before-define": ["error"],
|
|
45
|
+
"global-require": ["error"],
|
|
46
|
+
"array-bracket-spacing": ["error"],
|
|
47
|
+
"block-spacing": ["error"],
|
|
48
|
+
"camelcase": ["error"],
|
|
49
|
+
"comma-dangle": ["error", "never"],
|
|
50
|
+
"comma-spacing": ["error"],
|
|
51
|
+
"comma-style": ["error"],
|
|
52
|
+
"computed-property-spacing": ["error"],
|
|
53
|
+
"func-call-spacing": ["error"],
|
|
54
|
+
"jsx-quotes": ["error"],
|
|
55
|
+
"keyword-spacing": ["error"],
|
|
56
|
+
"max-params": ["error", 3],
|
|
57
|
+
"no-array-constructor": ["error"],
|
|
58
|
+
"no-mixed-spaces-and-tabs": ["error"],
|
|
59
|
+
"no-multiple-empty-lines": ["error", { "max": 1 }],
|
|
60
|
+
"no-nested-ternary": ["error"],
|
|
61
|
+
"no-new-object": ["error"],
|
|
62
|
+
"no-plusplus": ["error"],
|
|
63
|
+
"no-trailing-spaces": ["error"],
|
|
64
|
+
"no-unneeded-ternary": ["error"],
|
|
65
|
+
"no-whitespace-before-property": ["error"],
|
|
66
|
+
"nonblock-statement-body-position": ["error"],
|
|
67
|
+
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true}],
|
|
68
|
+
"operator-assignment": ["error"],
|
|
69
|
+
"operator-linebreak": ["error", "before"],
|
|
70
|
+
"prefer-object-spread": ["error"],
|
|
71
|
+
"space-infix-ops": ["error"],
|
|
72
|
+
"template-tag-spacing": ["error"],
|
|
73
|
+
"arrow-body-style": ["error"],
|
|
74
|
+
"arrow-spacing": ["error"],
|
|
75
|
+
"no-const-assign": ["error"],
|
|
76
|
+
"no-duplicate-imports": ["error"],
|
|
77
|
+
"no-new-symbol": ["error"],
|
|
78
|
+
"no-useless-computed-key": ["error"],
|
|
79
|
+
"no-useless-rename": ["error"],
|
|
80
|
+
"no-var": ["error"],
|
|
81
|
+
"prefer-arrow-callback": ["error"],
|
|
82
|
+
"prefer-const": ["error"],
|
|
83
|
+
"prefer-rest-params": ["error"],
|
|
84
|
+
"prefer-template": ["error"],
|
|
85
|
+
"rest-spread-spacing": ["error"],
|
|
86
|
+
"template-curly-spacing": ["error"],
|
|
87
|
+
"react/jsx-uses-react": ["error"],
|
|
88
|
+
"react/jsx-uses-vars": ["error"]
|
|
89
|
+
}
|
|
90
|
+
}
|
package/README.md
ADDED
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ossy/eslint-config-ossy",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "ESLint config used by Ossy",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"url": "git://github.com/ossy-se/ossy.git",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"[Info]: No test specified\"",
|
|
9
|
+
"build": "echo \"[Info]: Nothing to build\""
|
|
10
|
+
},
|
|
11
|
+
"author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"eslint",
|
|
15
|
+
"eslintconfig",
|
|
16
|
+
"ossy"
|
|
17
|
+
],
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"eslint": "^7.32.0"
|
|
20
|
+
}
|
|
21
|
+
}
|