@dword-design/eslint-config 4.0.0 → 5.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/dist/create/index.js +8 -7
- package/package.json +9 -11
package/dist/create/index.js
CHANGED
|
@@ -51,13 +51,13 @@ export default (() => {
|
|
|
51
51
|
},
|
|
52
52
|
parser: packageName`@babel/eslint-parser`
|
|
53
53
|
},
|
|
54
|
-
plugins: [packageName`eslint-plugin-prefer-arrow`, packageName`eslint-plugin-simple-import-sort`, packageName`eslint-plugin-json-format`, packageName`eslint-plugin-sort-keys-fix`, packageName`eslint-plugin-
|
|
54
|
+
plugins: [packageName`eslint-plugin-prefer-arrow`, packageName`eslint-plugin-simple-import-sort`, packageName`eslint-plugin-json-format`, packageName`eslint-plugin-sort-keys-fix`, packageName`eslint-plugin-github`, packageName`eslint-plugin-unicorn`],
|
|
55
55
|
rules: {
|
|
56
56
|
'arrow-body-style': ['error', 'as-needed'],
|
|
57
57
|
'func-names': ['error', 'never'],
|
|
58
58
|
'github/array-foreach': 'error',
|
|
59
59
|
'global-require': 'off',
|
|
60
|
-
'import/extensions': '
|
|
60
|
+
'import/extensions': ['error', 'ignorePackages'],
|
|
61
61
|
'import/no-commonjs': 'error',
|
|
62
62
|
'import/no-dynamic-require': 'off',
|
|
63
63
|
'import/no-extraneous-dependencies': ['error', {
|
|
@@ -80,11 +80,10 @@ export default (() => {
|
|
|
80
80
|
'no-restricted-imports': ['error', {
|
|
81
81
|
paths: eslintRestrictedImports
|
|
82
82
|
}],
|
|
83
|
-
'no-restricted-syntax':
|
|
83
|
+
'no-restricted-syntax': 'off',
|
|
84
84
|
'no-return-assign': 'off',
|
|
85
85
|
'no-template-curly-in-string': 'off',
|
|
86
86
|
'no-underscore-dangle': 'off',
|
|
87
|
-
'node/file-extension-in-import': 'error',
|
|
88
87
|
'object-shorthand': ['error', 'always'],
|
|
89
88
|
'padding-line-between-statements': ['error', {
|
|
90
89
|
blankLine: 'never',
|
|
@@ -113,15 +112,13 @@ export default (() => {
|
|
|
113
112
|
}],
|
|
114
113
|
'prefer-arrow/prefer-arrow-functions': ['error'],
|
|
115
114
|
'prefer-destructuring': 'off',
|
|
116
|
-
|
|
115
|
+
[`${packageName`prettier`}/prettier`]: ['error', {
|
|
117
116
|
arrowParens: 'avoid',
|
|
118
117
|
semi: false,
|
|
119
118
|
singleQuote: true,
|
|
120
119
|
trailingComma: 'all'
|
|
121
120
|
}],
|
|
122
121
|
'promise/prefer-await-to-then': 'error',
|
|
123
|
-
'react/jsx-boolean-value': 'error',
|
|
124
|
-
'react/jsx-sort-props': 'error',
|
|
125
122
|
'require-await': 'error',
|
|
126
123
|
'simple-import-sort/imports': 'error',
|
|
127
124
|
'sort-keys-fix/sort-keys-fix': 'error',
|
|
@@ -136,8 +133,12 @@ export default (() => {
|
|
|
136
133
|
xml: true
|
|
137
134
|
})
|
|
138
135
|
}],
|
|
136
|
+
'vue/attributes-order': ['error', {
|
|
137
|
+
alphabetical: true
|
|
138
|
+
}],
|
|
139
139
|
'vue/no-deprecated-functional-template': 'error',
|
|
140
140
|
'vue/order-in-components': 'off',
|
|
141
|
+
'vue/prefer-true-attribute-shorthand': 'error',
|
|
141
142
|
'vue/require-default-prop': 'off',
|
|
142
143
|
'vue/require-prop-types': 'off'
|
|
143
144
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"repository": "dword-design/eslint-config",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,38 +27,36 @@
|
|
|
27
27
|
"@dword-design/functions": "^5.0.22",
|
|
28
28
|
"depcheck-package-name": "^3.0.0",
|
|
29
29
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
30
|
-
"eslint-config-prettier": "^
|
|
30
|
+
"eslint-config-prettier": "^9.1.0",
|
|
31
31
|
"eslint-import-resolver-babel-module": "^5.3.0",
|
|
32
32
|
"eslint-import-resolver-exports": "^1.0.0-beta.5",
|
|
33
33
|
"eslint-plugin-github": "^4.1.3",
|
|
34
|
-
"eslint-plugin-import": "
|
|
34
|
+
"eslint-plugin-import": "^2.29.1",
|
|
35
35
|
"eslint-plugin-json-format": "^2.0.1",
|
|
36
|
-
"eslint-plugin-node": "^11.1.0",
|
|
37
36
|
"eslint-plugin-prefer-arrow": "^1.1.6",
|
|
38
|
-
"eslint-plugin-prettier": "^
|
|
37
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
39
38
|
"eslint-plugin-promise": "^6.1.1",
|
|
40
|
-
"eslint-plugin-react": "^7.20.0",
|
|
41
39
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
42
40
|
"eslint-plugin-sort-keys-fix": "^1.1.1",
|
|
43
|
-
"eslint-plugin-unicorn": "^
|
|
41
|
+
"eslint-plugin-unicorn": "^50.0.1",
|
|
44
42
|
"eslint-plugin-vue": "^9.10.0",
|
|
45
43
|
"jiti": "^1.18.2",
|
|
46
44
|
"load-pkg": "^4.0.0",
|
|
47
|
-
"prettier": "^2.
|
|
45
|
+
"prettier": "^3.2.4",
|
|
48
46
|
"vue-eslint-parser": "^9.1.1"
|
|
49
47
|
},
|
|
50
48
|
"devDependencies": {
|
|
51
|
-
"@dword-design/base": "^
|
|
49
|
+
"@dword-design/base": "^11.0.1",
|
|
52
50
|
"deepmerge": "^4.2.2",
|
|
53
51
|
"eslint": "^8.35.0",
|
|
54
|
-
"execa": "^
|
|
52
|
+
"execa": "^8.0.1",
|
|
55
53
|
"fs-extra": "^11.1.1",
|
|
56
54
|
"node-version": "^3.0.0",
|
|
57
55
|
"output-files": "^2.0.0",
|
|
58
56
|
"with-local-tmp-dir": "^5.0.0"
|
|
59
57
|
},
|
|
60
58
|
"engines": {
|
|
61
|
-
"node": ">=
|
|
59
|
+
"node": ">=18"
|
|
62
60
|
},
|
|
63
61
|
"publishConfig": {
|
|
64
62
|
"access": "public"
|