@dcl/eslint-config 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/dapps.js +83 -0
  2. package/package.json +4 -3
package/dapps.js ADDED
@@ -0,0 +1,83 @@
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
+ 'import/order': [
38
+ 'error',
39
+ {
40
+ groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
41
+ pathGroupsExcludedImportTypes: ['react', 'react-*/**', 'react-*', '@dcl/**', 'decentraland-*/**', 'decentraland-*'],
42
+ pathGroups: [
43
+ { pattern: 'react', group: 'builtin', position: 'before' },
44
+ { pattern: 'react-*/**', group: 'builtin' },
45
+ { pattern: 'react-*', group: 'builtin' },
46
+ { pattern: '@dcl/**', group: 'external', position: 'after' },
47
+ { pattern: 'decentraland-*/**', group: 'external', position: 'after' },
48
+ { pattern: 'decentraland-*', group: 'external', position: 'after' },
49
+ { pattern: 'lib/**', group: 'internal', position: 'before' },
50
+ { pattern: 'modules/**', group: 'internal', position: 'before' },
51
+ { pattern: 'components/**', group: 'internal', position: 'after' },
52
+ { pattern: './*.types', group: 'sibling', position: 'after' },
53
+ { pattern: './*.css', group: 'sibling', position: 'after' },
54
+ ],
55
+ distinctGroup: false,
56
+ 'newlines-between': 'never',
57
+ alphabetize: {
58
+ order: 'asc',
59
+ caseInsensitive: true,
60
+ },
61
+ warnOnUnassignedImports: true,
62
+ },
63
+ ],
64
+ 'prettier/prettier': [
65
+ 'error',
66
+ {
67
+ semi: false,
68
+ singleQuote: true,
69
+ printWidth: 140,
70
+ tabWidth: 2,
71
+ trailingComma: 'none',
72
+ arrowParens: 'avoid',
73
+ },
74
+ ],
75
+ },
76
+ settings: {
77
+ 'import/resolver': {
78
+ node: {
79
+ paths: ['./src'],
80
+ },
81
+ },
82
+ },
83
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/eslint-config",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Decentraland ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -53,7 +53,8 @@
53
53
  "README.md",
54
54
  "LICENSE",
55
55
  "sdk.js",
56
- "gatsby.js"
56
+ "gatsby.js",
57
+ "dapps.js"
57
58
  ],
58
- "commit": "92478464d7c505df4a928740faa0187723dbeed7"
59
+ "commit": "337b0ee291a6e5a0b53758cde874bf557401f07f"
59
60
  }