@dword-design/eslint-config 3.1.3 → 4.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/dist/create/index.js +3 -4
- package/package.json +7 -7
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-react`, packageName`eslint-plugin-github`, 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-react`, 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': ['error',
|
|
83
|
+
'no-restricted-syntax': ['error', "LogicalExpression[operator='??']"],
|
|
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',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"repository": "dword-design/eslint-config",
|
|
5
5
|
"funding": "https://github.com/sponsors/dword-design",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/eslint-parser": "^7.13.14",
|
|
25
|
-
"@dword-design/babel-config": "^
|
|
26
|
-
"@dword-design/eslint-plugin-import-alias": "^
|
|
27
|
-
"@dword-design/functions": "^
|
|
25
|
+
"@dword-design/babel-config": "^3.0.0",
|
|
26
|
+
"@dword-design/eslint-plugin-import-alias": "^4.0.8",
|
|
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
30
|
"eslint-config-prettier": "^8.0.0",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"eslint-plugin-github": "^4.1.3",
|
|
34
34
|
"eslint-plugin-import": "~2.27.0",
|
|
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
37
|
"eslint-plugin-prettier": "^4.0.0",
|
|
39
38
|
"eslint-plugin-promise": "^6.1.1",
|
|
@@ -48,16 +47,17 @@
|
|
|
48
47
|
"vue-eslint-parser": "^9.1.1"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"@dword-design/base": "^
|
|
50
|
+
"@dword-design/base": "^10.1.0",
|
|
52
51
|
"deepmerge": "^4.2.2",
|
|
53
52
|
"eslint": "^8.35.0",
|
|
54
53
|
"execa": "^7.1.1",
|
|
55
54
|
"fs-extra": "^11.1.1",
|
|
55
|
+
"node-version": "^3.0.0",
|
|
56
56
|
"output-files": "^2.0.0",
|
|
57
57
|
"with-local-tmp-dir": "^5.0.0"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
60
|
+
"node": ">=16"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|