@dcl/eslint-config 1.0.7-20230131105315.commit-308f057 → 1.1.0-20230803201452.commit-35fea0b
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/dapps.js +90 -0
- package/package.json +12 -17
package/dapps.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
es6: true,
|
|
6
|
+
},
|
|
7
|
+
parser: '@typescript-eslint/parser',
|
|
8
|
+
plugins: ['@typescript-eslint', 'import'],
|
|
9
|
+
extends: [
|
|
10
|
+
'eslint:recommended',
|
|
11
|
+
'plugin:import/recommended',
|
|
12
|
+
'plugin:import/typescript',
|
|
13
|
+
'plugin:@typescript-eslint/recommended',
|
|
14
|
+
'plugin:prettier/recommended',
|
|
15
|
+
],
|
|
16
|
+
rules: {
|
|
17
|
+
'@typescript-eslint/ban-types': 'error',
|
|
18
|
+
'@typescript-eslint/ban-tslint-comment': 'error',
|
|
19
|
+
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }],
|
|
20
|
+
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
|
|
21
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
22
|
+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', ignoreRestSiblings: true }],
|
|
23
|
+
'@typescript-eslint/unbound-method': 'error',
|
|
24
|
+
'@typescript-eslint/naming-convention': [
|
|
25
|
+
'error',
|
|
26
|
+
{ selector: 'default', format: ['camelCase'] },
|
|
27
|
+
{ selector: 'variableLike', format: ['camelCase'] },
|
|
28
|
+
{ selector: 'variable', format: ['camelCase', 'UPPER_CASE'], leadingUnderscore: 'allow' },
|
|
29
|
+
{ selector: 'variable', types: ['function'], format: ['PascalCase', 'camelCase'] },
|
|
30
|
+
{ selector: 'parameter', format: ['camelCase'], leadingUnderscore: 'allow' },
|
|
31
|
+
{ selector: 'memberLike', format: ['camelCase'] },
|
|
32
|
+
{ selector: 'memberLike', modifiers: ['private'], format: ['camelCase'], leadingUnderscore: 'require' },
|
|
33
|
+
{ selector: 'typeLike', format: ['PascalCase'] },
|
|
34
|
+
{ selector: 'typeParameter', format: ['PascalCase'], prefix: ['T'] },
|
|
35
|
+
{ selector: 'interface', format: ['PascalCase'], custom: { regex: '^I[A-Z]', match: false } },
|
|
36
|
+
{
|
|
37
|
+
selector: ['variable', 'function', 'objectLiteralProperty', 'objectLiteralMethod'],
|
|
38
|
+
types: ['function'],
|
|
39
|
+
format: ['StrictPascalCase', 'strictCamelCase'],
|
|
40
|
+
},
|
|
41
|
+
{ selector: ['enum'], format: ['UPPER_CASE', 'PascalCase'], leadingUnderscore: 'allow' },
|
|
42
|
+
{ selector: ['enumMember'], format: ['UPPER_CASE'], leadingUnderscore: 'allow' },
|
|
43
|
+
],
|
|
44
|
+
'import/order': [
|
|
45
|
+
'error',
|
|
46
|
+
{
|
|
47
|
+
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
|
|
48
|
+
pathGroupsExcludedImportTypes: ['react', 'react-*/**', 'react-*', '@dcl/**', 'decentraland-*/**', 'decentraland-*'],
|
|
49
|
+
pathGroups: [
|
|
50
|
+
{ pattern: 'react', group: 'builtin', position: 'before' },
|
|
51
|
+
{ pattern: 'react-*/**', group: 'builtin' },
|
|
52
|
+
{ pattern: 'react-*', group: 'builtin' },
|
|
53
|
+
{ pattern: '@dcl/**', group: 'external', position: 'after' },
|
|
54
|
+
{ pattern: 'decentraland-*/**', group: 'external', position: 'after' },
|
|
55
|
+
{ pattern: 'decentraland-*', group: 'external', position: 'after' },
|
|
56
|
+
{ pattern: 'lib/**', group: 'internal', position: 'before' },
|
|
57
|
+
{ pattern: 'modules/**', group: 'internal', position: 'before' },
|
|
58
|
+
{ pattern: 'components/**', group: 'internal', position: 'after' },
|
|
59
|
+
{ pattern: './*.types', group: 'sibling', position: 'after' },
|
|
60
|
+
{ pattern: './*.css', group: 'sibling', position: 'after' },
|
|
61
|
+
],
|
|
62
|
+
distinctGroup: false,
|
|
63
|
+
'newlines-between': 'never',
|
|
64
|
+
alphabetize: {
|
|
65
|
+
order: 'asc',
|
|
66
|
+
caseInsensitive: true,
|
|
67
|
+
},
|
|
68
|
+
warnOnUnassignedImports: true,
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
'prettier/prettier': [
|
|
72
|
+
'error',
|
|
73
|
+
{
|
|
74
|
+
semi: false,
|
|
75
|
+
singleQuote: true,
|
|
76
|
+
printWidth: 140,
|
|
77
|
+
tabWidth: 2,
|
|
78
|
+
trailingComma: 'none',
|
|
79
|
+
arrowParens: 'avoid',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
settings: {
|
|
84
|
+
'import/resolver': {
|
|
85
|
+
node: {
|
|
86
|
+
paths: ['./src'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/eslint-config",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-20230803201452.commit-35fea0b",
|
|
4
4
|
"description": "Decentraland ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,26 +25,20 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/decentraland/eslint-config-decentraland#readme",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
29
|
-
"@typescript-eslint/parser": "^5.
|
|
30
|
-
"eslint": "^8.
|
|
31
|
-
"eslint-config-prettier": "^8.
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
29
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
30
|
+
"eslint": "^8.44.0",
|
|
31
|
+
"eslint-config-prettier": "^8.8.0",
|
|
32
32
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
33
|
-
"eslint-import-resolver-
|
|
34
|
-
"eslint-import-resolver-typescript": "^3.5.3",
|
|
33
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
35
34
|
"eslint-plugin-autofix": "^1.1.0",
|
|
36
35
|
"eslint-plugin-css-import-order": "^1.1.0",
|
|
37
|
-
"eslint-plugin-import": "
|
|
36
|
+
"eslint-plugin-import": "npm:eslint-plugin-i@^2.27.5-3",
|
|
38
37
|
"eslint-plugin-prettier": "^4.2.1",
|
|
39
|
-
"prettier": "^2.8.
|
|
38
|
+
"prettier": "^2.8.8"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"
|
|
43
|
-
"@typescript-eslint/parser": "^5.50.0",
|
|
44
|
-
"eslint": "^8.33.0",
|
|
45
|
-
"eslint-config-prettier": "^8.6.0",
|
|
46
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
47
|
-
"prettier": "^2.8.3"
|
|
41
|
+
"typescript": "^5.1.6"
|
|
48
42
|
},
|
|
49
43
|
"files": [
|
|
50
44
|
"index.js",
|
|
@@ -53,7 +47,8 @@
|
|
|
53
47
|
"README.md",
|
|
54
48
|
"LICENSE",
|
|
55
49
|
"sdk.js",
|
|
56
|
-
"gatsby.js"
|
|
50
|
+
"gatsby.js",
|
|
51
|
+
"dapps.js"
|
|
57
52
|
],
|
|
58
|
-
"commit": "
|
|
53
|
+
"commit": "35fea0b418b690c9453c9ee4319785e93f3efa3c"
|
|
59
54
|
}
|